aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2017-03-29 22:49:06 -0500
committerBjorn Helgaas <[email protected]>2017-03-29 22:54:56 -0500
commit4b103883473964bbb7b0b6934999b283ee234a8a (patch)
treec03775e34f887f26d6f5eeb839006614033f2cf4 /tools/perf/scripts/python
parent89ee9f7680031d7df91a1a27abac69e034c2e892 (diff)
PCI: Don't attempt config access to disconnected devices
If we've detected the PCI device is disconnected, there is no need to attempt to access its config space since we know the operation will fail. Make all the config reads and writes return -ENODEV error immediately when in such a state. If a caller requests a config read to a disconnected device, return a data value of all 1's. This is the same as what hardware is expected to return when accessing a removed device, but software can do this faster without relying on hardware. Tested-by: Krishna Dhulipala <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Wei Zhang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions