Re: [PATCH 1/4] powerpc/64/kexec: fix race in kexec when XIVE is shutdowned

2018-05-04 Thread Cédric Le Goater
On 05/04/2018 01:13 PM, Cédric Le Goater wrote: > On 05/04/2018 12:41 PM, Michael Ellerman wrote: >> Cédric Le Goater writes: >> >>> The kexec_state KEXEC_STATE_IRQS_OFF barrier is reached by all >>> secondary CPUs before the kexec_cpu_down() operation is called on >>> secondaries. This can raise

Re: [PATCH 1/4] powerpc/64/kexec: fix race in kexec when XIVE is shutdowned

2018-05-04 Thread Cédric Le Goater
On 05/04/2018 12:41 PM, Michael Ellerman wrote: > Cédric Le Goater writes: > >> The kexec_state KEXEC_STATE_IRQS_OFF barrier is reached by all >> secondary CPUs before the kexec_cpu_down() operation is called on >> secondaries. This can raise conflicts and provoque errors in the XIVE >> hcalls wh

Re: [PATCH 1/4] powerpc/64/kexec: fix race in kexec when XIVE is shutdowned

2018-05-04 Thread Michael Ellerman
Cédric Le Goater writes: > The kexec_state KEXEC_STATE_IRQS_OFF barrier is reached by all > secondary CPUs before the kexec_cpu_down() operation is called on > secondaries. This can raise conflicts and provoque errors in the XIVE > hcalls when XIVE is shutdowned with H_INT_RESET on the primary CP

[PATCH 1/4] powerpc/64/kexec: fix race in kexec when XIVE is shutdowned

2018-04-03 Thread Cédric Le Goater
The kexec_state KEXEC_STATE_IRQS_OFF barrier is reached by all secondary CPUs before the kexec_cpu_down() operation is called on secondaries. This can raise conflicts and provoque errors in the XIVE hcalls when XIVE is shutdowned with H_INT_RESET on the primary CPU. To synchronize the kexec_cpu_do