1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-21 02:21:36 +00:00
linux/arch/powerpc/platforms
Linas Vepstas 054d8ff377 [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>
2006-05-03 23:06:40 +10:00
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
83xx powerpc: converted embedded platforms to use new define_machine support 2006-03-30 23:39:57 -06:00
85xx powerpc: converted embedded platforms to use new define_machine support 2006-03-30 23:39:57 -06:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [PATCH] powerpc: cell: Add numa id to struct spu 2006-05-01 18:17:46 -07:00
chrp powerpc: Fix CHRP booting - needs a define_machine call 2006-04-05 16:01:45 +10:00
embedded6xx [PATCH] powerpc: Updated Kconfig and Makefiles for 83xx support 2006-01-11 15:35:29 +11:00
iseries powerpc: iSeries has only 256 IRQs 2006-04-04 14:49:48 +10:00
maple Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
powermac [PATCH] USB: Use new PCI_CLASS_SERIAL_USB_* defines 2006-04-27 10:28:59 -07:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [PATCH] powerpc/pseries: avoid crash in PCI code if mem system not up 2006-05-03 23:06:40 +10:00
Makefile [PATCH] powerpc: Updated Initial MPC8540 ADS port with OF Flat Dev 2006-01-20 16:11:06 +11:00