devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee
@ 2023-07-05 15:44 Patrick Delaunay
  2023-07-05 15:44 ` [PATCH 1/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15 Patrick Delaunay
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Patrick Delaunay @ 2023-07-05 15:44 UTC (permalink / raw)
  To: Alexandre TORGUE, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Maxime Coquelin, Russell King, Gabriel Fernandez
  Cc: Christophe PRIOUZEAU, Etienne CARRIERE, Gatien CHEVALLIER,
	Patrick Delaunay, devicetree, linux-arm-kernel, linux-kernel,
	linux-stm32


Remove the optional shared memory in SYSRAM and
use the OP-TEE native shared memory for SCMI-OPTEE to
- avoid boot issue with the latest OP-TEE version 3.22.0 for STM32MP15 SoC,
  when CFG_STM32MP1_SCMI_SHM_SYSRAM is disabled
- prepare migration with the same configuration for STM32MP13 SoC



Patrick Delaunay (2):
  ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15
  ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13

 arch/arm/boot/dts/st/stm32mp131.dtsi     | 14 --------------
 arch/arm/boot/dts/st/stm32mp15-scmi.dtsi | 16 ----------------
 2 files changed, 30 deletions(-)

-- 
2.25.1


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

* [PATCH 1/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15
  2023-07-05 15:44 [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Patrick Delaunay
@ 2023-07-05 15:44 ` Patrick Delaunay
  2023-07-05 15:44 ` [PATCH 2/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13 Patrick Delaunay
  2023-07-10 14:49 ` [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Patrick Delaunay @ 2023-07-05 15:44 UTC (permalink / raw)
  To: Alexandre TORGUE, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Maxime Coquelin
  Cc: Christophe PRIOUZEAU, Etienne CARRIERE, Gatien CHEVALLIER,
	Patrick Delaunay, devicetree, linux-arm-kernel, linux-kernel,
	linux-stm32

Since the OP-TEE commit "plat-stm32mp1: scmi_server: default use OP-TEE
shared memory", integrated in OP-TEE 3.22.0-rc1, the default configuration
for STM32MP15x SoCs changes and CFG_STM32MP1_SCMI_SHM_SYSRAM is disabled
by default and the OP-TEE SMCI server uses OP-TEE native shared memory
registered by clients.

To be compatible with this configuration and the next OP-TEE versions,
this patch removes in the STM32MP15 SCMI device tree the SHMEM used by
OP-TEE SCMI and the associated reserved memory in the last 4KByte page
of SRAM.

Fixes: ea3414e1249e ("ARM: dts: stm32: move SCMI related nodes in a dedicated file for stm32mp15")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---

 arch/arm/boot/dts/st/stm32mp15-scmi.dtsi | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/arch/arm/boot/dts/st/stm32mp15-scmi.dtsi b/arch/arm/boot/dts/st/stm32mp15-scmi.dtsi
index 543f24c2f4f6..ad2584213d99 100644
--- a/arch/arm/boot/dts/st/stm32mp15-scmi.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15-scmi.dtsi
@@ -16,7 +16,6 @@ scmi: scmi {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			linaro,optee-channel-id = <0>;
-			shmem = <&scmi_shm>;
 
 			scmi_clk: protocol@14 {
 				reg = <0x14>;
@@ -60,21 +59,6 @@ scmi_usb33: usb33@2 {
 			};
 		};
 	};
-
-	soc {
-		scmi_sram: sram@2ffff000 {
-			compatible = "mmio-sram";
-			reg = <0x2ffff000 0x1000>;
-			#address-cells = <1>;
-			#size-cells = <1>;
-			ranges = <0 0x2ffff000 0x1000>;
-
-			scmi_shm: scmi-sram@0 {
-				compatible = "arm,scmi-shmem";
-				reg = <0 0x80>;
-			};
-		};
-	};
 };
 
 &reg11 {
-- 
2.25.1


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

* [PATCH 2/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13
  2023-07-05 15:44 [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Patrick Delaunay
  2023-07-05 15:44 ` [PATCH 1/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15 Patrick Delaunay
@ 2023-07-05 15:44 ` Patrick Delaunay
  2023-07-10 14:49 ` [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Patrick Delaunay @ 2023-07-05 15:44 UTC (permalink / raw)
  To: Alexandre TORGUE, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Maxime Coquelin, Gabriel Fernandez
  Cc: Christophe PRIOUZEAU, Etienne CARRIERE, Gatien CHEVALLIER,
	Patrick Delaunay, devicetree, linux-arm-kernel, linux-kernel,
	linux-stm32

CFG_STM32MP1_SCMI_SHM_SYSRAM will be disabled by default for STM32MP13x
SoCs in future OP-TEE version and the OP-TEE SMCI server uses only
the OP-TEE native shared memory registered by clients.

To be compatible by default with this configuration this patch removes
the shared memory in the SCMI configuration and the associated reserved
memory in SRAM.

Fixes: 9005aeddd9fc ("ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---

 arch/arm/boot/dts/st/stm32mp131.dtsi | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/arch/arm/boot/dts/st/stm32mp131.dtsi b/arch/arm/boot/dts/st/stm32mp131.dtsi
index d163c267e34c..d23bbc3639df 100644
--- a/arch/arm/boot/dts/st/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp131.dtsi
@@ -40,7 +40,6 @@ scmi: scmi {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			linaro,optee-channel-id = <0>;
-			shmem = <&scmi_shm>;
 
 			scmi_clk: protocol@14 {
 				reg = <0x14>;
@@ -106,19 +105,6 @@ soc {
 		interrupt-parent = <&intc>;
 		ranges;
 
-		scmi_sram: sram@2ffff000 {
-			compatible = "mmio-sram";
-			reg = <0x2ffff000 0x1000>;
-			#address-cells = <1>;
-			#size-cells = <1>;
-			ranges = <0 0x2ffff000 0x1000>;
-
-			scmi_shm: scmi-sram@0 {
-				compatible = "arm,scmi-shmem";
-				reg = <0 0x80>;
-			};
-		};
-
 		timers2: timer@40000000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.25.1


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

* Re: [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee
  2023-07-05 15:44 [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Patrick Delaunay
  2023-07-05 15:44 ` [PATCH 1/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15 Patrick Delaunay
  2023-07-05 15:44 ` [PATCH 2/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13 Patrick Delaunay
@ 2023-07-10 14:49 ` Alexandre TORGUE
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2023-07-10 14:49 UTC (permalink / raw)
  To: Patrick Delaunay, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Maxime Coquelin, Russell King, Gabriel Fernandez
  Cc: Christophe PRIOUZEAU, Etienne CARRIERE, Gatien CHEVALLIER,
	devicetree, linux-arm-kernel, linux-kernel, linux-stm32

On 7/5/23 17:44, Patrick Delaunay wrote:
> 
> Remove the optional shared memory in SYSRAM and
> use the OP-TEE native shared memory for SCMI-OPTEE to
> - avoid boot issue with the latest OP-TEE version 3.22.0 for STM32MP15 SoC,
>    when CFG_STM32MP1_SCMI_SHM_SYSRAM is disabled
> - prepare migration with the same configuration for STM32MP13 SoC
> 
> 
> 
> Patrick Delaunay (2):
>    ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15
>    ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13
> 
>   arch/arm/boot/dts/st/stm32mp131.dtsi     | 14 --------------
>   arch/arm/boot/dts/st/stm32mp15-scmi.dtsi | 16 ----------------
>   2 files changed, 30 deletions(-)
> 

Applied to stm32-next. Will be send for fixes in this v6.5 cycle.

Thanks
Alex

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

end of thread, other threads:[~2023-07-10 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 15:44 [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Patrick Delaunay
2023-07-05 15:44 ` [PATCH 1/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp15 Patrick Delaunay
2023-07-05 15:44 ` [PATCH 2/2] ARM: dts: sm32mp: remove shmem for scmi-optee on stm32mp13 Patrick Delaunay
2023-07-10 14:49 ` [PATCH 0/2] ARM: dts: sm32mp: remove shmem for scmi-optee Alexandre TORGUE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).