Skip to contentSkip to conversation

arm64: dts: msm8996: Add SMEM reserve-memory node

PATCH Superseded Sarangdhar Joshi 3 participants 15 messages Oct 20, 2016

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 arm64: dts: msm8996: Add SMEM reserve-memory node

Add DT node to carveout memory for shared memory region.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +11 -0
index d6da223..36216ae 100644
@@ -31,6 +31,17 @@
 		reg = <0 0 0 0>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		smem_mem: smem-mem at 86000000 {
+			reg = <0x0 0x86000000 0x0 0x200000>;
+			no-map;
+		};
+	};
+
 	cpus {
 		#address-cells = <2>;
 		#size-cells = <0>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#1 lore raw

PATCH 2/4 arm64: dts: msm8996: Add reserve-memory nodes

Add reserve-memory nodes required for Qualcomm
Peripheral Image Loaders

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +25 -0
index 36216ae..949b096 100644
@@ -36,6 +36,31 @@
 		#size-cells = <2>;
 		ranges;
 
+		mba_region: mba at 91500000 {
+			reg = <0x0 0x91500000 0x0 0x200000>;
+			no-map;
+		};
+
+		slpi_region: slpi at 90b00000 {
+			reg = <0x0 0x90b00000 0xa00000>;
+			no-map;
+		};
+
+		venus_region: venus at 90400000 {
+			reg = <0x0 0x90400000 0x0 0x700000>;
+			no-map;
+		};
+
+		adsp_region: adsp at 8ea00000 {
+			reg = <0x0 0x8ea00000 0x0 0x1a00000>;
+			no-map;
+		};
+
+		mpss_region: mpss at 88800000 {
+			reg = <0x0 0x88800000 0x0 0x6200000>;
+			no-map;
+		};
+
 		smem_mem: smem-mem at 86000000 {
 			reg = <0x0 0x86000000 0x0 0x200000>;
 			no-map;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#4 lore raw

PATCH 3/4 arm64: dts: msm8996: Add SMEM DT nodes

In reply to Sarangdhar Joshi

From: Bjorn Andersson <[email protected]>

Add SMEM and TCSR DT nodes on MSM8996.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +19 -0
index 949b096..0a810f5 100644
@@ -169,12 +169,31 @@
 		method = "smc";
 	};
 
+	smem {
+		compatible = "qcom,smem";
+
+		memory-region = <&smem_mem>;
+
+		hwlocks = <&tcsr_mutex 3>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 		compatible = "simple-bus";
 
+		tcsr_mutex_regs: syscon at 740000 {
+			compatible = "syscon";
+			reg = <0x740000 0x20000>;
+		};
+
+		tcsr_mutex: hwlock {
+			compatible = "qcom,tcsr-mutex";
+			syscon = <&tcsr_mutex_regs 0 0x1000>;
+			#hwlock-cells = <1>;
+		};
+
 		intc: interrupt-controller at 9bc0000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#9 lore raw

PATCH 4/4 arm64: dts: msm8996: Add SMP2P and APCS nodes

In reply to Sarangdhar Joshi

Add SMP2P and APCS DT nodes required for Qualcomm ADSP Peripheral Image Loader.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +30 -0
index 0a810f5..3edb56b 100644
@@ -169,6 +169,31 @@
 		method = "smc";
 	};
 
+	smp2p-adsp {
+		compatible = "qcom,smp2p";
+		qcom,smem = <443>, <429>;
+
+		interrupt-parent = <&intc>;
+		interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
+
+		qcom,ipc = <&apcs 16 10>;
+
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <2>;
+
+		adsp_smp2p_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,state-cells = <1>;
+		};
+
+		adsp_smp2p_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
 	smem {
 		compatible = "qcom,smem";
 
@@ -205,6 +230,11 @@
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		apcs: syscon at 9820000 {
+			compatible = "syscon";
+			reg = <0x9820000 0x1000>;
+		};
+
 		gcc: clock-controller at 300000 {
 			compatible = "qcom,gcc-msm8996";
 			#clock-cells = <1>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#5 lore raw

Re: [PATCH 3/4] arm64: dts: msm8996: Add SMEM DT nodes

In reply to Sarangdhar Joshi
Quoted 32 lines · Sarangdhar Joshi

From: Bjorn Andersson <[email protected]>

Add SMEM and TCSR DT nodes on MSM8996.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +8 -0
index 949b096..0a810f5 100644
@@ -169,12 +169,31 @@
 		method = "smc";
 	};
 
+	smem {
+		compatible = "qcom,smem";
+
+		memory-region = <&smem_mem>;
+
+		hwlocks = <&tcsr_mutex 3>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 		compatible = "simple-bus";
 

arch/arm64/boot/dts/qcom/msm8996.dtsi line 195

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10 -0
+		tcsr_mutex_regs: syscon at 740000 {
+			compatible = "syscon";
+			reg = <0x740000 0x20000>;
+		};
+
+		tcsr_mutex: hwlock {
+			compatible = "qcom,tcsr-mutex";
+			syscon = <&tcsr_mutex_regs 0 0x1000>;
+			#hwlock-cells = <1>;
+		};

Sorry, I got this in the wrong place, the hwlock node should sit outside of soc {} - looks like we got this wrong in msm8916 as well.

Regards,
Bjorn

Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -0
+
 		intc: interrupt-controller at 9bc0000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Acked-by on v1 2/4
#2 lore raw

Re: [PATCH 2/4] arm64: dts: msm8996: Add reserve-memory nodes

In reply to Sarangdhar Joshi
Quoted 3 lines · Sarangdhar Joshi

Add reserve-memory nodes required for Qualcomm
Peripheral Image Loaders

Awesome stuff,

Regards,
Bjorn

Quoted 45 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +25 -0
index 36216ae..949b096 100644
@@ -36,6 +36,31 @@
 		#size-cells = <2>;
 		ranges;
 
+		mba_region: mba at 91500000 {
+			reg = <0x0 0x91500000 0x0 0x200000>;
+			no-map;
+		};
+
+		slpi_region: slpi at 90b00000 {
+			reg = <0x0 0x90b00000 0xa00000>;
+			no-map;
+		};
+
+		venus_region: venus at 90400000 {
+			reg = <0x0 0x90400000 0x0 0x700000>;
+			no-map;
+		};
+
+		adsp_region: adsp at 8ea00000 {
+			reg = <0x0 0x8ea00000 0x0 0x1a00000>;
+			no-map;
+		};
+
+		mpss_region: mpss at 88800000 {
+			reg = <0x0 0x88800000 0x0 0x6200000>;
+			no-map;
+		};
+
 		smem_mem: smem-mem at 86000000 {
 			reg = <0x0 0x86000000 0x0 0x200000>;
 			no-map;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Reviewed-by on v1 1/4
#12 lore raw
In reply to Sarangdhar Joshi
Quoted 2 lines · Sarangdhar Joshi

Add DT node to carveout memory for shared memory region.

Regards,
Bjorn

Quoted 31 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +11 -0
index d6da223..36216ae 100644
@@ -31,6 +31,17 @@
 		reg = <0 0 0 0>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		smem_mem: smem-mem at 86000000 {
+			reg = <0x0 0x86000000 0x0 0x200000>;
+			no-map;
+		};
+	};
+
 	cpus {
 		#address-cells = <2>;
 		#size-cells = <0>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Acked-by on v1 4/4
#10 lore raw

Re: [PATCH 4/4] arm64: dts: msm8996: Add SMP2P and APCS nodes

In reply to Sarangdhar Joshi
Quoted 3 lines · Sarangdhar Joshi

Add SMP2P and APCS DT nodes required for Qualcomm ADSP Peripheral Image Loader.

Nice, two (very) small nits below. But other than that

Regards,
Bjorn

Quoted 10 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +0 -0
index 0a810f5..3edb56b 100644

arch/arm64/boot/dts/qcom/msm8996.dtsi line 172

Quoted 4 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -0
@@ -169,6 +169,31 @@
 		method = "smc";
 	};
 
+	smp2p-adsp {

Sorry for bikeshedding, but on msm8916 I named these {subsystem}-smp2p, so I would prefer this was naemd adsp-smp2p...

arch/arm64/boot/dts/qcom/msm8996.dtsi line 176

Quoted 4 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +4 -0
+		compatible = "qcom,smp2p";
+		qcom,smem = <443>, <429>;
+
+		interrupt-parent = <&intc>;

I believe this node inherit intc as interrupt-parent from the root already, is there are reason why you need to specify it.

Quoted 39 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +25 -0
+		interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
+
+		qcom,ipc = <&apcs 16 10>;
+
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <2>;
+
+		adsp_smp2p_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,state-cells = <1>;
+		};
+
+		adsp_smp2p_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
 	smem {
 		compatible = "qcom,smem";
 
@@ -205,6 +230,11 @@
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		apcs: syscon at 9820000 {
+			compatible = "syscon";
+			reg = <0x9820000 0x1000>;
+		};
+
 		gcc: clock-controller at 300000 {
 			compatible = "qcom,gcc-msm8996";
 			#clock-cells = <1>;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#13 lore raw
In reply to Bjorn Andersson
Quoted 6 lines · Bjorn Andersson
Quoted 2 lines · Sarangdhar Joshi

Add DT node to carveout memory for shared memory region.

Thanks for reviewing.

Quoted 32 lines

Regards,
Bjorn

Quoted 28 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +11 -1
index d6da223..36216ae 100644
@@ -31,6 +31,17 @@
 		reg = <0 0 0 0>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		smem_mem: smem-mem at 86000000 {
+			reg = <0x0 0x86000000 0x0 0x200000>;
+			no-map;
+		};
+	};
+
 	cpus {
 		#address-cells = <2>;
 		#size-cells = <0>;
--
Quoted 9 lines
Quoted 3 lines

The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Regards,
Sarang

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#3 lore raw

Re: [PATCH 2/4] arm64: dts: msm8996: Add reserve-memory nodes

In reply to Bjorn Andersson
Quoted 9 lines · Bjorn Andersson
Quoted 3 lines · Sarangdhar Joshi

Add reserve-memory nodes required for Qualcomm
Peripheral Image Loaders

Awesome stuff,

Thanks for reviewing.

Quoted 41 lines

Regards,
Bjorn

Quoted 37 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +24 -0
index 36216ae..949b096 100644
@@ -36,6 +36,31 @@
 		#size-cells = <2>;
 		ranges;
 
+		mba_region: mba at 91500000 {
+			reg = <0x0 0x91500000 0x0 0x200000>;
+			no-map;
+		};
+
+		slpi_region: slpi at 90b00000 {
+			reg = <0x0 0x90b00000 0xa00000>;
+			no-map;
+		};
+
+		venus_region: venus at 90400000 {
+			reg = <0x0 0x90400000 0x0 0x700000>;
+			no-map;
+		};
+
+		adsp_region: adsp at 8ea00000 {
+			reg = <0x0 0x8ea00000 0x0 0x1a00000>;
+			no-map;
+		};
+
+		mpss_region: mpss at 88800000 {
+			reg = <0x0 0x88800000 0x0 0x6200000>;
+			no-map;
+		};
Quoted 8 lines
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -1
+
 		smem_mem: smem-mem at 86000000 {
 			reg = <0x0 0x86000000 0x0 0x200000>;
 			no-map;
--

The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Regards,
Sarang

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#6 lore raw

Re: [PATCH 3/4] arm64: dts: msm8996: Add SMEM DT nodes

In reply to Bjorn Andersson
Quoted 34 lines · Bjorn Andersson
Quoted 32 lines · Sarangdhar Joshi

From: Bjorn Andersson <[email protected]>

Add SMEM and TCSR DT nodes on MSM8996.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +8 -0
index 949b096..0a810f5 100644
@@ -169,12 +169,31 @@
 		method = "smc";
 	};
 
+	smem {
+		compatible = "qcom,smem";
+
+		memory-region = <&smem_mem>;
+
+		hwlocks = <&tcsr_mutex 3>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 		compatible = "simple-bus";
 
Quoted 13 lines

arch/arm64/boot/dts/qcom/msm8996.dtsi line 195

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10 -0
+		tcsr_mutex_regs: syscon at 740000 {
+			compatible = "syscon";
+			reg = <0x740000 0x20000>;
+		};
+
+		tcsr_mutex: hwlock {
+			compatible = "qcom,tcsr-mutex";
+			syscon = <&tcsr_mutex_regs 0 0x1000>;
+			#hwlock-cells = <1>;
+		};

Sorry, I got this in the wrong place, the hwlock node should sit outside of soc {} - looks like we got this wrong in msm8916 as well.

Thanks for reviewing the patch. Do you mean to move it under / {}; (i.e. root)?

Quoted 12 lines

Regards,
Bjorn

Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -1
+
 		intc: interrupt-controller at 9bc0000 {
 			compatible = "arm,gic-v3";
 			#interrupt-cells = <3>;
--

The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Regards,
Sarang

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#11 lore raw

Re: [PATCH 4/4] arm64: dts: msm8996: Add SMP2P and APCS nodes

In reply to Bjorn Andersson
Quoted 26 lines · Bjorn Andersson
Quoted 3 lines · Sarangdhar Joshi

Add SMP2P and APCS DT nodes required for Qualcomm ADSP Peripheral Image Loader.

Nice, two (very) small nits below. But other than that

Regards,
Bjorn

Quoted 13 lines
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +0 -0
index 0a810f5..3edb56b 100644
@@ -169,6 +169,31 @@
 		method = "smc";
 	};
 
Quoted 4 lines

arch/arm64/boot/dts/qcom/msm8996.dtsi line 172

Quoted 1 line
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -0
+	smp2p-adsp {

Sorry for bikeshedding, but on msm8916 I named these {subsystem}-smp2p, so I would prefer this was naemd adsp-smp2p...

Sure. Will do.

Quoted 9 lines

arch/arm64/boot/dts/qcom/msm8996.dtsi line 176

Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +4 -0
+		compatible = "qcom,smp2p";
+		qcom,smem = <443>, <429>;
+
+		interrupt-parent = <&intc>;

I believe this node inherit intc as interrupt-parent from the root already, is there are reason why you need to specify it.

Good catch. I will remove it.

Quoted 36 lines
Quoted 36 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +25 -1
+		interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
+
+		qcom,ipc = <&apcs 16 10>;
+
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <2>;
+
+		adsp_smp2p_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,state-cells = <1>;
+		};
+
+		adsp_smp2p_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
 	smem {
 		compatible = "qcom,smem";
 
@@ -205,6 +230,11 @@
 			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		apcs: syscon at 9820000 {
+			compatible = "syscon";
+			reg = <0x9820000 0x1000>;
+		};
+
 		gcc: clock-controller at 300000 {
 			compatible = "qcom,gcc-msm8996";
 			#clock-cells = <1>;
--
Quoted 9 lines
Quoted 3 lines

The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Thanks for reviewing the patch.

Regards,
Sarang

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#7 lore raw

Re: [PATCH 3/4] arm64: dts: msm8996: Add SMEM DT nodes

In reply to Sarangdhar Joshi
Quoted 49 lines · Sarangdhar Joshi
Quoted 34 lines · Bjorn Andersson
Quoted 32 lines · Sarangdhar Joshi

From: Bjorn Andersson <[email protected]>

Add SMEM and TCSR DT nodes on MSM8996.

---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++++++++++++++++++

1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +8 -0
index 949b096..0a810f5 100644
@@ -169,12 +169,31 @@
 		method = "smc";
 	};
 
+	smem {
+		compatible = "qcom,smem";
+
+		memory-region = <&smem_mem>;
+
+		hwlocks = <&tcsr_mutex 3>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 		compatible = "simple-bus";
 
Quoted 13 lines

arch/arm64/boot/dts/qcom/msm8996.dtsi line 195

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10 -0
+		tcsr_mutex_regs: syscon at 740000 {
+			compatible = "syscon";
+			reg = <0x740000 0x20000>;
+		};
+
+		tcsr_mutex: hwlock {
+			compatible = "qcom,tcsr-mutex";
+			syscon = <&tcsr_mutex_regs 0 0x1000>;
+			#hwlock-cells = <1>;
+		};

Sorry, I got this in the wrong place, the hwlock node should sit outside of soc {} - looks like we got this wrong in msm8916 as well.

Quoted 2 lines

Thanks for reviewing the patch. Do you mean to move it under / {}; (i.e. root)?

Yes. Any node that doesn't have reg properties should go under the root.

Andy

#14 lore raw
In reply to Sarangdhar Joshi
Quoted 10 lines · Sarangdhar Joshi
Quoted 6 lines · Bjorn Andersson
Quoted 2 lines · Sarangdhar Joshi

Add DT node to carveout memory for shared memory region.

Thanks for reviewing.

All of the patches looked good. I do agree with Bjorn's comments on the other patch. When you resend these, please use a cover letter and a V2. I'll then pick them up for the next pull request.

Thanks for sending these!

Andy

#8 lore raw

Re: [PATCH 3/4] arm64: dts: msm8996: Add SMEM DT nodes

In reply to Andy Gross
Quoted 50 lines · Andy Gross
Quoted 49 lines · Sarangdhar Joshi
Quoted 47 lines · Bjorn Andersson
Quoted 32 lines · Sarangdhar Joshi

From: Bjorn Andersson <[email protected]>

Add SMEM and TCSR DT nodes on MSM8996.

---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 19 +++++++++++++++++++

1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +8 -0
index 949b096..0a810f5 100644
@@ -169,12 +169,31 @@
 		method = "smc";
 	};
 
+	smem {
+		compatible = "qcom,smem";
+
+		memory-region = <&smem_mem>;
+
+		hwlocks = <&tcsr_mutex 3>;
+	};
+
 	soc: soc {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 		compatible = "simple-bus";
 

arch/arm64/boot/dts/qcom/msm8996.dtsi line 195

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10 -0
+		tcsr_mutex_regs: syscon at 740000 {
+			compatible = "syscon";
+			reg = <0x740000 0x20000>;
+		};
+
+		tcsr_mutex: hwlock {
+			compatible = "qcom,tcsr-mutex";
+			syscon = <&tcsr_mutex_regs 0 0x1000>;
+			#hwlock-cells = <1>;
+		};

Sorry, I got this in the wrong place, the hwlock node should sit outside of soc {} - looks like we got this wrong in msm8916 as well.

Quoted 5 lines
Quoted 2 lines

Thanks for reviewing the patch. Do you mean to move it under / {}; (i.e. root)?

Yes. Any node that doesn't have reg properties should go under the root.

Got it. Will update the patch(es) and add cover letter. Thanks.

Quoted 3 lines

Andy

Regards,
Sarang

Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project