Re: [PATCH v2] arm64: dts: qcom: hamoa: Add remoteproc in EL2 device trees
From: Bjorn Andersson
Date: Wed Mar 04 2026 - 15:19:43 EST
On Sun, Feb 01, 2026 at 09:54:36PM -0800, Xin Liu wrote:
> All the existing variants Hamoa boards are using Gunyah hypervisor
> which means that, so far, Linux-based OS could only boot in EL1 on
> those devices. However, it is possible for us to boot Linux at EL2
> on these devices [1].
>
Lots of people are running Linux at EL2 on their Hamoa laptops, but
then there's no PAS. I presume adding iommu properties won't "hurt" in
that case, but can you confirm that with this change remoteproc is fully
working somewhere (i.e. [1] refers to a firmware for which the Glymur
PAS/PIL changes has been backported?)
Regards,
Bjorn
> When running under Gunyah, the remote processor firmware IOMMU streams
> are controlled by Gunyah. However, without Gunyah, the IOMMU is managed
> by the consumer of this DeviceTree. Therefore, describe the firmware
> streams for each remote processor.
>
> Add remoteproc to the EL2 device trees to generate the corresponding
> -el2.dtb files.
>
> [1]
> https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-4/boot-developer-touchpoints.html#uefi
>
> Signed-off-by: Xin Liu <xin.liu@xxxxxxxxxxxxxxxx>
> ---
> Changes in v2:
> - Fix the adsp iommus mask
> - Link to v1 : https://lore.kernel.org/all/20260130073113.3091884-1-xin.liu@xxxxxxxxxxxxxxxx/
>
> arch/arm64/boot/dts/qcom/x1-el2.dtso | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/x1-el2.dtso b/arch/arm64/boot/dts/qcom/x1-el2.dtso
> index 175679be01eb..ee006742d6f3 100644
> --- a/arch/arm64/boot/dts/qcom/x1-el2.dtso
> +++ b/arch/arm64/boot/dts/qcom/x1-el2.dtso
> @@ -52,6 +52,14 @@ &pcie_smmu {
> status = "okay";
> };
>
> +&remoteproc_adsp {
> + iommus = <&apps_smmu 0x1000 0x80>;
> +};
> +
> +&remoteproc_cdsp {
> + iommus = <&apps_smmu 0x0c00 0x0>;
> +};
> +
> /*
> * The "SBSA watchdog" is implemented in software in Gunyah
> * and can't be used when running in EL2.
> --
> 2.43.0
>