]> err.no Git - linux-2.6/commit
[PATCH] powerpc/pseries: avoid crash in PCI code if mem system not up
authorLinas Vepstas <linas@austin.ibm.com>
Thu, 27 Apr 2006 09:31:20 +0000 (02:31 -0700)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 May 2006 13:06:40 +0000 (23:06 +1000)
commit054d8ff37710efaebd1998ce94d366df315a354f
tree5496fbdd8b3b27e8ca4850055c1c00f30d52e0b3
parente17df688f7064dae1417ce425dd1e4b71d24d63b
[PATCH] powerpc/pseries: avoid crash in PCI code if mem system not up

The powerpc code is currently performing PCI setup before memory
initialization.  PCI setup touches PCI config space registers.  If the PCI
card is bad, this will evoke an error, which currrently can't be handled,
as the PCI error recovery code expects kmalloc() to be functional.  This
patch will cause the system to punt instead of crashing with

cpu 0x0: Vector: 300 (Data Access) at [c0000000004434d0]
    pc: c0000000000c06b4: .kmem_cache_alloc+0x8c/0xf4
    lr: c00000000004ad6c: .eeh_send_failure_event+0x48/0xfc

This patch will also print name of the offending pci device.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh_event.c