https://github.com/torvalds/linux
Revision 828bcbdc975fbcfb27946c33d4b1d1bfab70789b authored by Harish Chegondi on 26 September 2017, 13:06:34 UTC, committed by Doug Ledford on 27 September 2017, 15:10:36 UTC
Failure to tune PCIe capabilities should not fail driver load. This can
cause the driver load to fail on systems with any of the following:
1. HFI's parent is not root. Example: HFI card is behind a PCIe bridge.
2. HFI's parent is not PCI Express capable.
In these situations, failure to tune PCIe capabilities should be logged
in the system message logs but not cause the driver load to fail.

This patch also ensures pcie capability word DevCtl is written only
after a successful read and the capability tuning process continues
even if read/write of the pcie capability word DevCtl fails.

Fixes: c53df62c7a9a ("IB/hfi1: Check return values from PCI config API calls")
Fixes: bf70a7757736 ("staging/rdma/hfi1: Enable WFR PCIe extended tags from the driver")
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent b8f4273
Raw File
Tip revision: 828bcbdc975fbcfb27946c33d4b1d1bfab70789b authored by Harish Chegondi on 26 September 2017, 13:06:34 UTC
IB/hfi1: Unsuccessful PCIe caps tuning should not fail driver load
Tip revision: 828bcbd
.gitattributes
*.c   diff=cpp
*.h   diff=cpp
back to top