acrn-kernel/arch/powerpc/platforms/pseries
Michael Ellerman c5e24354ef [PATCH] powerpc: Turn cpu_irq_down into kexec_cpu_down
We currently have a ppc_md member called cpu_irq_down, which disables IRQs
for the cpu in question. The only caller of cpu_irq_down is the kexec code.

On pSeries we need to do more than just teardown IRQs at kexec time, so rename
the ppc_md member to kexec_cpu_down and expand it. The pSeries code needs to
know, and other platforms might too, whether we're doing a crash shutdown (ie.
panicking) or a regular kexec, so add a flag for that.

The pSeries implementation of kexec_cpu_down does an unregister VPA call, which
tells the Hypervisor to stop writing stuff into our pacas. Without this we can
get weird memory corruption bugs when we kexec, caused by the Hypervisor
writing into the first kernel's pacas which happens to be somewhere interesting
in the second kernel's memory.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-14 16:33:09 +11:00
..
Kconfig powerpc: Merge remaining RTAS code 2005-11-03 14:41:19 +11:00
Makefile [PATCH] powerpc: Move scanlog.c to platforms/pseries 2005-11-10 13:09:27 +11:00
eeh.c [PATCH] ppc64: mark failed devices 2005-11-10 16:00:32 +11:00
eeh_event.c [PATCH] ppc64: PCI error event dispatcher 2005-11-10 11:38:05 +11:00
hvCall.S powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
iommu.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
lpar.c Merge ../linux-2.6 2005-11-07 14:42:09 +11:00
nvram.c powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
pci.c [PATCH] ppc64: fix PCI IO mapping 2005-11-10 15:32:37 +11:00
plpar_wrappers.h [PATCH] powerpc: Make ppc_md.set_dabr non 64-bit specific 2005-11-07 13:31:13 +11:00
ras.c [PATCH] powerpc: Kill ppcdebug 2005-11-07 12:37:45 +11:00
reconfig.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
rtasd.c powerpc: Fix some compile problems with the VDSO stuff 2005-11-11 23:04:40 +11:00
scanlog.c [PATCH] powerpc: Move scanlog.c to platforms/pseries 2005-11-10 13:09:27 +11:00
setup.c [PATCH] powerpc: Turn cpu_irq_down into kexec_cpu_down 2005-11-14 16:33:09 +11:00
smp.c powerpc: Fix some compile problems with the VDSO stuff 2005-11-11 23:04:40 +11:00
vio.c powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
xics.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
xics.h [PATCH] powerpc: Move xics.[ch] into platforms/pseries 2005-10-28 16:39:19 +10:00