riscv: dts: starfive: correct number of external interrupts
Subsystems (3)
PATCH v2 1/1 riscv: dts: starfive: correct number of external interrupts
The PLIC integrated on the Vic_U7_Core integrated on the StarFive JH7100 SoC actually supports 133 external interrupts. 127 of these are exposed to the outside world; the remainder are used by other devices that are part of the core-complex such as the L2 cache controller. But all 133 interrupts are external interrupts as far as the PLIC is concerned. Fix the property so that the driver can manage these additional interrupts, which is important since the interrupts for the L2 cache controller are enabled by default.
---
ChangeLog:
v2: - Fix commit message
arch/riscv/boot/dts/starfive/jh7100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/starfive/jh7100.dtsi +1 -1
@@ -118,7 +118,7 @@ plic: interrupt-controller@c000000 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <1>; - riscv,ndev = <127>; + riscv,ndev = <133>; }; clkgen: clock-controller@11800000 {
Signature · 1 line
2.36.1
Quoted 8 lines · Mark Kettenis
The PLIC integrated on the
Vic_U7_Coreintegrated on the StarFive JH7100 SoC actually supports 133 external interrupts. 127 of these are exposed to the outside world; the remainder are used by other devices that are part of the core-complex such as the L2 cache controller. But all 133 interrupts are external interrupts as far as the PLIC is concerned. Fix the property so that the driver can manage these additional interrupts, which is important since the interrupts for the L2 cache controller are enabled by default.
The missing 4 for the l2cache controller certainly make sense & the documentation does mention there being interrupts as far up as 131 in Table 28.
Table 33 disagrees and has an interrupt 133.
God knows what those two are used for, but the documentation certainly makes it look like they do exist.
Quoted 26 lines
Fixes ec85362fb121 ("RISC-V: Add initial StarFive JH7100 device tree")Signed-off-by Mark Kettenis <[email protected]>---
ChangeLog:
v2: - Fix commit message
arch/riscv/boot/dts/starfive/jh7100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/boot/dts/starfive/jh7100.dtsi +1
-1@@ -118,7 +118,7 @@ plic: interrupt-controller@c000000 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <1>; - riscv,ndev = <127>; + riscv,ndev = <133>; }; clkgen: clock-controller@11800000 {
Palmer Dabbelt
maintainerQuoted 26 lines · On Thu, 07 Jul 2022 11:55:28 PDT (-0700), [email protected] wrote:
The PLIC integrated on the
Vic_U7_Coreintegrated on the StarFive JH7100 SoC actually supports 133 external interrupts. 127 of these are exposed to the outside world; the remainder are used by other devices that are part of the core-complex such as the L2 cache controller. But all 133 interrupts are external interrupts as far as the PLIC is concerned. Fix the property so that the driver can manage these additional interrupts, which is important since the interrupts for the L2 cache controller are enabled by default.Fixes ec85362fb121 ("RISC-V: Add initial StarFive JH7100 device tree")Signed-off-by Mark Kettenis <[email protected]>---
ChangeLog:
v2: - Fix commit message
arch/riscv/boot/dts/starfive/jh7100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/boot/dts/starfive/jh7100.dtsi +0
-0
arch/riscv/boot/dts/starfive/jh7100.dtsi plic: interrupt-controller@c000000 { · line 124
Quoted 8 lines
arch/riscv/boot/dts/starfive/jh7100.dtsi +1
-1@@ -118,7 +118,7 @@ plic: interrupt-controller@c000000 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <1>; - riscv,ndev = <127>; + riscv,ndev = <133>; }; clkgen: clock-controller@11800000 {
Thanks, this is on for-next.
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv