]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: Make eeh_init function again
authorPaul Mackerras <paulus@samba.org>
Tue, 13 Sep 2005 10:56:20 +0000 (20:56 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Sep 2005 15:26:15 +0000 (08:26 -0700)
commite0be1d24c38eed94a8c28dc4b279015739416eb6
treef6aa908acf391bb95622d194b77920d8d2e159bd
parent064ef33903a62d6cb4414a559883ba4c41ed7af9
[PATCH] ppc64: Make eeh_init function again

My patch "Separate pci bits out of struct device_node" (commit
ffd16e0173af3781b5042a8474311b9525bebefd) had the unfortunate
side-effect that it stopped eeh_init() from working correctly.

It needs the pointers set up by find_and_init_phbs(), but it was being
called just before find_and_init_phbs().  That meant that we didn't
enable EEH (pSeries PCI error recovery) on any devices, and that meant
that on POWER5 systems, the hypervisor wouldn't let us enable memory or
I/O space access to any devices, and their drivers got somewhat
confused.

This fixes it by moving the eeh_init call after find_and_init_phbs.
Tested on a POWER5 partition.

Signed-of-by: Paul Mackerras <paulus@samba.org>
Signed-of-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/pSeries_setup.c