aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2016-06-23 13:31:01 -0700
committerJeff Kirsher <[email protected]>2016-08-29 01:31:03 -0700
commit18095937cb1c66b8ff944de02cf04d1497008352 (patch)
treec9ab1449f383ab1b2415efdc5b06855319f22f55 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent76ef0fc5a7519690a6a87a248f5709463f584292 (diff)
fm10k: don't continue probe if PCI device not in normal IO state
In the event of an uncorrectable AER error occurring when the driver has not loaded, the recovery routines are not done. This is done because future loads of the driver may not be aware of the IO state and may not be able to recover at all. In this case, when we next load the driver it fails due to what appears to be a surprise remove event. Instead, add a check to ensure that the device is in the normal IO state before continuing to probe. This allows us to give a more descriptive message of what is wrong. Without this change, the driver will attempt to probe up to our first call of .reset_hw() which will be unable to read registers and act as if a surprise remove event occurred. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Krishneil Singh <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions