[PATCH 1/3] arm64: dts: qcom: sdm630: Add modem metadata mem

Alexey Minnekhanov posted 3 patches 9 months, 1 week ago
[PATCH 1/3] arm64: dts: qcom: sdm630: Add modem metadata mem
Posted by Alexey Minnekhanov 9 months, 1 week ago
Similarly to MSM8998, add and use modem metadata memory region.
This does not seemingly affect device functionality. But it fixes
DTBs check warning:

 remoteproc@4080000: memory-region: [[45], [46]] is too short

Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
index 2d3820536ddf4..8b1a45a4e56ed 100644
--- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
@@ -509,6 +509,12 @@ zap_shader_region: gpu@fed00000 {
 			reg = <0x0 0xfed00000 0x0 0xa00000>;
 			no-map;
 		};
+
+		mdata_mem: mpss-metadata {
+			alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
+			size = <0x0 0x4000>;
+			no-map;
+		};
 	};
 
 	smem: smem {
@@ -1056,7 +1062,7 @@ remoteproc_mss: remoteproc@4080000 {
 					<&rpmpd SDM660_VDDMX>;
 			power-domain-names = "cx", "mx";
 
-			memory-region = <&mba_region>, <&mpss_region>;
+			memory-region = <&mba_region>, <&mpss_region>, <&mdata_mem>;
 
 			status = "disabled";
 
-- 
2.49.0
Re: [PATCH 1/3] arm64: dts: qcom: sdm630: Add modem metadata mem
Posted by Dmitry Baryshkov 9 months, 1 week ago
On Sun, May 04, 2025 at 02:51:18PM +0300, Alexey Minnekhanov wrote:
> Similarly to MSM8998, add and use modem metadata memory region.
> This does not seemingly affect device functionality. But it fixes
> DTBs check warning:
> 
>  remoteproc@4080000: memory-region: [[45], [46]] is too short

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

> 
> Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
> ---
>  arch/arm64/boot/dts/qcom/sdm630.dtsi | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
> index 2d3820536ddf4..8b1a45a4e56ed 100644
> --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
> @@ -509,6 +509,12 @@ zap_shader_region: gpu@fed00000 {
>  			reg = <0x0 0xfed00000 0x0 0xa00000>;
>  			no-map;
>  		};
> +
> +		mdata_mem: mpss-metadata {
> +			alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
> +			size = <0x0 0x4000>;
> +			no-map;
> +		};
>  	};
>  
>  	smem: smem {
> @@ -1056,7 +1062,7 @@ remoteproc_mss: remoteproc@4080000 {
>  					<&rpmpd SDM660_VDDMX>;
>  			power-domain-names = "cx", "mx";
>  
> -			memory-region = <&mba_region>, <&mpss_region>;
> +			memory-region = <&mba_region>, <&mpss_region>, <&mdata_mem>;
>  
>  			status = "disabled";
>  
> -- 
> 2.49.0
> 

-- 
With best wishes
Dmitry