The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1 0/3] switchtec: add new device IDs
@ 2026-07-14 21:20 Logan Gunthorpe
  2026-07-14 21:20 ` [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID Logan Gunthorpe
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2026-07-14 21:20 UTC (permalink / raw)
  To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
  Cc: Frank Li, Kelvin Cao, Logan Gunthorpe

This little patch set adds some new device IDs for switchtec hardware
to the PCI driver, the DMA driver and the PCI quirk needed for NTB.

I originally included this in a patchset I'm working on for
switchtec-dma but the Sashiko bot reminded me I need to add it to the
PCI management device and the quirk used for NTB. So I've respun three
patches here.

I'm open to options, but I might suggest if everyone is okay with it
these three patches could just go through the PCI tree together.

These three patches are based on v7.2-rc3.

Thanks,

Logan

Logan Gunthorpe (3):
  dmaengine: switchtec-dma: Add PCI1008 device ID
  PCI/switch: switchtec: Add PCI1008 device ID
  PCI: Add PCI1008 to switchtec NTB DMA alias quirk

 drivers/dma/switchtec_dma.c    | 1 +
 drivers/pci/quirks.c           | 1 +
 drivers/pci/switch/switchtec.c | 1 +
 3 files changed, 3 insertions(+)


base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
-- 
2.47.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID
  2026-07-14 21:20 [PATCH v1 0/3] switchtec: add new device IDs Logan Gunthorpe
@ 2026-07-14 21:20 ` Logan Gunthorpe
  2026-07-17 12:29   ` Vinod Koul
  2026-07-14 21:20 ` [PATCH v1 2/3] PCI/switch: switchtec: " Logan Gunthorpe
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Logan Gunthorpe @ 2026-07-14 21:20 UTC (permalink / raw)
  To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
  Cc: Frank Li, Kelvin Cao, Logan Gunthorpe

Add the PCI1008 device ID for switchtec-dma.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 drivers/dma/switchtec_dma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/switchtec_dma.c b/drivers/dma/switchtec_dma.c
index 3ef928640615..02083e3f6ebe 100644
--- a/drivers/dma/switchtec_dma.c
+++ b/drivers/dma/switchtec_dma.c
@@ -1424,6 +1424,7 @@ static const struct pci_device_id switchtec_dma_pci_tbl[] = {
 	SW_ID(PCI_VENDOR_ID_EFAR,      0x1004), /* PCI1004 16XG4 */
 	SW_ID(PCI_VENDOR_ID_EFAR,      0x1005), /* PCI1005 16XG4 */
 	SW_ID(PCI_VENDOR_ID_EFAR,      0x1006), /* PCI1006 16XG4 */
+	SW_ID(PCI_VENDOR_ID_EFAR,      0x1008), /* PCI1008 16XG4 */
 	{0}
 };
 MODULE_DEVICE_TABLE(pci, switchtec_dma_pci_tbl);
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v1 2/3] PCI/switch: switchtec: Add PCI1008 device ID
  2026-07-14 21:20 [PATCH v1 0/3] switchtec: add new device IDs Logan Gunthorpe
  2026-07-14 21:20 ` [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID Logan Gunthorpe
@ 2026-07-14 21:20 ` Logan Gunthorpe
  2026-07-14 21:20 ` [PATCH v1 3/3] PCI: Add PCI1008 to switchtec NTB DMA alias quirk Logan Gunthorpe
  2026-07-17 16:40 ` [PATCH v1 0/3] switchtec: add new device IDs Bjorn Helgaas
  3 siblings, 0 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2026-07-14 21:20 UTC (permalink / raw)
  To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
  Cc: Frank Li, Kelvin Cao, Logan Gunthorpe

Add the PCI1008 device ID to the core switchtec management
driver's PCI ID table. Without it, the management endpoint on a
PCI1008 switch is not bound by this driver, preventing userspace
tools from configuring or monitoring the switch and leaving NTB
functionality unavailable.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 drivers/pci/switch/switchtec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c
index 41fc4b512708..5711aaa5df11 100644
--- a/drivers/pci/switch/switchtec.c
+++ b/drivers/pci/switch/switchtec.c
@@ -1874,6 +1874,7 @@ static const struct pci_device_id switchtec_pci_tbl[] = {
 	SWITCHTEC_PCI100X_DEVICE(0x1004, SWITCHTEC_GEN4),  /* PCI1004 16XG4 */
 	SWITCHTEC_PCI100X_DEVICE(0x1005, SWITCHTEC_GEN4),  /* PCI1005 16XG4 */
 	SWITCHTEC_PCI100X_DEVICE(0x1006, SWITCHTEC_GEN4),  /* PCI1006 16XG4 */
+	SWITCHTEC_PCI100X_DEVICE(0x1008, SWITCHTEC_GEN4),  /* PCI1008 16XG4 */
 	{0}
 };
 MODULE_DEVICE_TABLE(pci, switchtec_pci_tbl);
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v1 3/3] PCI: Add PCI1008 to switchtec NTB DMA alias quirk
  2026-07-14 21:20 [PATCH v1 0/3] switchtec: add new device IDs Logan Gunthorpe
  2026-07-14 21:20 ` [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID Logan Gunthorpe
  2026-07-14 21:20 ` [PATCH v1 2/3] PCI/switch: switchtec: " Logan Gunthorpe
@ 2026-07-14 21:20 ` Logan Gunthorpe
  2026-07-17 16:40 ` [PATCH v1 0/3] switchtec: add new device IDs Bjorn Helgaas
  3 siblings, 0 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2026-07-14 21:20 UTC (permalink / raw)
  To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
  Cc: Frank Li, Kelvin Cao, Logan Gunthorpe

Add the PCI1008 device ID to the quirk_switchtec_ntb_dma_alias
PCI fixup table. Without it, DMA transactions from a PCI1008 switch's
NTB function are not given the correct requester ID alias, which can
misdirect them under an IOMMU.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 drivers/pci/quirks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index b09f27f7846f..44ccee48349c 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6090,6 +6090,7 @@ SWITCHTEC_PCI100X_QUIRK(0x1003);  /* PCI1003XG4 */
 SWITCHTEC_PCI100X_QUIRK(0x1004);  /* PCI1004XG4 */
 SWITCHTEC_PCI100X_QUIRK(0x1005);  /* PCI1005XG4 */
 SWITCHTEC_PCI100X_QUIRK(0x1006);  /* PCI1006XG4 */
+SWITCHTEC_PCI100X_QUIRK(0x1008);  /* PCI1008XG4 */
 
 
 /*
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID
  2026-07-14 21:20 ` [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID Logan Gunthorpe
@ 2026-07-17 12:29   ` Vinod Koul
  0 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2026-07-17 12:29 UTC (permalink / raw)
  To: Logan Gunthorpe
  Cc: linux-kernel, linux-pci, dmaengine, Bjorn Helgaas, Frank Li,
	Kelvin Cao

On 14-07-26, 15:20, Logan Gunthorpe wrote:
> Add the PCI1008 device ID for switchtec-dma.

Acked-by: Vinod Koul <vkoul@kernel.org>

-- 
~Vinod

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 0/3] switchtec: add new device IDs
  2026-07-14 21:20 [PATCH v1 0/3] switchtec: add new device IDs Logan Gunthorpe
                   ` (2 preceding siblings ...)
  2026-07-14 21:20 ` [PATCH v1 3/3] PCI: Add PCI1008 to switchtec NTB DMA alias quirk Logan Gunthorpe
@ 2026-07-17 16:40 ` Bjorn Helgaas
  3 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2026-07-17 16:40 UTC (permalink / raw)
  To: Logan Gunthorpe
  Cc: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas,
	Frank Li, Kelvin Cao

On Tue, Jul 14, 2026 at 03:20:07PM -0600, Logan Gunthorpe wrote:
> This little patch set adds some new device IDs for switchtec hardware
> to the PCI driver, the DMA driver and the PCI quirk needed for NTB.
> 
> I originally included this in a patchset I'm working on for
> switchtec-dma but the Sashiko bot reminded me I need to add it to the
> PCI management device and the quirk used for NTB. So I've respun three
> patches here.
> 
> I'm open to options, but I might suggest if everyone is okay with it
> these three patches could just go through the PCI tree together.
> 
> These three patches are based on v7.2-rc3.
> 
> Thanks,
> 
> Logan
> 
> Logan Gunthorpe (3):
>   dmaengine: switchtec-dma: Add PCI1008 device ID
>   PCI/switch: switchtec: Add PCI1008 device ID
>   PCI: Add PCI1008 to switchtec NTB DMA alias quirk
> 
>  drivers/dma/switchtec_dma.c    | 1 +
>  drivers/pci/quirks.c           | 1 +
>  drivers/pci/switch/switchtec.c | 1 +
>  3 files changed, 3 insertions(+)

Applied to pci/switchtec for v7.3, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-17 16:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 21:20 [PATCH v1 0/3] switchtec: add new device IDs Logan Gunthorpe
2026-07-14 21:20 ` [PATCH v1 1/3] dmaengine: switchtec-dma: Add PCI1008 device ID Logan Gunthorpe
2026-07-17 12:29   ` Vinod Koul
2026-07-14 21:20 ` [PATCH v1 2/3] PCI/switch: switchtec: " Logan Gunthorpe
2026-07-14 21:20 ` [PATCH v1 3/3] PCI: Add PCI1008 to switchtec NTB DMA alias quirk Logan Gunthorpe
2026-07-17 16:40 ` [PATCH v1 0/3] switchtec: add new device IDs Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox