mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory
@ 2025-03-08 10:00 Chukun Pan
  2025-03-08 10:00 ` [PATCH 1/1] " Chukun Pan
  0 siblings, 1 reply; 3+ messages in thread
From: Chukun Pan @ 2025-03-08 10:00 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Krzysztof Kozlowski, Conor Dooley, Dragan Simic, Jonas Karlman,
	Rob Herring, linux-rockchip, linux-arm-kernel, linux-kernel,
	devicetree, Chukun Pan

Inspired by recent rk3528 thread:
https://lore.kernel.org/lkml/20250306131016.281290-1-amadeus@jmu.edu.cn/

Nothing seems wrong:
/# dmesg | grep scmi
[    0.086456] scmi_core: SCMI protocol bus registered
[    1.519045] scmi_protocol scmi_dev.1: Enabled polling mode TX channel - prot_id:16
[    1.520074] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    1.520772] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0

Chukun Pan (1):
  arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory

 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 25 +++++++++----------
 1 file changed, 12 insertions(+), 13 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory
  2025-03-08 10:00 [PATCH 0/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory Chukun Pan
@ 2025-03-08 10:00 ` Chukun Pan
  2025-03-12  7:45   ` Heiko Stuebner
  0 siblings, 1 reply; 3+ messages in thread
From: Chukun Pan @ 2025-03-08 10:00 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Krzysztof Kozlowski, Conor Dooley, Dragan Simic, Jonas Karlman,
	Rob Herring, linux-rockchip, linux-arm-kernel, linux-kernel,
	devicetree, Chukun Pan

0x0 to 0xf0000000 are SDRAM memory areas where 0x10f000 is located.
So move the SHMEM memory of arm_scmi to the reserved memory node.

Fixes: a3adc0b9071d ("arm64: dts: rockchip: add core dtsi for RK3568 SoC")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 25 +++++++++----------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
index 4f11141ea146..fd2214b6fad4 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi
@@ -174,6 +174,18 @@ psci {
 		method = "smc";
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		scmi_shmem: shmem@10f000 {
+			compatible = "arm,scmi-shmem";
+			reg = <0x0 0x0010f000 0x0 0x100>;
+			no-map;
+		};
+	};
+
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
@@ -199,19 +211,6 @@ xin32k: xin32k {
 		#clock-cells = <0>;
 	};
 
-	sram@10f000 {
-		compatible = "mmio-sram";
-		reg = <0x0 0x0010f000 0x0 0x100>;
-		#address-cells = <1>;
-		#size-cells = <1>;
-		ranges = <0 0x0 0x0010f000 0x100>;
-
-		scmi_shmem: sram@0 {
-			compatible = "arm,scmi-shmem";
-			reg = <0x0 0x100>;
-		};
-	};
-
 	sata1: sata@fc400000 {
 		compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci";
 		reg = <0 0xfc400000 0 0x1000>;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory
  2025-03-08 10:00 ` [PATCH 1/1] " Chukun Pan
@ 2025-03-12  7:45   ` Heiko Stuebner
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2025-03-12  7:45 UTC (permalink / raw)
  To: Chukun Pan
  Cc: Heiko Stuebner, Krzysztof Kozlowski, Conor Dooley, Dragan Simic,
	Jonas Karlman, Rob Herring, linux-rockchip, linux-arm-kernel,
	linux-kernel, devicetree


On Sat, 08 Mar 2025 18:00:01 +0800, Chukun Pan wrote:
> 0x0 to 0xf0000000 are SDRAM memory areas where 0x10f000 is located.
> So move the SHMEM memory of arm_scmi to the reserved memory node.
> 
> 

Applied, thanks!

[1/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory
      commit: 19f48b687566b0f52c9ca833fa1f0c27ce44e1ba

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-12  7:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-08 10:00 [PATCH 0/1] arm64: dts: rockchip: rk356x: Move SHMEM memory to reserved memory Chukun Pan
2025-03-08 10:00 ` [PATCH 1/1] " Chukun Pan
2025-03-12  7:45   ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®