aboutsummaryrefslogtreecommitdiff
path: root/libc/test
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2017-08-17 16:04:46 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-21 11:58:19 +1000
commitf5d90498d52cc128b90f65ce410dfb42943ba004 (patch)
tree6a2b9cfbdafef6311d6af0078af731ca7c2c6786 /libc/test
parentc8d212e3bc079fa76b5c4c633b423a70f7e1772a (diff)
downloadskiboot-f5d90498d52cc128b90f65ce410dfb42943ba004.zip
skiboot-f5d90498d52cc128b90f65ce410dfb42943ba004.tar.gz
skiboot-f5d90498d52cc128b90f65ce410dfb42943ba004.tar.bz2
pci: Wait for CRS and switch link when restoring bus numbers
When a complete reset occurs, after the PHB recovers it propagates a reset down the wire to every device. At the same time, skiboot talks to every device in order to restore the state of devices to what they were before the reset. In some situations, such as devices that recovered slowly and/or were behind a switch, skiboot attempted to access config space of the device before the link was up and the device could respond. Fix this by retrying CRS until the device responds correctly, and for devices behind a switch, making sure the switch has its link up first. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Russell Currey <ruscur@russell.cc> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Tested-by: Hari Bathini <hbathini@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc/test')
0 files changed, 0 insertions, 0 deletions