aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/pci.c
diff options
context:
space:
mode:
authorPhilippe Bergheaud <felix@linux.ibm.com>2018-05-14 04:27:36 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-05-15 07:30:01 -0400
commit497a0790e2c604366b9e35dcb41310319e9bca13 (patch)
tree4e2d24aa965a94a434daeeebf6ae02befc66fdd9 /drivers/misc/cxl/pci.c
parent401dca8cbd14fc4b32d93499dcd12a1711a73ecc (diff)
cxl: Report the tunneled operations status
Failure to synchronize the tunneled operations does not prevent the initialization of the cxl card. This patch reports the tunneled operations status via /sys. Signed-off-by: Philippe Bergheaud <felix@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/pci.c')
-rw-r--r--drivers/misc/cxl/pci.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 4eb893284af2..4d6736f9d463 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -1742,9 +1742,14 @@ static int cxl_configure_adapter(struct cxl *adapter, struct pci_dev *dev)
1742 /* Required for devices using CAPP DMA mode, harmless for others */ 1742 /* Required for devices using CAPP DMA mode, harmless for others */
1743 pci_set_master(dev); 1743 pci_set_master(dev);
1744 1744
1745 if (cxl_is_power9()) 1745 adapter->tunneled_ops_supported = false;
1746
1747 if (cxl_is_power9()) {
1746 if (pnv_pci_set_tunnel_bar(dev, 0x00020000E0000000ull, 1)) 1748 if (pnv_pci_set_tunnel_bar(dev, 0x00020000E0000000ull, 1))
1747 dev_info(&dev->dev, "Tunneled operations unsupported\n"); 1749 dev_info(&dev->dev, "Tunneled operations unsupported\n");
1750 else
1751 adapter->tunneled_ops_supported = true;
1752 }
1748 1753
1749 if ((rc = pnv_phb_to_cxl_mode(dev, adapter->native->sl_ops->capi_mode))) 1754 if ((rc = pnv_phb_to_cxl_mode(dev, adapter->native->sl_ops->capi_mode)))
1750 goto err; 1755 goto err;