diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-08-17 10:30:39 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-08-20 13:29:17 +0300 |
commit | db2173198b9513f7add8009f225afa1f1c79bcc6 (patch) | |
tree | 5b6c796b3bc8303a305ded6dcb145ba219b7ad3b /arch/powerpc/boot/simple_alloc.c | |
parent | a58183138cb72059a0c278f8370a47f41dae9afa (diff) | |
download | linux-db2173198b9513f7add8009f225afa1f1c79bcc6.tar.xz |
powerpc/powernv/pci: Work around races in PCI bridge enabling
The generic code is racy when multiple children of a PCI bridge try to
enable it simultaneously.
This leads to drivers trying to access a device through a
not-yet-enabled bridge, and this EEH errors under various
circumstances when using parallel driver probing.
There is work going on to fix that properly in the PCI core but it
will take some time.
x86 gets away with it because (outside of hotplug), the BIOS enables
all the bridges at boot time.
This patch does the same thing on powernv by enabling all bridges that
have child devices at boot time, thus avoiding subsequent races. It's
suitable for backporting to stable and distros, while the proper PCI
fix will probably be significantly more invasive.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/simple_alloc.c')
0 files changed, 0 insertions, 0 deletions