Skip to contentSkip to conversation

Fix up GIC_ITS ranges in QCOM DTs

PATCH Applied Konrad Dybcio 5 participants 13 messages Mar 17 – Mar 19

Subsystems (3)
lore
Share & tools
lore

Konrad Dybcio

author maintainer
#0 lore raw

cover Fix up GIC_ITS ranges in QCOM DTs

Platforms with GIC-700 have additional registers (such as GITS_SGIR). Checked against the docs and compile-tested only.

---
Konrad Dybcio (6):
arm64: dts: qcom: kaanapali: Fix GIC_ITS range length
arm64: dts: qcom: milos: Fix GIC_ITS range length
arm64: dts: qcom: sm8450: Fix GIC_ITS range length
arm64: dts: qcom: sm8550: Fix GIC_ITS range length
arm64: dts: qcom: sm8650: Fix GIC_ITS range length
arm64: dts: qcom: sm8750: Fix GIC_ITS range length

 arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/milos.dtsi     | 2 +-
 arch/arm64/boot/dts/qcom/sm8450.dtsi    | 2 +-
 arch/arm64/boot/dts/qcom/sm8550.dtsi    | 2 +-
 arch/arm64/boot/dts/qcom/sm8650.dtsi    | 2 +-
 arch/arm64/boot/dts/qcom/sm8750.dtsi    | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

---
base-commit: 95c541ddfb0815a0ea8477af778bb13bb075079a
change-id: 20260317-topic-its_range_fixup-87af5cd6d8dc

Best regards,

Signature · 1 line
Konrad Dybcio <[email protected]>
author maintainer
#1 lore raw

PATCH 1/6 arm64: dts: qcom: kaanapali: Fix GIC_ITS range length

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes 2eeb5767d53f ("arm64: dts: qcom: Introduce Kaanapali SoC")
---
 arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +1 -1
index 9ef57ad0ca71..9be86479ceef 100644
@@ -1239,7 +1239,7 @@ intc: interrupt-controller@17000000 {
 
 			gic_its: msi-controller@17040000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x17040000 0x0 0x20000>;
+				reg = <0x0 0x17040000 0x0 0x40000>;
 
 				msi-controller;
 				#msi-cells = <1>;
Signature · 1 line
2.53.0
author maintainer
#2 lore raw

PATCH 2/6 arm64: dts: qcom: milos: Fix GIC_ITS range length

In reply to Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
---
 arch/arm64/boot/dts/qcom/milos.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/milos.dtsi +1 -1
index e1a51d43943f..084be5316e0d 100644
@@ -1911,7 +1911,7 @@ ppi_cluster1: interrupt-partition-1 {
 
 			gic_its: msi-controller@17140000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x17140000 0x0 0x20000>;
+				reg = <0x0 0x17140000 0x0 0x40000>;
 
 				msi-controller;
 				#msi-cells = <1>;
Signature · 1 line
2.53.0
Reviewed-by on v1 2/6
#3 lore raw

Re: [PATCH 2/6] arm64: dts: qcom: milos: Fix GIC_ITS range length

Quoted 15 lines · Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
---
 arch/arm64/boot/dts/qcom/milos.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/milos.dtsi +0 -0
index e1a51d43943f..084be5316e0d 100644

arch/arm64/boot/dts/qcom/milos.dtsi ppi_cluster1: interrupt-partition-1 { · line 1914

Quoted 5 lines
arch/arm64/boot/dts/qcom/milos.dtsi +1 -1
@@ -1911,7 +1911,7 @@ ppi_cluster1: interrupt-partition-1 {
 
 			gic_its: msi-controller@17140000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x17140000 0x0 0x20000>;
+				reg = <0x0 0x17140000 0x0 0x40000>;

The .FLAT doesn't make it super obvious what the size should be, but yes, GITS0_SGIR would be outside the range with 0x20000, and 0x40000 looks sane given at 0x1718_0000 the next register after GITS0_SGIR is located.

Quoted 3 lines
arch/arm64/boot/dts/qcom/milos.dtsi +0 -0
 				msi-controller;
 				#msi-cells = <1>;
author maintainer
#4 lore raw

PATCH 3/6 arm64: dts: qcom: sm8450: Fix GIC_ITS range length

In reply to Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes fc8b0b9b630d ("arm64: dts: qcom: sm8450 add ITS device tree node")
---
 arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +1 -1
index fd2d5648b92a..1f31d3eea4f0 100644
@@ -5104,7 +5104,7 @@ intc: interrupt-controller@17100000 {
 
 			gic_its: msi-controller@17140000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x17140000 0x0 0x20000>;
+				reg = <0x0 0x17140000 0x0 0x40000>;
 				msi-controller;
 				#msi-cells = <1>;
 			};
Signature · 1 line
2.53.0
Reviewed-by on v1 3/6
#5 lore raw

Re: [PATCH 3/6] arm64: dts: qcom: sm8450: Fix GIC_ITS range length

Quoted 16 lines · Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes fc8b0b9b630d ("arm64: dts: qcom: sm8450 add ITS device tree node")
---
  arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +0 -0
index fd2d5648b92a..1f31d3eea4f0 100644

arch/arm64/boot/dts/qcom/sm8450.dtsi intc: interrupt-controller@17100000 { · line 5110

Quoted 8 lines
arch/arm64/boot/dts/qcom/sm8450.dtsi +1 -1
@@ -5104,7 +5104,7 @@ intc: interrupt-controller@17100000 {
 
  			gic_its: msi-controller@17140000 {
  				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x17140000 0x0 0x20000>;
+				reg = <0x0 0x17140000 0x0 0x40000>;
  				msi-controller;
  				#msi-cells = <1>;
  			};

Thanks,
Neil

author maintainer
#6 lore raw

PATCH 4/6 arm64: dts: qcom: sm8550: Fix GIC_ITS range length

In reply to Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi")
---
 arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8550.dtsi +1 -1
index e3f93f4f412d..0fc86967bbeb 100644
@@ -5274,7 +5274,7 @@ ppi_cluster3: interrupt-partition-3 {
 
 			gic_its: msi-controller@17140000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0 0x17140000 0 0x20000>;
+				reg = <0 0x17140000 0 0x40000>;
 				msi-controller;
 				#msi-cells = <1>;
 			};
Signature · 1 line
2.53.0
Reviewed-by on v1 4/6
#7 lore raw

Re: [PATCH 4/6] arm64: dts: qcom: sm8550: Fix GIC_ITS range length

Quoted 16 lines · Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi")
---
  arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8550.dtsi +0 -0
index e3f93f4f412d..0fc86967bbeb 100644

arch/arm64/boot/dts/qcom/sm8550.dtsi ppi_cluster3: interrupt-partition-3 { · line 5280

Quoted 8 lines
arch/arm64/boot/dts/qcom/sm8550.dtsi +1 -1
@@ -5274,7 +5274,7 @@ ppi_cluster3: interrupt-partition-3 {
 
  			gic_its: msi-controller@17140000 {
  				compatible = "arm,gic-v3-its";
-				reg = <0 0x17140000 0 0x20000>;
+				reg = <0 0x17140000 0 0x40000>;
  				msi-controller;
  				#msi-cells = <1>;
  			};

Thanks,
Neil

author maintainer
#8 lore raw

PATCH 5/6 arm64: dts: qcom: sm8650: Fix GIC_ITS range length

In reply to Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes d2350377997f ("arm64: dts: qcom: add initial SM8650 dtsi")
---
 arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8650.dtsi +1 -1
index 357e43b90740..e411f5b770d1 100644
@@ -7219,7 +7219,7 @@ ppi_cluster2: interrupt-partition-2 {
 
 			gic_its: msi-controller@17140000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0 0x17140000 0 0x20000>;
+				reg = <0 0x17140000 0 0x40000>;
 
 				msi-controller;
 				#msi-cells = <1>;
Signature · 1 line
2.53.0
Reviewed-by on v1 5/6
#9 lore raw

Re: [PATCH 5/6] arm64: dts: qcom: sm8650: Fix GIC_ITS range length

Quoted 16 lines · Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes d2350377997f ("arm64: dts: qcom: add initial SM8650 dtsi")
---
  arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8650.dtsi +0 -0
index 357e43b90740..e411f5b770d1 100644

arch/arm64/boot/dts/qcom/sm8650.dtsi ppi_cluster2: interrupt-partition-2 { · line 7225

Quoted 8 lines
arch/arm64/boot/dts/qcom/sm8650.dtsi +1 -1
@@ -7219,7 +7219,7 @@ ppi_cluster2: interrupt-partition-2 {
 
  			gic_its: msi-controller@17140000 {
  				compatible = "arm,gic-v3-its";
-				reg = <0 0x17140000 0 0x20000>;
+				reg = <0 0x17140000 0 0x40000>;
 
  				msi-controller;
  				#msi-cells = <1>;

Good finding, indeed the ITS code would remap phys_base + SZ_128K for sgir already which is out of the original range.

Thanks,
Neil

author maintainer
#10 lore raw

PATCH 6/6 arm64: dts: qcom: sm8750: Fix GIC_ITS range length

In reply to Konrad Dybcio

From: Konrad Dybcio <[email protected]>

Currently, the GITS_SGIR register is cut off. Fix it up.

Fixes 068c3d3c83be ("arm64: dts: qcom: Add base SM8750 dtsi")
---
 arch/arm64/boot/dts/qcom/sm8750.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8750.dtsi +1 -1
index f56b1f889b85..04d47f1347ee 100644
@@ -4658,7 +4658,7 @@ intc: interrupt-controller@16000000 {
 
 			gic_its: msi-controller@16040000 {
 				compatible = "arm,gic-v3-its";
-				reg = <0x0 0x16040000 0x0 0x20000>;
+				reg = <0x0 0x16040000 0x0 0x40000>;
 
 				msi-controller;
 				#msi-cells = <1>;
Signature · 1 line
2.53.0
maintainer Applied
#12 lore raw
In reply to Konrad Dybcio
Quoted 4 lines · Konrad Dybcio

Platforms with GIC-700 have additional registers (such as GITS_SGIR). Checked against the docs and compile-tested only.

Applied, thanks!

[1/6] arm64: dts: qcom: kaanapali: Fix GIC_ITS range length

      commit: b361ec125d847652a2b11b93f1ac083d76d1747e
[2/6] arm64: dts: qcom: milos: Fix GIC_ITS range length
      commit: fd05433d7c043252a4789979d8823351c4b6f56e
[3/6] arm64: dts: qcom: sm8450: Fix GIC_ITS range length
      commit: 5d3b10acd2eb541625bf04d72b0cf7738002e493
[4/6] arm64: dts: qcom: sm8550: Fix GIC_ITS range length
      commit: bd56d3eba56247d9a6d9677811184b82dba433f6
[5/6] arm64: dts: qcom: sm8650: Fix GIC_ITS range length
      commit: 68e63451115af1777aa20551f7dc7c307680e012
[6/6] arm64: dts: qcom: sm8750: Fix GIC_ITS range length
      commit: 3d3da7a4a8c9b5209163888a20746e0193303dfd

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>