IB/hfi1: change PCI bar addr assignments to Linux API functions
Subsystems (2)
PATCH 1/1 IB/hfi1: change PCI bar addr assignments to Linux API functions
From: "Steven L. Roberts" <[email protected]>
The Omni-path adapter driver fails to load the ppc64le platform due to invalid PCI setup.
This patch makes the PCI configuration more robust and will fix 64 bit addressing for ppc64le.
Signed-off-by Steven L Roberts <[email protected]>
--- drivers/infiniband/hw/hfi1/pcie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/hfi1/pcie.c +2 -2
@@ -207,8 +207,8 @@ int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev)/* * Save BARs and command to rewrite after device reset. */ - dd->pcibar0 = addr; - dd->pcibar1 = addr >>32 ; +pci_read_config_dword (dd->pcidev,PCI_BASE_ADDRESS_0 , &dd->pcibar0); +pci_read_config_dword (dd->pcidev,PCI_BASE_ADDRESS_1 , &dd->pcibar1);pci_read_config_dword (dd->pcidev,PCI_ROM_ADDRESS , &dd->pci_rom);pci_read_config_word (dd->pcidev,PCI_COMMAND , &dd->pci_command);pcie_capability_read_word (dd->pcidev,PCI_EXP_DEVCTL , &dd->pcie_devctl);
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 8 lines · Steven L. Roberts
The Omni-path adapter driver fails to load the ppc64le platform due to invalid PCI setup.
This patch makes the PCI configuration more robust and will fix 64 bit addressing for ppc64le.
Signed-off-by Steven L Roberts <[email protected]>
Thanks, applied.
Signature · 9 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html