PCI: xilinx-xdma: Enable legacy interrupts
PATCH 1/1 PCI: xilinx-xdma: Enable legacy interrupts
Starting with kernel 6.6.0, legacy interrupts from PCIe endpoints do not flow through the Xilinx XDMA root port bridge because interrupts are not enabled after initializing the port.
This issue is seen after XDMA driver received support for QDMA and underwent relevant code restructuring of old xdma-pl driver to xilinx-dma-pl (ref commit: 8d786149d78c).
This patch re-enables legacy interrupts to use with PCIe endpoints with legacy interrupts. Tested the fix on a board with two endpoints generating legacy interrupts. Interrupts are properly detected and serviced. The /proc/interrupts output shows:
[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv
[...]
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/pci/controller/pcie-xilinx-dma-pl.c +6 -0
@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Signature · 1 line
2.47.3
Manivannan Sadhasivam
maintainerOn Fri, Sep 19, 2025 at 11:13:30PM +0000, Ravi Kumar Bandi wrote:
+ Thippeswamy (author or 8d786149d78c)
Quoted 8 lines
Starting with kernel 6.6.0, legacy interrupts from PCIe endpoints do not flow through the Xilinx XDMA root port bridge because interrupts are not enabled after initializing the port.
This issue is seen after XDMA driver received support for QDMA and underwent relevant code restructuring of old xdma-pl driver to xilinx-dma-pl (ref commit:
8d786149d78c).
The above mentioned commmit added a new driver. So I don't see when the driver restructuring happened.
Quoted 2 lines
This patch re-enables legacy interrupts to use with PCIe endpoints with legacy interrupts.
s/legacy/INTx, here and everywhere.
Quoted 9 lines
Tested the fix on a board with two endpoints
generating legacy interrupts. Interrupts are properly detected and serviced. The/proc/interruptsoutput shows:
[...]32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Signed-off-by Ravi Kumar Bandi <[email protected]>
Missing Fixes tag and you should CC stable list for backporting.
- Mani
Quoted 24 lines
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }Signature · 1 line
2.47.3
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Hello Mani,
Thanks for reviewing the patch.
Quoted 9 lines · Manivannan Sadhasivam
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
On Fri, Sep 19, 2025 at 11:13:30PM +0000, Ravi Kumar Bandi wrote:
+ Thippeswamy (author or
8d786149d78c)
Thanks for adding.
Quoted 5 lines
Quoted 5 lines
Starting with kernel 6.6.0, legacy interrupts from PCIe endpoints do not flow through the Xilinx XDMA root port bridge because interrupts are not enabled after initializing the port.
Quoted 7 lines
Quoted 4 lines
This issue is seen after XDMA driver received support for QDMA and underwent relevant code restructuring of old xdma-pl driver to xilinx-dma-pl (ref commit:
8d786149d78c).The above mentioned commmit added a new driver. So I don't see when the driver restructuring happened.
Ack. I’ve updated the commit message in the v2.
Quoted 5 lines
Quoted 3 lines
This patch re-enables legacy interrupts to use with PCIe endpoints with legacy interrupts.
s/legacy/INTx, here and everywhere.
Ack. Taken care in v2.
Quoted 9 lines
Quoted 9 lines
Tested the fix on a board with two endpoints
generating legacy interrupts. Interrupts are properly detected and serviced. The/proc/interruptsoutput shows:
[...]32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Quoted 3 lines
Quoted 1 line
Signed-off-by Ravi Kumar Bandi <[email protected]>Missing Fixes tag and you should CC stable list for backporting.
Ack. Added the tag and CC’ed stable list in v2.
I’ll submit v2 with the comments incorporated, please review.
Thanks,
Ravi
Quoted 30 lines
- Mani
Quoted 22 lines
---
drivers/pci/controller/pcie-xilinx-dma-pl.c| 6 ++++++1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-1@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; } --Quoted 2 lines
2.47.3
--
மணிவண்ணன் சதாசிவம்
PATCH v2 1/1 PCI: xilinx-xdma: Enable INTx interrupts
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The /proc/interrupts output shows:
[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv
[...]
Changes since v1::
- Fixed commit message per reviewer's comments
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/pci/controller/pcie-xilinx-dma-pl.c +6 -0
@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Signature · 1 line
2.47.3
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Hello Mani, Thippeswamy,
A gentle reminder to review patch v2. Please let me know if you need any additional information. Thanks.
Sincerely,
Ravi
Quoted 48 lines · Ravi Kumar
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>---
drivers/pci/controller/pcie-xilinx-dma-pl.c| 6 ++++++1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }Signature · 1 line
2.47.3
Manivannan Sadhasivam
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Ravi Kumar BandiQuoted 14 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv
Quoted 8 lines
[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>
Thippeswamy, are you fine with this change?
- Mani
Quoted 24 lines
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }Signature · 1 line
2.47.3
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Manivannan Sadhasivam
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 17 lines · Manivannan Sadhasivam
Quoted 16 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Quoted 9 lines
Quoted 6 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Thippeswamy, are you fine with this change?
Since there was no reply for a while and the change looked good to me, I've merged this patch.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Ravi Kumar BandiQuoted 5 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
Quoted 7 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
Applied, thanks!
[1/1] PCI: xilinx-xdma: Enable INTx interrupts
commit: c098c13f4365e6750009be4d90dba36fa4a19b4e
Best regards,
Signature · 1 line
Manivannan Sadhasivam <[email protected]>
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[+cc Stefan et al]
Quoted 12 lines · Manivannan Sadhasivam
Quoted 11 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:
Quoted 6 lines
Quoted 1 line
[...]
Applied, thanks!
[1/1] PCI: xilinx-xdma: Enable INTx interrupts
commit: c098c13f4365e6750009be4d90dba36fa4a19b4e
Pretty sure we have confirmation that we don't need either this patch or Stefan's patch, so I removed the pci/controller/xilinx-dma branch.
It was at 2002478e5034 ("PCI: xilinx-xdma: Enable INTx interrupts") in case we need to resurrect it.
IIUC, Stefan confirmed that he didn't need this patch (Ravi's) [1], and that after Vivado is fixed to generate the correct interrupt-map, his patch (Stefan's) won't be needed either [2].
[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 36 lines · Bjorn Helgaas
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
[+cc Stefan et al]
Quoted 12 lines · Manivannan Sadhasivam
Quoted 11 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:Quoted 6 lines
Quoted 1 line
[...]
Applied, thanks!
[1/1] PCI: xilinx-xdma: Enable INTx interrupts
commit: c098c13f4365e6750009be4d90dba36fa4a19b4ePretty sure we have confirmation that we don't need either this patch or Stefan's patch, so I removed the pci/controller/xilinx-dma branch.
It was at
2002478e5034("PCI: xilinx-xdma: Enable INTx interrupts") in case we need to resurrect it.
Quoted 6 lines
IIUC, Stefan confirmed that he didn't need this patch (Ravi's) [1], and that after Vivado is fixed to generate the correct interrupt-map, his patch (Stefan's) won't be needed either [2].
[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
Hello Bjorn, and Mani et al.,
Thank you for taking the time to review the patch and explain the reasoning.
Sincerly,
Ravi
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Ravi Kumar Bandi[+cc Stefan, Sean]
Quoted 14 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv
Quoted 8 lines
[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]
Does Stefan's fix need to be squashed into this patch?
Quoted 24 lines
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }Signature · 1 line
2.47.3
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 33 lines · Bjorn Helgaas
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
[+cc Stefan, Sean]
Quoted 14 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrvQuoted 8 lines
[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Hi Bjorn,
Sure, we can squash Stefan’s fix into this.
Thanks
Ravi
Quoted 25 lines
Quoted 25 lines
---
drivers/pci/controller/pcie-xilinx-dma-pl.c| 6 ++++++1 file changed, 6 insertions(+)drivers/pci/controller/pcie-xilinx-dma-pl.c +6
-1@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; } --2.47.3
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 25 lines · Ravi Kumar
Quoted 25 lines · Bjorn Helgaas
Quoted 22 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>
Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
- Why you mentioned "kernel 6.6.0 and later versions." 8d786149d78c appeared in v6.7, so why would v6.6.0 would be affected?
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
+++
b/drivers/pci/controller/pcie-xilinx-dma-pl.cdrivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 42 lines · Bjorn Helgaas
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
Quoted 25 lines · Ravi Kumar
Quoted 25 lines · Bjorn Helgaas
Quoted 22 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
Quoted 4 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Quoted 3 lines
- Why you mentioned "kernel 6.6.0 and later versions."
8d786149d78cappeared in v6.7, so why would v6.6.0 would be affected?
Apologies for not clearly mentioning the version earlier. This is from the linux-xlnx tree on the xlnx_rebase_v6.6 branch, which includes the new Xilinx root port driver with QDMA support:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.6_LTS/drivers/pci/controller/pcie-xilinx-dma-pl.c
In earlier versions, the driver was:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.1_LTS_2023.1_update/drivers/pci/controller/pcie-xdma-pl.c
This older driver had no issues with interrupts.
The new driver introduced in v6.7 and later is a rewrite of the old one, now with QDMA support, which has issues with INTx interrupts.
Thank you.
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
+++
b/drivers/pci/controller/pcie-xilinx-dma-pl.cdrivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 43 lines · Ravi Kumar
Quoted 34 lines · Ravi Kumar
Quoted 25 lines
Quoted 25 lines · Bjorn Helgaas
Quoted 22 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 6 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Quoted 9 lines
Quoted 3 lines
- Why you mentioned "kernel 6.6.0 and later versions."
8d786149d78cappeared in v6.7, so why would v6.6.0 would be affected?Apologies for not clearly mentioning the version earlier. This is from the linux-xlnx tree on the xlnx_rebase_v6.6 branch, which includes the new Xilinx root port driver with QDMA support:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.6_LTS/drivers/pci/controller/pcie-xilinx-dma-pl.c
Quoted 6 lines
In earlier versions, the driver was:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.1_LTS_2023.1_update/drivers/pci/controller/pcie-xdma-pl.c
This older driver had no issues with interrupts.The new driver introduced in v6.7 and later is a rewrite of the old one, now with QDMA support, which has issues with INTx interrupts.
OK, this sounds like out-of-tree history that is not relevant in the mainline kernel, so Mani did the right thing in omitting it.
I think the best thing to do is to squash Stefan's patch into this one so we end up with a single patch that makes INTx work correctly.
Ravi and Stefan, does that seem OK to you?
Quoted 14 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
+++
b/drivers/pci/controller/pcie-xilinx-dma-pl.cdrivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 66 lines · Bjorn Helgaas
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
Quoted 43 lines · Ravi Kumar
Quoted 34 lines · Ravi Kumar
Quoted 25 lines
Quoted 25 lines · Bjorn Helgaas
Quoted 22 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Thanks for confirming.
Quoted 17 lines
Quoted 10 lines
Quoted 4 lines
- Why you mentioned "kernel 6.6.0 and later versions."
8d786149d78cappeared in v6.7, so why would v6.6.0 would be affected?Apologies for not clearly mentioning the version earlier. This is from the linux-xlnx tree on the xlnx_rebase_v6.6 branch, which includes the new Xilinx root port driver with QDMA support:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.6_LTS/drivers/pci/controller/pcie-xilinx-dma-pl.cQuoted 6 lines
In earlier versions, the driver was:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.1_LTS_2023.1_update/drivers/pci/controller/pcie-xdma-pl.c
This older driver had no issues with interrupts.The new driver introduced in v6.7 and later is a rewrite of the old one, now with QDMA support, which has issues with INTx interrupts.
Quoted 7 lines
OK, this sounds like out-of-tree history that is not relevant in the mainline kernel, so Mani did the right thing in omitting it.
I think the best thing to do is to squash Stefan's patch into this one so we end up with a single patch that makes INTx work correctly.
Ravi and Stefan, does that seem OK to you?
Sure, I’m OK, thank you.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
+++
b/drivers/pci/controller/pcie-xilinx-dma-pl.cdrivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Bjorn HelgaasHi Bjorn,
Hi Ravi,
Quoted 15 lines · Bjorn Helgaas
Quoted 14 lines · Ravi Kumar
Quoted 14 lines · Ravi Kumar
Quoted 13 lines
Quoted 13 lines · Bjorn Helgaas
Quoted 11 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with pci_irqd_intx_xlate added:
24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1
The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 39 lines
Quoted 25 lines
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with pci_irqd_intx_xlate added.
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...
Quoted 16 lines
Quoted 9 lines
Quoted 3 lines
- Why you mentioned "kernel 6.6.0 and later versions."
8d786149d78cappeared in v6.7, so why would v6.6.0 would be affected?Apologies for not clearly mentioning the version earlier. This is from the linux-xlnx tree on the xlnx_rebase_v6.6 branch, which includes the new Xilinx root port driver with QDMA support:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.6_LTS/drivers/pci/controller/pcie-xilinx-dma-pl.cQuoted 6 lines
In earlier versions, the driver was:
https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v6.1_LTS_2023.1_update/drivers/pci/controller/pcie-xdma-pl.c
This older driver had no issues with interrupts.The new driver introduced in v6.7 and later is a rewrite of the old one, now with QDMA support, which has issues with INTx interrupts.
Quoted 7 lines
OK, this sounds like out-of-tree history that is not relevant in the mainline kernel, so Mani did the right thing in omitting it.
I think the best thing to do is to squash Stefan's patch into this one so we end up with a single patch that makes INTx work correctly.
Ravi and Stefan, does that seem OK to you?
Yes, please either apply both separately or squash them. Whatever you prefer.
Many thanks,
Stefan
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
+++
b/drivers/pci/controller/pcie-xilinx-dma-pl.cdrivers/pci/controller/pcie-xilinx-dma-pl.c +6
-0@@ -659,6 +659,12 @@ static int xilinx_pl_dma_pcie_setup_irq(struct pl_dma_pcie *port)return err; } +/* Enable interrupts */ +pcie_write (port,XILINX_PCIE_DMA_IMR_ALL_MASK , +XILINX_PCIE_DMA_REG_IMR ); +pcie_write (port,XILINX_PCIE_DMA_IDRN_MASK , +XILINX_PCIE_DMA_REG_IDRN_MASK ); +return 0 ; }
[email protected]
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 97 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 15 lines · Bjorn Helgaas
Quoted 14 lines · Ravi Kumar
Quoted 14 lines · Ravi Kumar
Quoted 13 lines
Quoted 13 lines · Bjorn Helgaas
Quoted 11 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 39 lines
Quoted 25 lines
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Quoted 7 lines
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...
How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 102 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 101 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 15 lines · Bjorn Helgaas
Quoted 14 lines · Ravi Kumar
Quoted 14 lines · Ravi Kumar
Quoted 13 lines
Quoted 13 lines · Bjorn Helgaas
Quoted 11 lines · Ravi Kumar Bandi
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv 52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie, azdrv[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 39 lines
Quoted 25 lines
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver")Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 7 lines
Quoted 5 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.
Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Thanks,
Stefan
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 127 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 8 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines · Ravi Kumar
Quoted 1 line
Quoted 1 line
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie,azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie,
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Fixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA RootPort driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 43 lines
Quoted 42 lines
Quoted 29 lines
Quoted 15 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...
Quoted 6 lines
Quoted 2 lines
How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a miss match in the DT property which doesn't require pci_irqd_intx_xlate.
interrupt-map = <0 0 0 1 &pcie_intc_0 0>,
<0 0 0 2 &pcie_intc_0 1>,
<0 0 0 3 &pcie_intc_0 2>,
<0 0 0 4 &pcie_intc_0 3>;
Quoted 3 lines
Thanks,
Stefan
[email protected]
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 137 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 127 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 8 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines · Ravi Kumar
Quoted 1 line
Quoted 1 line
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and later versions.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie,azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-pcie,
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Fixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA RootPort driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 43 lines
Quoted 42 lines
Quoted 29 lines
Quoted 15 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...Quoted 6 lines
Quoted 2 lines
How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Quoted 7 lines
Hardware doesn't enable this bits by default, INTx didn't work since there is a miss match in the DT property which doesn't require
pci_irqd_intx_xlate.interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;
Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
- Mani
[1] https://lore.kernel.org/linux-pci/[email protected]/
Signature · 1 line
மணிவண்ணன் சதாசிவம்
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 168 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:02 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 26 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 22 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 7 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 6 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 2 lines · Bjorn Helgaas
Quoted 1 line · Ravi Kumar
Quoted 1 line
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie,
Quoted 2 lines
Quoted 2 lines
azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie,
Quoted 65 lines
Quoted 65 lines
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Fixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMARoot Port driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 20 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 1 line
Quoted 1 line
- Why did Stefan's patch work for him even without your patch.
How
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a
miss match in the DT property which doesn't require
pci_irqd_intx_xlate.Quoted 6 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;
Quoted 7 lines
Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
- Mani
[1] https://lore.kernel.org/linux-pci/20251021154322.973640-1-
[email protected]/
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the difference in design.
Quoted 3 lines
--
மணிவண்ணன் சதாசிவம்
[email protected]
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 175 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 171 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:02 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 26 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 22 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 7 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 6 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 2 lines · Bjorn Helgaas
Quoted 1 line · Ravi Kumar
Quoted 1 line
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie,
Quoted 2 lines
Quoted 2 lines
azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie,
Quoted 65 lines
Quoted 65 lines
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Fixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMARoot Port driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 20 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 1 line
Quoted 1 line
- Why did Stefan's patch work for him even without your patch.
How
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a
miss match in the DT property which doesn't require
pci_irqd_intx_xlate.Quoted 6 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
Quoted 7 lines
Quoted 4 lines
- Mani
[1] https://lore.kernel.org/linux-pci/20251021154322.973640-1-
[email protected]/We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 209 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:28 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>; Musham, Sai Krishna <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 68 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 64 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:02 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 27 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 23 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 8 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The pcie-xilinx-dma-pl driver does not enable INTx
interrupts after initializing the port, preventing INTx
interrupts from PCIe endpoints from flowing through the
Xilinx XDMA root port bridge. This issue affects kernel
6.6.0 andlater versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe
endpoints to flow through the root port. Tested the fix
on a board with two endpoints generating INTx interrupts.
Interrupts are properly detected and serviced. The
/proc/interrupts output
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level400000000.axi-
Quoted 3 lines
Quoted 3 lines
pcie,
Quoted 2 lines
Quoted 2 lines
azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level
500000000.axi-
Quoted 61 lines
Quoted 61 lines
pcie,
Quoted 60 lines
Quoted 60 lines
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Fixes: 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA
Root Port driver")
Cc: [email protected]
Signed-off-by: Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
I know we *can* squash them.
I want to know why things worked for you and Stefan when they
*weren't* squashed:- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow
through.
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 1 line
Quoted 1 line
- Why did Stefan's patch work for him even without your patch.
How
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the
hardware?
Quoted 22 lines
Quoted 21 lines
Quoted 6 lines
Quoted 4 lines
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a
miss match in the DT property which doesn't require
pci_irqd_intx_xlate.Quoted 6 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
- Mani
[1] https://lore.kernel.org/linux-pci/20251021154322.973640-1-
[email protected]/
Quoted 7 lines
Quoted 2 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's patches. Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
interrupt-map = <0 0 0 1 &pcie_intc_0 0>,
<0 0 0 2 &pcie_intc_0 1>,
<0 0 0 3 &pcie_intc_0 2>,
<0 0 0 4 &pcie_intc_0 3>;
38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1
Thanks,
Sai Krishna
[email protected]
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 215 lines · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 211 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:28 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>; Musham, Sai Krishna <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 68 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 64 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:02 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 27 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 23 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 8 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar
BandiQuoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The pcie-xilinx-dma-pl driver does not enable INTx
interrupts after initializing the port, preventing INTx
interrupts from PCIe endpoints from flowing through the
Xilinx XDMA root port bridge. This issue affects kernel
6.6.0 andlater versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe
endpoints to flow through the root port. Tested the fix
on a board with two endpoints generating INTx interrupts.
Interrupts are properly detected and serviced. The
/proc/interrupts output
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level400000000.axi-
Quoted 3 lines
Quoted 3 lines
pcie,
Quoted 2 lines
Quoted 2 lines
azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level
500000000.axi-
Quoted 61 lines
Quoted 61 lines
pcie,
Quoted 60 lines
Quoted 60 lines
azdrv
Quoted 34 lines
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Fixes: 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA
Root Port driver")
Cc: [email protected]
Signed-off-by: Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how
to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 5 lines
Quoted 3 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
I know we *can* squash them.
I want to know why things worked for you and Stefan when they
*weren't* squashed:- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow
through.
Quoted 20 lines
Quoted 20 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 1 line
Quoted 1 line
- Why did Stefan's patch work for him even without your patch.
How
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the
hardware?
Quoted 24 lines
Quoted 14 lines
Quoted 6 lines
Quoted 4 lines
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a
miss match in the DT property which doesn't require
pci_irqd_intx_xlate.Quoted 6 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;Quoted 7 lines
Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
- Mani
[1] https://lore.kernel.org/linux-pci/20251021154322.973640-1-
[email protected]/We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
Quoted 7 lines
Quoted 5 lines
difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's patches.
Please test with v6.18-rc1 kernel.
Any clue on what is going wrong with Ravi's setup?
https://lore.kernel.org/linux-pci/[email protected]/
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 249 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 6:40 PM
To: Musham, Sai Krishna <[email protected]>
Cc: Havalige, Thippeswamy <[email protected]>; Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 70 lines · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 66 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:28 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>; Musham, Sai Krishna <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 46 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 42 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 4:02 PM
To: Havalige, Thippeswamy <[email protected]>
Cc: Stefan Roese <[email protected]>; Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 27 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Stefan,
Quoted 23 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:29 PM
To: [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 6 lines · On 10/22/25 11:55, [email protected] wrote:
Quoted 5 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 1 line · Bjorn Helgaas
On Tue, Oct 21, 2025 at 08:55:41PM +0000, Bandi, Ravi Kumar
Quoted 32 lines · wrote:
Quoted 32 lines
Quoted 24 lines
Quoted 24 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar
BandiQuoted 7 lines
Quoted 7 lines
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
The pcie-xilinx-dma-pl driver does not enable INTx
interrupts after initializing the port, preventing
INTx interrupts from PCIe endpoints from flowing
through the Xilinx XDMA root port bridge. This
issue affects kernel
6.6.0 andlater versions.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
This patch allows INTx interrupts generated by PCIe
endpoints to flow through the root port. Tested the
fix on a board with two endpoints generating INTx interrupts.
Interrupts are properly detected and serviced. The
/proc/interrupts output
shows:Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
[...]
32: 320 0 pl_dma:RC-Event 16 Level400000000.axi-
Quoted 3 lines
Quoted 3 lines
pcie,
Quoted 2 lines
Quoted 2 lines
azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level
500000000.axi-
Quoted 1 line
Quoted 1 line
pcie,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
azdrv
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 11 lines
Quoted 11 lines
39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1
The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Changes since v1::
- Fixed commit message per reviewer's commentsQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Fixes: 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx
XDMA Root Port driver")
Cc: [email protected]
Signed-off-by: Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know
how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roese@m
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
ailbox.org
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they
*weren't* squashed:- Why did INTx work for you even without Stefan's patch. Did
you
Quoted 15 lines
Quoted 15 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow
through.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
- Why did Stefan's patch work for him even without your patch.
How
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
could Stefan's INTx work without the CSR writes to enable interrupts?
I'm not entirely sure if there are any other
dependencies in the FPGA bitstream. I'll investigate further and getback to you.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.
Quoted 36 lines
Quoted 36 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the
hardware?
Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
Quoted 4 lines
Yes, this is my best guess right now. I could double-check here, but IMHO it makes sense to enable it "manually" as done with Ravi's patch to not rely on this default setup at all.
Hardware doesn't enable this bits by default, INTx didn't work since there is a
miss match in the DT property which doesn't require
pci_irqd_intx_xlate.Quoted 6 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;Ok. This makes me believe that we do not need Stefan's patch [1] and need just this patch from Ravi.
Quoted 8 lines
Quoted 4 lines
- Mani
[1] https://lore.kernel.org/linux-pci/20251021154322.973640-1-
[email protected]/We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
difference in design.
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's
patches.
Please test with v6.18-rc1 kernel.
We have tested with the v6.18-rc1 kernel without applying either patch. With the interrupt-map property change, legacy interrupts are functioning correctly on this kernel.
Quoted 4 lines
Any clue on what is going wrong with Ravi's setup?
https://lore.kernel.org/linux-pci/467D7D30-DC05-4612-87BA-
[email protected]/
We are getting the required details on this. Thanks.
Quoted 4 lines
- Mani
--
மணிவண்ணன் சதாசிவம்
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Musham, Sai KrishnaQuoted 1 line · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
<snip>
Quoted 12 lines
Quoted 7 lines
Quoted 2 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's patches. Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
Quoted 7 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1
Okay. Same here. I don't need Ravi's patch for the INTx bit enabling.
I understand that you want us to change the interrupt map in the auto- generated device-tree from Vivado. Which is IMHO a bit "suboptimal".
I would prefer to have a solution which works out-of-the-box, w/o the need to manually change DT properties. Is it planned to change / fix this interrupt map in pl.dtsi generated with a newer version of Vivado?
Thanks,
Stefan
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Quoted 45 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 7:08 PM
To: Musham, Sai Krishna <[email protected]>; [email protected]; Havalige, Thippeswamy <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 1 line · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
<snip>
Quoted 10 lines
Quoted 8 lines
Quoted 3 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's
patches.
Quoted 10 lines
Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1
Quoted 9 lines
Okay. Same here. I don't need Ravi's patch for the INTx bit enabling.
I understand that you want us to change the interrupt map in the auto- generated device-tree from Vivado. Which is IMHO a bit "suboptimal".
I would prefer to have a solution which works out-of-the-box, w/o the need to manually change DT properties. Is it planned to change / fix this interrupt map in
pl.dtsigenerated with a newer version of Vivado?
Yes Stefan, this will be fixed in the newer versions and the auto-generated device tree will include the correct interrupt-map property entries.
Quoted 2 lines
Thanks,
Stefan
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 52 lines · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
Quoted 50 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 7:08 PM
To: Musham, Sai Krishna <[email protected]>; [email protected]; Havalige, Thippeswamy <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsCaution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 1 line · Sai Krishna
[AMD Official Use Only - AMD Internal Distribution Only]
<snip>
Quoted 10 lines
Quoted 8 lines
Quoted 3 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the
difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's
patches.
Quoted 10 lines
Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1Okay. Same here. I don't need Ravi's patch for the INTx bit enabling.
I understand that you want us to change the interrupt map in the auto- generated device-tree from Vivado. Which is IMHO a bit "suboptimal".
Quoted 7 lines
Quoted 4 lines
I would prefer to have a solution which works out-of-the-box, w/o the need to manually change DT properties. Is it planned to change / fix this interrupt map in
pl.dtsigenerated with a newer version of Vivado?Yes Stefan, this will be fixed in the newer versions and the auto-generated device tree will include the correct interrupt-map property entries.
Understood. And thanks the update on this.
@Bjorn & Mani, this patch can be dropped then.
Thanks,
Stefan
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 40 lines · Stefan Roese
Quoted 3 lines · Sai Krishna
Quoted 3 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
On 10/22/25 14:48, Musham, Sai Krishna wrote:...
Quoted 34 lines
Quoted 33 lines
Quoted 14 lines
Quoted 8 lines
Quoted 4 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's patches. Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
Quoted 7 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1Okay. Same here. I don't need Ravi's patch for the INTx bit enabling.
I understand that you want us to change the interrupt map in the auto- generated device-tree from Vivado. Which is IMHO a bit "suboptimal".
I would prefer to have a solution which works out-of-the-box, w/o the need to manually change DT properties. Is it planned to change / fix this interrupt map in
pl.dtsigenerated with a newer version of Vivado?
Quoted 7 lines
Quoted 3 lines
Yes Stefan, this will be fixed in the newer versions and the auto-generated device tree will include the correct interrupt-map property entries.
Understood. And thanks the update on this.
@Bjorn & Mani, this patch can be dropped then.
Just to confirm, we can drop both of these patches:
https://patch.msgid.link/[email protected]
https://patch.msgid.link/[email protected]
AND there are no DTs in the field that will need to be updated for things to work?
It's OK if you need to update internal DTs that haven't been shipped to users, but we do not want to force users to update DTs that have previously been working.
Bjorn
[email protected]
maintainerRe: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 49 lines · Bjorn Helgaas
Quoted 40 lines · Stefan Roese
Quoted 3 lines · Sai Krishna
Quoted 3 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
On 10/22/25 14:48, Musham, Sai Krishna wrote:...
Quoted 34 lines
Quoted 33 lines
Quoted 14 lines
Quoted 8 lines
Quoted 4 lines
We even don’t need ravi patch, as we have tested this at our end it works fine by just updating interrupt-map Property. We need to now understand the difference in design.
Ok, please let us know with your findings. In the meantime, I'll keep Ravi's patch in tree, as it seems to be required on his setup.
We tested on Linux version 6.12.40 without applying either Stefan's or Ravi's patches. Instead, we applied only the following interrupt-map property change (entries 0,1,2,3) and verified that legacy interrupts are working correctly.
Quoted 7 lines
interrupt-map = <0 0 0 1
&pcie_intc_00>,
<0 0 0 2&pcie_intc_01>,
<0 0 0 3&pcie_intc_02>,
<0 0 0 4&pcie_intc_03>;38: 1143 0 pl_dma:RC-Event 16 Level 80000000.axi-pcie 39: 1143 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1Okay. Same here. I don't need Ravi's patch for the INTx bit enabling.
I understand that you want us to change the interrupt map in the auto- generated device-tree from Vivado. Which is IMHO a bit "suboptimal".
I would prefer to have a solution which works out-of-the-box, w/o the need to manually change DT properties. Is it planned to change / fix this interrupt map in
pl.dtsigenerated with a newer version of Vivado?Quoted 7 lines
Quoted 3 lines
Yes Stefan, this will be fixed in the newer versions and the auto-generated device tree will include the correct interrupt-map property entries.
Understood. And thanks the update on this.
@Bjorn & Mani, this patch can be dropped then.
Quoted 8 lines
Just to confirm, we can drop both of these patches:
https://patch.msgid.link/[email protected]
https://patch.msgid.link/[email protected]AND there are no DTs in the field that will need to be updated for things to work?
There are no upstream DTs making use of this driver. Also, the upstream binding example seems to be correct:
interrupt-map = <0 0 0 1 &pcie_intc_0 0>,
<0 0 0 2 &pcie_intc_0 1>,
<0 0 0 3 &pcie_intc_0 2>,
<0 0 0 4 &pcie_intc_0 3>;Moreover, if any DTs were using different 'interrupt-map' property, then INTx wouldn't be working for them. So most likely they were all using MSIs as we haven't received any reports up until now.
Hence, IMO we should be good to ignore the patch from Stefan. Though, I still have a concern on whether the hardware is enabling INTx by default or not [1]. Until that is concluded, we should keep Ravi's patch.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to [email protected][AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 123 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 3:25 PM
To: Stefan Roese <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines · Ravi Kumar
Quoted 1 line
Quoted 1 line
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie, azdrv
Quoted 81 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 41 lines
Quoted 27 lines
Quoted 18 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMARoot Port driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 8 lines
Quoted 6 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roe
[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.
Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Can you please cross-check the interrupt-map property in the device tree? Currently, the driver isn’t translating (pci_irqd_intx_xlate) the INTx number.
Here’s required DT property:
interrupt-map = <0 0 0 1 &pcie_intc_0 0>,
<0 0 0 2 &pcie_intc_0 1>,
<0 0 0 3 &pcie_intc_0 2>,
<0 0 0 4 &pcie_intc_0 3>;Quoted 5 lines
- Mani
--
மணிவண்ணன் சதாசிவம்
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 30 lines
-----Original Message-----
From: Havalige, Thippeswamy
Sent: Wednesday, October 22, 2025 3:34 PM
To: '[email protected]' <[email protected]>; Stefan Roese <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>
Subject: RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsHi Mani,
Quoted 14 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 3:25 PM
To: Stefan Roese <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
Quoted 113 lines
Quoted 7 lines · Stefan Roese
Quoted 6 lines
Hi Bjorn,
Hi Ravi,Quoted 2 lines · Bjorn Helgaas
Quoted 1 line · Ravi Kumar
Quoted 1 line
On Tue, Oct 21, 2025 at 05:46:17PM +0000, Bandi, Ravi Kumar
Quoted 105 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie, azdrv
Quoted 81 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 42 lines
Quoted 28 lines
Quoted 19 lines
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMARoot Port driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.r
oe
[email protected]Quoted 3 lines
Quoted 1 line
Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.
Xlate should not be added instead of it dt needs to be updated as below.
Quoted 22 lines
Quoted 7 lines
Quoted 4 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Can you please cross-check the interrupt-map property in the device tree? Currently, the driver isn’t translating (
pci_irqd_intx_xlate) the INTx number.Here’s required DT property:
interrupt-map = <0 0 0 1
&pcie_intc_00>,<0 0 0 2 &pcie_intc_0 1>, <0 0 0 3 &pcie_intc_0 2>, <0 0 0 4 &pcie_intc_0 3>;Quoted 5 lines
- Mani
--
மணிவண்ணன் சதாசிவம்
Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
In reply to Havalige, ThippeswamyQuoted 134 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 123 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 3:25 PM
To: Stefan Roese <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 7 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 3 lines · Bjorn Helgaas
Quoted 2 lines · Ravi Kumar
Quoted 2 lines · Ravi Kumar
Quoted 1 line
Quoted 1 line
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie, azdrv
Quoted 81 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 41 lines
Quoted 27 lines
Quoted 18 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMARoot Port driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 8 lines
Quoted 6 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roe
[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Quoted 8 lines
Can you please cross-check the interrupt-map property in the device tree? Currently, the driver isn’t translating (
pci_irqd_intx_xlate) the INTx number.Here’s required DT property:
interrupt-map = <0 0 0 1
&pcie_intc_00>,<0 0 0 2 &pcie_intc_0 1>, <0 0 0 3 &pcie_intc_0 2>, <0 0 0 4 &pcie_intc_0 3>;
Here the auto-generated DT property (Vivado 2025.1) for our design:
interrupt-map = <0 0 0 1 &psv_pcie_intc_0 1>,
<0 0 0 2 &psv_pcie_intc_0 2>,
<0 0 0 3 &psv_pcie_intc_0 3>,
<0 0 0 4 &psv_pcie_intc_0 4>;So we should manually "fix" the auto-generated DT instead? I would rather like to skip such a step, as this is error prone with frequent updates from the FPGA bistream design.
Thanks,
Stefan
RE: [PATCH v2] PCI: xilinx-xdma: Enable INTx interrupts
[AMD Official Use Only - AMD Internal Distribution Only]
Quoted 163 lines
-----Original Message-----
From: Stefan Roese <[email protected]>
Sent: Wednesday, October 22, 2025 3:41 PM
To: Havalige, Thippeswamy <[email protected]>; [email protected]
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; [email protected]; linux- [email protected]; [email protected]; Sean Anderson <[email protected]>; Yeleswarapu, Nagaradhesh <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 129 lines · Thippeswamy
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Mani,
Quoted 125 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Wednesday, October 22, 2025 3:25 PM
To: Stefan Roese <[email protected]>
Cc: Bjorn Helgaas <[email protected]>; Bandi, Ravi Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; linux-arm- [email protected]; [email protected]; [email protected]; Sean Anderson <[email protected]>
Subject: Re: [PATCH v2] PCI: xilinx-xdma: Enable INTx interruptsQuoted 8 lines · Stefan Roese
Hi Bjorn,
Hi Ravi,Quoted 4 lines · Bjorn Helgaas
Quoted 3 lines · Ravi Kumar
Quoted 3 lines · Ravi Kumar
Quoted 2 lines
Quoted 2 lines
On Oct 21, 2025, at 10:23 AM, Bjorn Helgaas
<[email protected]>Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Sat, Sep 20, 2025 at 10:52:32PM +0000, Ravi Kumar Bandi
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
The pcie-xilinx-dma-pl driver does not enable INTx interrupts after initializing the port, preventing INTx interrupts from PCIe endpoints from flowing through the Xilinx XDMA root port bridge. This issue affects kernel 6.6.0 and
later versions.
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
This patch allows INTx interrupts generated by PCIe endpoints to flow through the root port. Tested the fix on a board with two endpoints generating INTx interrupts. Interrupts are properly detected and serviced. The
/proc/interruptsoutput
shows:[...]
32: 320 0 pl_dma:RC-Event 16 Level 400000000.axi-pcie, azdrv
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
52: 470 0 pl_dma:RC-Event 16 Level 500000000.axi-
pcie, azdrv
Quoted 81 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
[...]
First a comment on this IRQ logging:
These lines do NOT refer to the INTx IRQ(s) but the controller internal "events" (errors etc). Please see this log for INTx on my Versal platform with
pci_irqd_intx_xlateadded:24: 0 0 pl_dma:RC-Event 0 Level LINK_DOWN 25: 0 0 pl_dma:RC-Event 3 Level HOT_RESET 26: 0 0 pl_dma:RC-Event 8 Level CFG_TIMEOUT 27: 0 0 pl_dma:RC-Event 9 Level CORRECTABLE 28: 0 0 pl_dma:RC-Event 10 Level NONFATAL 29: 0 0 pl_dma:RC-Event 11 Level FATAL 30: 0 0 pl_dma:RC-Event 20 Level SLV_UNSUPP 31: 0 0 pl_dma:RC-Event 21 Level SLV_UNEXP 32: 0 0 pl_dma:RC-Event 22 Level SLV_COMPL 33: 0 0 pl_dma:RC-Event 23 Level SLV_ERRP 34: 0 0 pl_dma:RC-Event 24 Level SLV_CMPABT 35: 0 0 pl_dma:RC-Event 25 Level SLV_ILLBUR 36: 0 0 pl_dma:RC-Event 26 Level MST_DECERR 37: 0 0 pl_dma:RC-Event 27 Level MST_SLVERR 38: 94 0 pl_dma:RC-Event 16 Level 84000000.axi-pcie 39: 94 0 pl_dma:INTx 0 Level nvme0q0, nvme0q1The last line shows the INTx IRQs here ('pl_dma:INTx' vs 'pl_dma:RC- Event').
More below...
Quoted 41 lines
Quoted 27 lines
Quoted 18 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Changes since v1::
- Fixed commit message per reviewer's commentsFixes 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA RootPort driver")
Signed-off-by Ravi Kumar Bandi <[email protected]>Quoted 8 lines
Quoted 6 lines
Hi Ravi, obviously you tested this, but I don't know how to reconcile this with Stefan's INTx fix at
https://lore.kernel.org/r/20251021154322.973640-1-stefan.roe
[email protected]Does Stefan's fix need to be squashed into this patch?
Sure, we can squash Stefan’s fix into this.
Quoted 8 lines
I know we *can* squash them.
I want to know why things worked for you and Stefan when they *weren't* squashed:
- Why did INTx work for you even without Stefan's patch. Did you get INTx interrupts but not the right ones, e.g., did the device signal INTA but it was received as INTB?
Quoted 5 lines
I saw that interrupts were being generated by the endpoint device, but I didn’t specifically check if they were correctly translated in the controller. I noticed that the new driver wasn't explicitly enabling the interrupts, so my first approach was to enable them, which helped the interrupts flow through.
OK, I'll assume the interrupts happened but the driver might not have been able to handle them correctly, e.g., it was prepared for INTA but got INTB or similar.
Quoted 4 lines
Quoted 3 lines
- Why did Stefan's patch work for him even without your patch. How could Stefan's INTx work without the CSR writes to enable interrupts?
Quoted 5 lines
Quoted 2 lines
I'm not entirely sure if there are any other dependencies in the FPGA bitstream. I'll investigate further and get back to you.
Stefan clarified in a private message that he had applied your patch first, so this mystery is solved.
Yes. I applied Ravi's patch first and still got no INTx delivered to the nvme driver. That's what me triggered to dig deeper here and resulted in this v2 patch with
pci_irqd_intx_xlateadded.Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
BTW:
I re-tested just now w/o Ravi's patch and the INTx worked. Still I think Ravi's patch is valid and should be applied...How come INTx is working without the patch from Ravi which enabled INTx routing in the controller? Was it enabled by default in the hardware?
Can you please cross-check the interrupt-map property in the device tree?
Currently, the driver isn’t translating (
pci_irqd_intx_xlate) the INTx number.Quoted 7 lines
Here’s required DT property:
interrupt-map = <0 0 0 1
&pcie_intc_00>,<0 0 0 2 &pcie_intc_0 1>, <0 0 0 3 &pcie_intc_0 2>, <0 0 0 4 &pcie_intc_0 3>;Here the auto-generated DT property (Vivado 2025.1) for our design:
Quoted 8 lines
interrupt-map = <0 0 0 1 &psv_pcie_intc_0 1>, <0 0 0 2 &psv_pcie_intc_0 2>, <0 0 0 3 &psv_pcie_intc_0 3>, <0 0 0 4 &psv_pcie_intc_0 4>;So we should manually "fix" the auto-generated DT instead? I would rather like to skip such a step, as this is error prone with frequent updates from the FPGA bistream design.
Yes, you need to manually fix this auto-generated DT for now. Will take this discussion offline.
Quoted 3 lines
Thanks,
Stefan