Skip to contentSkip to conversation

PCI: rockchip-ep: Mark RK3399 as intx_capable

PATCH Superseded Niklas Cassel 3 participants 5 messages Mar 26, 2025 – Apr 9, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: rockchip-ep: Mark RK3399 as intx_capable

RK3399 can raise INTx interrupts, as can be seen by rockchip_pcie_ep_send_intx_irq().

This is also in line with the register description of PCIE_CLIENT_LEGACY_INT_CTRL, section "17.6.3 PCIe Client Detail Register Description" of the RK3399 TRM.

Thus, mark RK3399 as intx_capable.

---
 drivers/pci/controller/pcie-rockchip-ep.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/pcie-rockchip-ep.c +1 -0
index 85ea36df2f59a..626f6b31b0f66 100644
@@ -694,6 +694,7 @@ static const struct pci_epc_features rockchip_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
 	.msix_capable = false,
+	.intx_capable = true,
 	.align = ROCKCHIP_PCIE_AT_SIZE_ALIGN,
 };
 
Signature · 1 line
2.49.0
#1 lore raw

Hello,

Quoted 8 lines

RK3399 can raise INTx interrupts, as can be seen by rockchip_pcie_ep_send_intx_irq().

This is also in line with the register description of PCIE_CLIENT_LEGACY_INT_CTRL, section "17.6.3 PCIe Client Detail Register Description" of the RK3399 TRM.

Thus, mark RK3399 as intx_capable.

Replaced the following commit:

e55c67837a8c ("PCI: dw-rockchip: Endpoint mode cannot raise INTx interrupts")

With this one directly on the "endpoint-test" branch. This is per the conversation at:

https://lore.kernel.org/linux-pci/[email protected]

Thank you!

Krzysztof

#2 lore raw

Hello,

Quoted 11 lines
Quoted 8 lines

RK3399 can raise INTx interrupts, as can be seen by rockchip_pcie_ep_send_intx_irq().

This is also in line with the register description of PCIE_CLIENT_LEGACY_INT_CTRL, section "17.6.3 PCIe Client Detail Register Description" of the RK3399 TRM.

Thus, mark RK3399 as intx_capable.

Replaced the following commit:

Quoted 8 lines

e55c67837a8c ("PCI: dw-rockchip: Endpoint mode cannot raise INTx interrupts")

With this one directly on the "endpoint-test" branch. This is per the conversation at:

https://lore.kernel.org/linux-pci/[email protected]

Thank you!

That said, Bjorn is preparing this Pull Request, this might not make the cut at this time.

Krzysztof

#3 lore raw

Hello Krzysztof,

Quoted 3 lines · Krzysztof Wilczyński

That said, Bjorn is preparing this Pull Request, this might not make the cut at this time.

-rc1 is out.

Any chance to get this queued up now? (So that it doesn't get lost.)

Kind regards,
Niklas

Reviewed-by on v1 1/1
#4 lore raw
In reply to Niklas Cassel
Quoted 10 lines · Niklas Cassel

RK3399 can raise INTx interrupts, as can be seen by rockchip_pcie_ep_send_intx_irq().

This is also in line with the register description of PCIE_CLIENT_LEGACY_INT_CTRL, section "17.6.3 PCIe Client Detail Register Description" of the RK3399 TRM.

Thus, mark RK3399 as intx_capable.

- Mani

Quoted 19 lines
---
 drivers/pci/controller/pcie-rockchip-ep.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/pcie-rockchip-ep.c +1 -0
index 85ea36df2f59a..626f6b31b0f66 100644
@@ -694,6 +694,7 @@ static const struct pci_epc_features rockchip_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
 	.msix_capable = false,
+	.intx_capable = true,
 	.align = ROCKCHIP_PCIE_AT_SIZE_ALIGN,
 };
 
Signature · 1 line
2.49.0
Signature · 1 line
மணிவண்ணன் சதாசிவம்