[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200106210512.34244-3-snelson@pensando.io>
Date: Mon, 6 Jan 2020 13:05:10 -0800
From: Shannon Nelson <snelson@...sando.io>
To: netdev@...r.kernel.org, davem@...emloft.net
Cc: Shannon Nelson <snelson@...sando.io>
Subject: [PATCH net-next 2/4] ionic: fix for ppc msix layout
The IBM Power9 ppc64 seems to have a problem with not wanting
to limit the address space used by a PCI device. The Naples
internal HW can only address up to 52 bits, but the ppc does
not play well with that limitation. This patch tells the
system how to work with Naples successfully.
Signed-off-by: Shannon Nelson <snelson@...sando.io>
---
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c b/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
index 448d7b23b2f7..9fd3862dee0d 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
@@ -222,6 +222,9 @@ static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
mutex_init(&ionic->dev_cmd_lock);
/* Query system for DMA addressing limitation for the device. */
+#ifdef CONFIG_PPC64
+ ionic->pdev->no_64bit_msi = 1;
+#endif
err = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(IONIC_ADDR_LEN));
if (err) {
dev_err(dev, "Unable to obtain 64-bit DMA for consistent allocations, aborting. err=%d\n",
--
2.17.1
Powered by blists - more mailing lists