mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD
@ 2026-08-20  5:51 Vinayak Katoch
  2026-08-20  8:32 ` Abel Vesa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vinayak Katoch @ 2026-08-20  5:51 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Bharath Kumar, Chenna Kesava Raju, Ekansh Gupta, linux-arm-msm,
	devicetree, linux-kernel, Christopher Obbard, Dmitry Baryshkov,
	Vinayak Katoch

Reserve memory region for audio PD dynamic loading and remote heap
requirements. Add the required VMID list for memory ownership
transfers.

Tested-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
---
Changes in v3:
- Changed alloc-ranges to <0x0 0x0 0x1 0x0> to cover the full 32-bit address space.
- Collected Reviewed-by/Tested-by tags.
- Link to v2: https://lore.kernel.org/r/20260807-agatti-audio-v2-1-3959b1ab8059@oss.qualcomm.com

Changes in v2:
- Fixed VMID list alignment.
- Link to v1: https://lore.kernel.org/r/20260806-agatti-audio-v1-1-cd6766cc9ccb@oss.qualcomm.com
---
 arch/arm64/boot/dts/qcom/agatti.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/agatti.dtsi b/arch/arm64/boot/dts/qcom/agatti.dtsi
index 590bd2432d85..d010ef7fdf8c 100644
--- a/arch/arm64/boot/dts/qcom/agatti.dtsi
+++ b/arch/arm64/boot/dts/qcom/agatti.dtsi
@@ -381,6 +381,14 @@ rmtfs_mem: memory@89b01000 {
 			qcom,client-id = <1>;
 			qcom,vmid = <QCOM_SCM_VMID_MSS_MSA QCOM_SCM_VMID_NAV>;
 		};
+
+		adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap {
+			compatible = "shared-dma-pool";
+			alloc-ranges = <0x0 0x0 0x1 0x0>;
+			reusable;
+			alignment = <0x0 0x400000>;
+			size = <0x0 0x800000>;
+		};
 	};
 
 	smp2p-adsp {
@@ -2348,6 +2356,9 @@ fastrpc {
 					compatible = "qcom,fastrpc";
 					qcom,glink-channels = "fastrpcglink-apps-dsp";
 					label = "adsp";
+					memory-region = <&adsp_rpc_remote_heap_mem>;
+					qcom,vmids = <QCOM_SCM_VMID_LPASS
+						      QCOM_SCM_VMID_ADSP_HEAP>;
 
 					qcom,non-secure-domain;
 

---
base-commit: 1701fda2f58e345c050f4309971bdc07cd6146ba
change-id: 20260806-agatti-audio-357bcd74ae9c

Best regards,
-- 
Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>


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

* Re: [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD
  2026-08-20  5:51 [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD Vinayak Katoch
@ 2026-08-20  8:32 ` Abel Vesa
  2026-08-24 14:14 ` Konrad Dybcio
  2026-08-28  8:37 ` Loic Poulain
  2 siblings, 0 replies; 4+ messages in thread
From: Abel Vesa @ 2026-08-20  8:32 UTC (permalink / raw)
  To: Vinayak Katoch
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bharath Kumar, Chenna Kesava Raju, Ekansh Gupta,
	linux-arm-msm, devicetree, linux-kernel, Christopher Obbard,
	Dmitry Baryshkov

On 26-08-20 11:21:28, Vinayak Katoch wrote:
> Reserve memory region for audio PD dynamic loading and remote heap
> requirements. Add the required VMID list for memory ownership
> transfers.
> 
> Tested-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
> Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>

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

* Re: [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD
  2026-08-20  5:51 [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD Vinayak Katoch
  2026-08-20  8:32 ` Abel Vesa
@ 2026-08-24 14:14 ` Konrad Dybcio
  2026-08-28  8:37 ` Loic Poulain
  2 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-08-24 14:14 UTC (permalink / raw)
  To: Vinayak Katoch, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Bharath Kumar, Chenna Kesava Raju, Ekansh Gupta, linux-arm-msm,
	devicetree, linux-kernel, Christopher Obbard, Dmitry Baryshkov

On 8/20/26 7:51 AM, Vinayak Katoch wrote:
> Reserve memory region for audio PD dynamic loading and remote heap
> requirements. Add the required VMID list for memory ownership
> transfers.
> 
> Tested-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
> Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD
  2026-08-20  5:51 [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD Vinayak Katoch
  2026-08-20  8:32 ` Abel Vesa
  2026-08-24 14:14 ` Konrad Dybcio
@ 2026-08-28  8:37 ` Loic Poulain
  2 siblings, 0 replies; 4+ messages in thread
From: Loic Poulain @ 2026-08-28  8:37 UTC (permalink / raw)
  To: Vinayak Katoch
  Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bharath Kumar, Chenna Kesava Raju, Ekansh Gupta,
	linux-arm-msm, devicetree, linux-kernel, Christopher Obbard,
	Dmitry Baryshkov

Hi Vinayak,

On Thu, Aug 20, 2026 at 7:52 AM Vinayak Katoch
<vinayak.katoch@oss.qualcomm.com> wrote:
>
> Reserve memory region for audio PD dynamic loading and remote heap
> requirements. Add the required VMID list for memory ownership
> transfers.

My understanding is that this patch fixes an unexpected reboot during
the launch of the audiodp service? If so, should we add a Fixes: tag
to make it eligible for stable?

>
> Tested-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
> Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
> ---
> Changes in v3:
> - Changed alloc-ranges to <0x0 0x0 0x1 0x0> to cover the full 32-bit address space.
> - Collected Reviewed-by/Tested-by tags.
> - Link to v2: https://lore.kernel.org/r/20260807-agatti-audio-v2-1-3959b1ab8059@oss.qualcomm.com
>
> Changes in v2:
> - Fixed VMID list alignment.
> - Link to v1: https://lore.kernel.org/r/20260806-agatti-audio-v1-1-cd6766cc9ccb@oss.qualcomm.com
> ---
>  arch/arm64/boot/dts/qcom/agatti.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/agatti.dtsi b/arch/arm64/boot/dts/qcom/agatti.dtsi
> index 590bd2432d85..d010ef7fdf8c 100644
> --- a/arch/arm64/boot/dts/qcom/agatti.dtsi
> +++ b/arch/arm64/boot/dts/qcom/agatti.dtsi
> @@ -381,6 +381,14 @@ rmtfs_mem: memory@89b01000 {
>                         qcom,client-id = <1>;
>                         qcom,vmid = <QCOM_SCM_VMID_MSS_MSA QCOM_SCM_VMID_NAV>;
>                 };
> +
> +               adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap {
> +                       compatible = "shared-dma-pool";
> +                       alloc-ranges = <0x0 0x0 0x1 0x0>;
> +                       reusable;
> +                       alignment = <0x0 0x400000>;
> +                       size = <0x0 0x800000>;
> +               };
>         };
>
>         smp2p-adsp {
> @@ -2348,6 +2356,9 @@ fastrpc {
>                                         compatible = "qcom,fastrpc";
>                                         qcom,glink-channels = "fastrpcglink-apps-dsp";
>                                         label = "adsp";
> +                                       memory-region = <&adsp_rpc_remote_heap_mem>;
> +                                       qcom,vmids = <QCOM_SCM_VMID_LPASS
> +                                                     QCOM_SCM_VMID_ADSP_HEAP>;
>
>                                         qcom,non-secure-domain;
>
>
> ---
> base-commit: 1701fda2f58e345c050f4309971bdc07cd6146ba
> change-id: 20260806-agatti-audio-357bcd74ae9c
>
> Best regards,
> --
> Vinayak Katoch <vinayak.katoch@oss.qualcomm.com>
>
>

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

end of thread, other threads:[~2026-08-28  8:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20  5:51 [PATCH v3] arm64: dts: qcom: agatti: Add memory-region for audio PD Vinayak Katoch
2026-08-20  8:32 ` Abel Vesa
2026-08-24 14:14 ` Konrad Dybcio
2026-08-28  8:37 ` Loic Poulain

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®