From: Yijie Yang <yijie.yang@oss.qualcomm.com>
To: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>,
Jingyi Wang <jingyi.wang@oss.qualcomm.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
Vikram Sharma <vikram.sharma@oss.qualcomm.com>,
Tony Jose <tjose@qti.qualcomm.com>
Subject: Re: [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili
Date: Thu, 3 Dec 2026 10:23:36 +0800 [thread overview]
Message-ID: <3eba4e2d-a005-45e4-b85e-3efc5da19efd@oss.qualcomm.com> (raw)
In-Reply-To: <20261202-b4-qcom-gunyah-hyp-reserved-memory-v1-0-c8c894a2ef68@oss.qualcomm.com>
On 12/2/2026 11:55 PM, Nihal Kumar Gupta wrote:
> Qualcomm Hawi and Maili MTP are susceptible to synchronous external
> aborts (ESR=0x96000010) during early boot while
> fdt_scan_reserved_mem() is zeroing its reserved memory metadata:
>
> Internal error: synchronous external abort: 0000000096000010 [#1] SMP
> pc : __pi_memset_generic+0x16c/0x188
> lr : fdt_scan_reserved_mem+0x2ec/0x910
>
> These faults are caused by the kernel inadvertently accessing
> hypervisor-owned memory that is not properly marked as reserved.
>
> Add the missing carveouts on both platforms.
I'd rather not add the hypervisor region (0x80000000–0x80dfffff) to the
kernel DT. The firmware owns that region and already describes it. UEFI
leaves it out of its memory map, so a kernel booted through UEFI (EFI
stub / UKI) never uses it.
The crash only happens on the legacy ABL boot path, because ABL builds
/memory from the RAM partition table and ignores UEFI's memory map. A
copy in the DT would also need updating whenever the firmware layout
changes.
The same crash pattern is discussed upstream here:
https://lore.kernel.org/linux-devicetree/29cfb3a7-81c2-4c52-913b-cf72e19ff0d8@samsung.com/
I suggest we boot the kernel through UEFI instead.
>
> Signed-off-by: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>
> ---
> Nihal Kumar Gupta (2):
> arm64: dts: qcom: hawi: Reserve hypervisor-owned memory
> arm64: dts: qcom: maili: Reserve hypervisor-owned memory
>
> arch/arm64/boot/dts/qcom/hawi.dtsi | 10 ++++++++++
> arch/arm64/boot/dts/qcom/maili.dtsi | 10 ++++++++++
> 2 files changed, 20 insertions(+)
> ---
> base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
> change-id: 20261202-b4-qcom-gunyah-hyp-reserved-memory-09da35c04612
>
> Best regards,
--
Best Regards,
Yijie
prev parent reply other threads:[~2026-12-03 2:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 15:55 [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili Nihal Kumar Gupta
2026-12-02 15:55 ` [PATCH 1/2] arm64: dts: qcom: hawi: Reserve hypervisor-owned memory Nihal Kumar Gupta
2026-12-02 15:55 ` [PATCH 2/2] arm64: dts: qcom: maili: " Nihal Kumar Gupta
2026-12-03 2:23 ` Yijie Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3eba4e2d-a005-45e4-b85e-3efc5da19efd@oss.qualcomm.com \
--to=yijie.yang@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=bjorn.andersson@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jingyi.wang@oss.qualcomm.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=mukesh.ojha@oss.qualcomm.com \
--cc=nihal.gupta@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=tjose@qti.qualcomm.com \
--cc=vikram.sharma@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox