diff options
author | Michael J. Ruhl <[email protected]> | 2017-12-22 08:47:20 -0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2017-12-22 10:42:08 -0700 |
commit | 4c009af473b2026caaa26107e34d7cc68dad7756 (patch) | |
tree | b6c2b467dde85a47f5b1bd55656cb7bb99c9a179 /scripts/gdb/linux/dmesg.py | |
parent | 1f80bd6a6cc8358b81194e1f5fc16449947396ec (diff) |
IB/hfi: Only read capability registers if the capability exists
During driver init, various registers are saved to allow restoration
after an FLR or gen3 bump. Some of these registers are not available
in some circumstances (i.e. Virtual machines).
This bug makes the driver unusable when the PCI device is passed into
a VM, it fails during probe.
Delete unnecessary register read/write, and only access register if
the capability exists.
Cc: <[email protected]> # 4.14.x
Fixes: a618b7e40af2 ("IB/hfi1: Move saving PCI values to a separate function")
Reviewed-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Michael J. Ruhl <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions