Skip to contentSkip to conversation

Enable smmu support on sdm845

PATCH Superseded Vivek Gautam 3 participants 9 messages Aug 14, 2018 – Aug 27, 2018

Subsystems (5)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Enable smmu support on sdm845

This series enables apps-smmu (arm,mmu-500) and gpu-smmu (qcom,smmu-v2) on sdm845. gpu-smmu needs one power domain from gpu clock controller whose driver was sent by Amit [1].

Changes since v1:
- Addressed Rob's review comments by adding a SoC specific compatible. Have added a new dt-bindings patch for this.
- Updated node name to 'iommu'.
- Addressed Doug's review comment about removing status property from smmu's nodes, as smmu is either present on the soc or not. Enabling it is not a board-level decision.

[1] https://lore.kernel.org/patchwork/patch/973839/

Vivek Gautam (3):
dt-bindings: arm-smmu: Add binding doc for Qcom smmu-500
dts: arm64/sdm845: Add node for arm,mmu-500
dts: arm64/sdm845: Add node for qcom,smmu-v2

 .../devicetree/bindings/iommu/arm,smmu.txt         |  5 ++
 arch/arm64/boot/dts/qcom/sdm845.dtsi               | 95 ++++++++++++++++++++++
 2 files changed, 100 insertions(+)
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#1 lore raw

PATCH v2 1/3 dt-bindings: arm-smmu: Add binding doc for Qcom smmu-500

Qcom's implementation of arm,mmu-500 works well with current arm-smmu driver implementation. Adding a soc specific compatible along with arm,mmu-500 makes the bindings future safe.

---
 Documentation/devicetree/bindings/iommu/arm,smmu.txt | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/iommu/arm,smmu.txt +5 -0
index 7c71a6ed465a..7d73b2a259fc 100644
@@ -18,6 +18,7 @@ conditions.
                         "arm,mmu-500"
                         "cavium,smmu-v2"
                         "qcom,<soc>-smmu-v2", "qcom,smmu-v2"
+                        "qcom,<soc>-smmu-500", "arm,mmu-500"
 
                   depending on the particular implementation and/or the
                   version of the architecture implemented.
@@ -30,6 +31,10 @@ conditions.
                   An example string would be -
                   "qcom,msm8996-smmu-v2", "qcom,smmu-v2".
 
+		  "qcom,<soc>-smmu-500" compatible string represents qcom's soc
+		  specific implementation of arm,mmu-500, and should be present
+		  along with "arm,mmu-500".
+
 - reg           : Base address and size of the SMMU.
 
 - #global-interrupts : The number of global interrupts exposed by the
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#2 lore raw

PATCH v2 2/3 dts: arm64/sdm845: Add node for arm,mmu-500

In reply to Vivek Gautam

Add device node for arm,mmu-500 available on sdm845. This MMU-500 with single TCU and multiple TBU architecture is shared among all the peripherals except gpu on sdm845.

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 72 ++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +72 -0
index eb4ab33bf6f4..1c2be2082f33 100644
@@ -989,6 +989,78 @@
 			cell-index = <0>;
 		};
 
+		apps_smmu: iommu at 15000000 {
+			compatible = "qcom,sdm845-smmu-500", "arm,mmu-500";
+			reg = <0x15000000 0x80000>;
+			#iommu-cells = <2>;
+			#global-interrupts = <1>;
+			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 322 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 323 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 333 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		apss_shared: mailbox at 17990000 {
 			compatible = "qcom,sdm845-apss-shared";
 			reg = <0x17990000 0x1000>;
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
#3 lore raw

PATCH v2 3/3 dts: arm64/sdm845: Add node for qcom,smmu-v2

In reply to Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +23 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@
  */
 
 #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
 #include <dt-bindings/clock/qcom,rpmh.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
@@ -989,6 +990,28 @@
 			cell-index = <0>;
 		};
 
+		gpu_smmu: iommu at 5040000 {
+			compatible = "qcom,sdm845-smmu-v2", "qcom,smmu-v2";
+			reg = <0x5040000 0x10000>;
+			#iommu-cells = <1>;
+			#global-interrupts = <2>;
+			interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 364 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 365 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 366 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 367 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 368 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 369 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 370 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 371 IRQ_TYPE_EDGE_RISING>;
+			clock-names = "bus", "iface";
+			clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>,
+				 <&gcc GCC_GPU_CFG_AHB_CLK>;
+
+			/*power-domains = <&gpucc GPU_CX_GDSC>;*/
+		};
+
 		apps_smmu: iommu at 15000000 {
 			compatible = "qcom,sdm845-smmu-500", "arm,mmu-500";
 			reg = <0x15000000 0x80000>;
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
reviewer
#4 lore raw

Re: [PATCH v2 3/3] dts: arm64/sdm845: Add node for qcom,smmu-v2

Hi Vivek,

Quoted 21 lines · Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@
   */
 
  #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
  #include <dt-bindings/clock/qcom,rpmh.h>
  #include <dt-bindings/interrupt-controller/arm-gic.h>
  #include <dt-bindings/soc/qcom,rpmh-rsc.h>

arch/arm64/boot/dts/qcom/sdm845.dtsi line 994

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -0
@@ -989,6 +990,28 @@
  			cell-index = <0>;
  		};
 
+		gpu_smmu: iommu at 5040000 {
+			compatible = "qcom,sdm845-smmu-v2", "qcom,smmu-v2";

Which of "sdm845" or "msm8996"[1] is the actual SoC name here?

Robin.

[1]
https://www.mail-archive.com/freedreno at lists.freedesktop.org/msg02659.html

Quoted 24 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +20 -0
+			reg = <0x5040000 0x10000>;
+			#iommu-cells = <1>;
+			#global-interrupts = <2>;
+			interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 364 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 365 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 366 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 367 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 368 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 369 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 370 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 371 IRQ_TYPE_EDGE_RISING>;
+			clock-names = "bus", "iface";
+			clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>,
+				 <&gcc GCC_GPU_CFG_AHB_CLK>;
+
+			/*power-domains = <&gpucc GPU_CX_GDSC>;*/
+		};
+
  		apps_smmu: iommu at 15000000 {
  			compatible = "qcom,sdm845-smmu-500", "arm,mmu-500";
  			reg = <0x15000000 0x80000>;
#5 lore raw

Re: [PATCH v2 3/3] dts: arm64/sdm845: Add node for qcom,smmu-v2

Adding Jordan here.

Quoted 25 lines · Robin Murphy

Hi Vivek,

Quoted 22 lines · Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@
   */
    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
  #include <dt-bindings/clock/qcom,rpmh.h>
  #include <dt-bindings/interrupt-controller/arm-gic.h>
  #include <dt-bindings/soc/qcom,rpmh-rsc.h>
@@ -989,6 +990,28 @@
Quoted 8 lines

arch/arm64/boot/dts/qcom/sdm845.dtsi line 994

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
                        cell-index = <0>;
                };
  +             gpu_smmu: iommu at 5040000 {
+                       compatible = "qcom,sdm845-smmu-v2",
 "qcom,smmu-v2";

Which of "sdm845" or "msm8996"[1] is the actual SoC name here?

Well, the bindings use the SoC prefix with smmu-v2, so it should be sdm845 for this SoC. This is same as I posted in my v1 of the series [2]. Using 8996 based string in sdm845 makes things look awful.

Thanks
Vivek

[2] https://patchwork.kernel.org/patch/10534989/

Quoted 35 lines

Robin.

[1]
https://www.mail-archive.com/freedreno at lists.freedesktop.org/msg02659.html

Quoted 22 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +20 -0
+                       reg = <0x5040000 0x10000>;
+                       #iommu-cells = <1>;
+                       #global-interrupts = <2>;
+                       interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 364 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 365 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 366 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 367 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 368 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 369 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 370 IRQ_TYPE_EDGE_RISING>,
+                                    <GIC_SPI 371 IRQ_TYPE_EDGE_RISING>;
+                       clock-names = "bus", "iface";
+                       clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>,
+                                <&gcc GCC_GPU_CFG_AHB_CLK>;
+
+                       /*power-domains = <&gpucc GPU_CX_GDSC>;*/
+               };
+
                apps_smmu: iommu at 15000000 {
                        compatible = "qcom,sdm845-smmu-500",
Quoted 3 lines
"arm,mmu-500";
                        reg = <0x15000000 0x80000>;

_______________________________________________
iommu mailing list
iommu at lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
maintainer
#6 lore raw

Re: [PATCH v2 3/3] dts: arm64/sdm845: Add node for qcom,smmu-v2

Quoted 37 lines · Vivek Gautam

Adding Jordan here.

Quoted 25 lines · Robin Murphy

Hi Vivek,

Quoted 22 lines · Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
  arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@
   */
    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
  #include <dt-bindings/clock/qcom,rpmh.h>
  #include <dt-bindings/interrupt-controller/arm-gic.h>
  #include <dt-bindings/soc/qcom,rpmh-rsc.h>
@@ -989,6 +990,28 @@
Quoted 8 lines

arch/arm64/boot/dts/qcom/sdm845.dtsi line 994

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
                        cell-index = <0>;
                };
  +             gpu_smmu: iommu at 5040000 {
+                       compatible = "qcom,sdm845-smmu-v2",
 "qcom,smmu-v2";

Which of "sdm845" or "msm8996"[1] is the actual SoC name here?

Quoted 3 lines

Well, the bindings use the SoC prefix with smmu-v2, so it should be sdm845 for this SoC. This is same as I posted in my v1 of the series [2]. Using 8996 based string in sdm845 makes things look awful.

You need to list valid values of '<soc>' in the binding. Otherwise we get this confusion.

Rob

#7 lore raw

Re: [PATCH v2 3/3] dts: arm64/sdm845: Add node for qcom,smmu-v2

Hi Rob, Robin,

Quoted 35 lines · Rob Herring
Quoted 34 lines · Vivek Gautam

Adding Jordan here.

Quoted 31 lines · Robin Murphy

Hi Vivek,

Quoted 21 lines · Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
   arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++
   1 file changed, 23 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@
    */
     #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
   #include <dt-bindings/clock/qcom,rpmh.h>
   #include <dt-bindings/interrupt-controller/arm-gic.h>
   #include <dt-bindings/soc/qcom,rpmh-rsc.h>

arch/arm64/boot/dts/qcom/sdm845.dtsi line 994

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
@@ -989,6 +990,28 @@
                         cell-index = <0>;
                 };
   +             gpu_smmu: iommu at 5040000 {
+                       compatible = "qcom,sdm845-smmu-v2",
 "qcom,smmu-v2";

Which of "sdm845" or "msm8996"[1] is the actual SoC name here?

Quoted 5 lines
Quoted 3 lines

Well, the bindings use the SoC prefix with smmu-v2, so it should be sdm845 for this SoC. This is same as I posted in my v1 of the series [2]. Using 8996 based string in sdm845 makes things look awful.

You need to list valid values of '<soc>' in the binding. Otherwise we get this confusion.

Sorry for delayed response, I was away on vacation.
I will list down the valid values for '<soc>' as suggested, and respin this series, and
smmu bindings patch that comes as part of the runtime pm series [1].

[1] https://lore.kernel.org/patchwork/patch/968017/

Best regards
Vivek

Quoted 2 lines

Rob

#8 lore raw

Re: [PATCH v2 3/3] dts: arm64/sdm845: Add node for qcom,smmu-v2

Quoted 47 lines · Vivek Gautam

Hi Rob, Robin,

Quoted 36 lines · Rob Herring
Quoted 35 lines · Vivek Gautam

Adding Jordan here.

Quoted 31 lines · Robin Murphy

Hi Vivek,

Quoted 21 lines · Vivek Gautam

Add device node for qcom,smmu-v2 available on sdm845. This smmu is available only to GPU device.

---
?? arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++ ?? 1 file changed, 23 insertions(+)

arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
index 1c2be2082f33..bd1ec5fa5146 100644
@@ -6,6 +6,7 @@

??? */
???? #include <dt-bindings/clock/qcom,gcc-sdm845.h> +#include <dt-bindings/clock/qcom,gpucc-sdm845.h> ?? #include <dt-bindings/clock/qcom,rpmh.h>
?? #include <dt-bindings/interrupt-controller/arm-gic.h> ?? #include <dt-bindings/soc/qcom,rpmh-rsc.h>

arch/arm64/boot/dts/qcom/sdm845.dtsi line 994

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -0
@@ -989,6 +990,28 @@
 ???????????????????????? cell-index = <0>;
 ???????????????? };
 ?? +???????????? gpu_smmu: iommu at 5040000 {
+?????????????????????? compatible = "qcom,sdm845-smmu-v2",
 "qcom,smmu-v2";

Which of "sdm845" or "msm8996"[1] is the actual SoC name here?

Quoted 6 lines
Quoted 4 lines

Well, the bindings use the SoC prefix with smmu-v2, so it should be sdm845 for this SoC. This is same as I posted in my v1 of the series [2].
Using 8996 based string in sdm845 makes things look awful.

You need to list valid values of '<soc>' in the binding. Otherwise we get this confusion.

Quoted 7 lines

Sorry for delayed response, I was away on vacation.
I will list down the valid values for '<soc>' as suggested, and respin this series, and
smmu bindings patch that comes as part of the runtime pm series [3].

[3] https://lore.kernel.org/patchwork/patch/968017/

I have updated the binding doc with valid values for '<soc>' string [4]. Kindly review this based on [4].

[4] https://lore.kernel.org/patchwork/patch/977888/

Best regards
Vivek