Skip to contentSkip to conversation

arm64: dts: ls1028a: add interrupt to Root Complex Event Collector

PATCH Applied Michael Walle 3 participants 6 messages Feb 9, 2021 – Mar 5, 2021

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

PATCH 1/1 arm64: dts: ls1028a: add interrupt to Root Complex Event Collector

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +6 -0
index 262fbad8f0ec..c1f2f402ad53 100644
@@ -1114,6 +1114,12 @@
 					full-duplex;
 				};
 			};
+
+			rcec@1f,0 {
+				reg = <0x00f800 0 0 0 0>;
+				/* IEP INT_A */
+				interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
+			};
 		};
 
 		rcpm: power-controller@1e34040 {
Signature · 1 line
2.20.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Michael Walle

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

---

#2 lore raw
In reply to Michael Walle

Hi,

Am 2021-02-09 01:52, schrieb Michael Walle:

Quoted 9 lines

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

Any news on this?

-michael

#3 lore raw
In reply to Michael Walle
Quoted 18 lines · Michael Walle

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +0 -0
index 262fbad8f0ec..c1f2f402ad53 100644

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 1118

Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +2 -0
@@ -1114,6 +1114,12 @@
 					full-duplex;
 				};
 			};
+
+			rcec@1f,0 {

Just curious how unit-address comes to '1f,0'?

Shawn

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +4 -0
+				reg = <0x00f800 0 0 0 0>;
+				/* IEP INT_A */
+				interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
+			};
 		};
 
 		rcpm: power-controller@1e34040 {
Signature · 1 line
2.20.1
#4 lore raw

Am 2021-03-04 12:37, schrieb Shawn Guo:

Quoted 14 lines · Michael Walle
Quoted 13 lines

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
Quoted 12 lines

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 1118

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +2 -0
index 262fbad8f0ec..c1f2f402ad53 100644
@@ -1114,6 +1114,12 @@
 					full-duplex;
 				};
 			};
+
+			rcec@1f,0 {

Just curious how unit-address comes to '1f,0'?

You mean that it's pci dev 1f func 0?
0x00f800 >> 11 == 0x1f

See also:
https://elixir.bootlin.com/linux/v5.12-rc1/source/scripts/dtc/checks.c#L916

-michael

Quoted 13 lines

Shawn

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +4 -1
+				reg = <0x00f800 0 0 0 0>;
+				/* IEP INT_A */
+				interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
+			};
 		};
 
 		rcpm: power-controller@1e34040 {
--

2.20.1

Applied
#5 lore raw
In reply to Michael Walle
Quoted 9 lines · Michael Walle

The legacy interrupt INT_A is hardwired to the event collector. RCEC is bascially supported starting with v5.11. Having a correct interrupt, will make RCEC at least probe correctly.

There are still issues with how RCEC is implemented in the RCiEP on the LS1028A. RCEC will report an error, but it cannot find the correct subdevice.

Applied, thanks.