* [PATCH 0/2] More switchtec device IDs
@ 2026-11-03 17:52 Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure " Logan Gunthorpe
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 17:52 UTC (permalink / raw)
To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
Cc: Frank Li, Kelvin Cao, Logan Gunthorpe
These patches add some missing device IDs to the PCI quirk and the
dmaengine driver. The same device ID was added to the main PCI driver
back in commit 5e6c21c56998 ("PCI: switchtec: Add Gen6 Device IDs").
As, like last time, these patches touch both the PCI and
the dmaengine tree so I'll humbly suggest that they
go through the PCI tree again.
This is a quick resend after Sashiko found a bunch more missing IDs
that I've added to the quirks patch.
Thanks,
Logan
Changes since v1:
* Add the rest of the Gen6 device IDs to the quirk so it
matches the switchtec driver's ID table (per Sashiko)
Logan Gunthorpe (2):
dmaengine: switchtec-dma: Add Gen6 secure device IDs
PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk
drivers/dma/switchtec_dma.c | 4 ++++
drivers/pci/quirks.c | 16 ++++++++++++++++
2 files changed, 20 insertions(+)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.47.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure device IDs
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
@ 2026-11-03 17:52 ` Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 2/2] PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk Logan Gunthorpe
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 17:52 UTC (permalink / raw)
To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
Cc: Frank Li, Kelvin Cao, Logan Gunthorpe
Add the device IDs for the Gen6 PFXs and PSXs secure switches
(48XG6 and 64XG6) so switchtec-dma binds to their DMA functions.
Based-on-a-patch-by: Kelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
drivers/dma/switchtec_dma.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/dma/switchtec_dma.c b/drivers/dma/switchtec_dma.c
index a386c3a284e6..1af938bb40b3 100644
--- a/drivers/dma/switchtec_dma.c
+++ b/drivers/dma/switchtec_dma.c
@@ -1455,6 +1455,10 @@ static const struct pci_device_id switchtec_dma_pci_tbl[] = {
SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x5452), /* PSXA 52XG5 */
SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x5436), /* PSXA 36XG5 */
SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x5428), /* PSXA 28XG5 */
+ SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x6064), /* PFXs 64XG6 */
+ SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x6048), /* PFXs 48XG6 */
+ SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x6164), /* PSXs 64XG6 */
+ SW_ID(PCI_VENDOR_ID_MICROSEMI, 0x6148), /* PSXs 48XG6 */
SW_ID(PCI_VENDOR_ID_EFAR, 0x1001), /* PCI1001 16XG4 */
SW_ID(PCI_VENDOR_ID_EFAR, 0x1002), /* PCI1002 16XG4 */
SW_ID(PCI_VENDOR_ID_EFAR, 0x1003), /* PCI1003 16XG4 */
--
2.47.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure " Logan Gunthorpe
@ 2026-11-03 17:52 ` Logan Gunthorpe
2026-11-03 17:57 ` [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 18:34 ` Bjorn Helgaas
3 siblings, 0 replies; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 17:52 UTC (permalink / raw)
To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
Cc: Frank Li, Kelvin Cao, Logan Gunthorpe, Sashiko
Add the Gen6 PFXs, PSXs, PFX and PSX switch device IDs (48XG6, 64XG6,
144XG6 and 160XG6) to the quirk_switchtec_ntb_dma_alias PCI fixup
table, matching the switchtec driver's PCI ID table. Without them, DMA
transactions from these switches' NTB function are not given the
correct requester ID alias, which can misdirect them under an IOMMU.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20261103170033.471034-1-logang@deltatee.com?part=2
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
drivers/pci/quirks.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 7f1f47ea2ee4..3d92b99a4923 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6250,6 +6250,22 @@ SWITCHTEC_QUIRK(0x5568); /* PAXA 68XG5 */
SWITCHTEC_QUIRK(0x5552); /* PAXA 52XG5 */
SWITCHTEC_QUIRK(0x5536); /* PAXA 36XG5 */
SWITCHTEC_QUIRK(0x5528); /* PAXA 28XG5 */
+SWITCHTEC_QUIRK(0x6060); /* PFXs 160XG6 */
+SWITCHTEC_QUIRK(0x6044); /* PFXs 144XG6 */
+SWITCHTEC_QUIRK(0x6064); /* PFXs 64XG6 */
+SWITCHTEC_QUIRK(0x6048); /* PFXs 48XG6 */
+SWITCHTEC_QUIRK(0x6160); /* PSXs 160XG6 */
+SWITCHTEC_QUIRK(0x6144); /* PSXs 144XG6 */
+SWITCHTEC_QUIRK(0x6164); /* PSXs 64XG6 */
+SWITCHTEC_QUIRK(0x6148); /* PSXs 48XG6 */
+SWITCHTEC_QUIRK(0x6260); /* PFX 160XG6 */
+SWITCHTEC_QUIRK(0x6244); /* PFX 144XG6 */
+SWITCHTEC_QUIRK(0x6264); /* PFX 64XG6 */
+SWITCHTEC_QUIRK(0x6248); /* PFX 48XG6 */
+SWITCHTEC_QUIRK(0x6360); /* PSX 160XG6 */
+SWITCHTEC_QUIRK(0x6344); /* PSX 144XG6 */
+SWITCHTEC_QUIRK(0x6364); /* PSX 64XG6 */
+SWITCHTEC_QUIRK(0x6348); /* PSX 48XG6 */
#define SWITCHTEC_PCI100X_QUIRK(vid) \
DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_EFAR, vid, \
--
2.47.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] More switchtec device IDs
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure " Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 2/2] PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk Logan Gunthorpe
@ 2026-11-03 17:57 ` Logan Gunthorpe
2026-11-03 18:34 ` Bjorn Helgaas
3 siblings, 0 replies; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 17:57 UTC (permalink / raw)
To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
Cc: Frank Li, Kelvin Cao
Ooops -- sorry! I missed marking this series as v2. It fixes the issue
Sashiko pointed out on the first batch.
Logan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] More switchtec device IDs
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
` (2 preceding siblings ...)
2026-11-03 17:57 ` [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
@ 2026-11-03 18:34 ` Bjorn Helgaas
2026-11-03 19:44 ` Logan Gunthorpe
3 siblings, 1 reply; 8+ messages in thread
From: Bjorn Helgaas @ 2026-11-03 18:34 UTC (permalink / raw)
To: Logan Gunthorpe
Cc: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas,
Frank Li, Kelvin Cao
On Tue, Nov 03, 2026 at 11:52:06AM -0600, Logan Gunthorpe wrote:
> These patches add some missing device IDs to the PCI quirk and the
> dmaengine driver. The same device ID was added to the main PCI driver
> back in commit 5e6c21c56998 ("PCI: switchtec: Add Gen6 Device IDs").
>
> As, like last time, these patches touch both the PCI and
> the dmaengine tree so I'll humbly suggest that they
> go through the PCI tree again.
>
> This is a quick resend after Sashiko found a bunch more missing IDs
> that I've added to the quirks patch.
>
> Thanks,
>
> Logan
>
> Changes since v1:
> * Add the rest of the Gen6 device IDs to the quirk so it
> matches the switchtec driver's ID table (per Sashiko)
>
> Logan Gunthorpe (2):
> dmaengine: switchtec-dma: Add Gen6 secure device IDs
> PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk
>
> drivers/dma/switchtec_dma.c | 4 ++++
> drivers/pci/quirks.c | 16 ++++++++++++++++
> 2 files changed, 20 insertions(+)
Replaced v1 with these patches, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] More switchtec device IDs
2026-11-03 18:34 ` Bjorn Helgaas
@ 2026-11-03 19:44 ` Logan Gunthorpe
0 siblings, 0 replies; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 19:44 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas,
Frank Li, Kelvin Cao
On 2026-11-03 11:34, Bjorn Helgaas wrote:
> Replaced v1 with these patches, thanks!
Thanks! Sorry again for the extra noise.
Logan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] More switchtec device IDs
2026-11-03 17:00 Logan Gunthorpe
@ 2026-11-03 18:30 ` Bjorn Helgaas
0 siblings, 0 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2026-11-03 18:30 UTC (permalink / raw)
To: Logan Gunthorpe
Cc: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas,
Frank Li, Kelvin Cao
On Tue, Nov 03, 2026 at 11:00:31AM -0600, Logan Gunthorpe wrote:
> These patches add some missing device IDs to the PCI quirk and the
> dmaengine driver. The same device ID was added to the main PCI driver
> back in commit 5e6c21c56998 ("PCI: switchtec: Add Gen6 Device IDs").
>
> As, like last time, these patches touch both the PCI and
> the dmaengine tree so I'll humbly suggest that they
> go through the PCI tree again.
>
> Thanks,
>
> Logan
>
> --
>
> Logan Gunthorpe (2):
> dmaengine: switchtec-dma: Add Gen6 secure device IDs
> PCI: switchtec: Add Gen6 secure switches to NTB DMA alias quirk
>
> drivers/dma/switchtec_dma.c | 4 ++++
> drivers/pci/quirks.c | 4 ++++
> 2 files changed, 8 insertions(+)
Applied to pci/switchtec for v7.5, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 0/2] More switchtec device IDs
@ 2026-11-03 17:00 Logan Gunthorpe
2026-11-03 18:30 ` Bjorn Helgaas
0 siblings, 1 reply; 8+ messages in thread
From: Logan Gunthorpe @ 2026-11-03 17:00 UTC (permalink / raw)
To: linux-kernel, linux-pci, dmaengine, Vinod Koul, Bjorn Helgaas
Cc: Frank Li, Kelvin Cao, Logan Gunthorpe
These patches add some missing device IDs to the PCI quirk and the
dmaengine driver. The same device ID was added to the main PCI driver
back in commit 5e6c21c56998 ("PCI: switchtec: Add Gen6 Device IDs").
As, like last time, these patches touch both the PCI and
the dmaengine tree so I'll humbly suggest that they
go through the PCI tree again.
Thanks,
Logan
--
Logan Gunthorpe (2):
dmaengine: switchtec-dma: Add Gen6 secure device IDs
PCI: switchtec: Add Gen6 secure switches to NTB DMA alias quirk
drivers/dma/switchtec_dma.c | 4 ++++
drivers/pci/quirks.c | 4 ++++
2 files changed, 8 insertions(+)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.47.3
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-03 19:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure " Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 2/2] PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk Logan Gunthorpe
2026-11-03 17:57 ` [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 18:34 ` Bjorn Helgaas
2026-11-03 19:44 ` Logan Gunthorpe
-- strict thread matches above, loose matches on Subject: below --
2026-11-03 17:00 Logan Gunthorpe
2026-11-03 18:30 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®