Re: [PATCH v4 15/13] firmware: arm_sdei: be more robust against cpu-hotplug

2017-11-13 Thread Will Deacon
On Wed, Nov 08, 2017 at 04:06:24PM +, James Morse wrote: > dpm_suspend() calls the freeze/thaw callbacks for hibernate before > disable_non_bootcpus() takes down secondaries. > > This leads to a fun race where the freeze/thaw callbacks reset the > SDEI interface (as we may be restoring a kerne

[PATCH v4 15/13] firmware: arm_sdei: be more robust against cpu-hotplug

2017-11-08 Thread James Morse
dpm_suspend() calls the freeze/thaw callbacks for hibernate before disable_non_bootcpus() takes down secondaries. This leads to a fun race where the freeze/thaw callbacks reset the SDEI interface (as we may be restoring a kernel with a different layout due to KASLR), then the cpu-hotplug callbacks