Thread (7 messages) 7 messages, 2 authors, 2020-01-07
STALE2340d
Revisions (5)
  1. v2 [diff vs current]
  2. v3 [diff vs current]
  3. v1 current
  4. v2 [diff vs current]
  5. v1 [diff vs current]

[PATCH net-next 2/4] ionic: fix for ppc msix layout

From: Shannon Nelson <hidden>
Date: 2020-01-06 21:05:29
Subsystem: networking drivers, pensando ethernet drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Brett Creeley, Linus Torvalds

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help