All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili
@ 2026-12-02 15:55 Nihal Kumar Gupta
  2026-12-02 15:55 ` [PATCH 1/2] arm64: dts: qcom: hawi: Reserve hypervisor-owned memory Nihal Kumar Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nihal Kumar Gupta @ 2026-12-02 15:55 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Mukesh Ojha, Yijie Yang,
	Jingyi Wang
  Cc: Konrad Dybcio, Bjorn Andersson, linux-arm-msm, devicetree,
	Vikram Sharma, Tony Jose, Nihal Kumar Gupta

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.

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,
-- 
Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>


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

* [PATCH 1/2] arm64: dts: qcom: hawi: Reserve hypervisor-owned memory
  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 ` Nihal Kumar Gupta
  2026-12-02 15:55 ` [PATCH 2/2] arm64: dts: qcom: maili: " Nihal Kumar Gupta
  2026-12-03  2:23 ` [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili Yijie Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Nihal Kumar Gupta @ 2026-12-02 15:55 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Mukesh Ojha, Yijie Yang,
	Jingyi Wang
  Cc: Konrad Dybcio, Bjorn Andersson, linux-arm-msm, devicetree,
	Vikram Sharma, Tony Jose, Nihal Kumar Gupta

Qualcomm Hawi MTP is susceptible to a synchronous external abort
(ESR=0x96000010) during early boot while fdt_scan_reserved_mem() is
zeroing its reserved memory metadata. This fault is caused by the kernel
inadvertently accessing hypervisor-owned memory that is not properly
marked as reserved.

Add the missing no-map reserved-memory regions.

Fixes: 6045db811eb4 ("arm64: dts: qcom: Introduce Hawi SoC")
Signed-off-by: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/hawi.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/hawi.dtsi b/arch/arm64/boot/dts/qcom/hawi.dtsi
index 77d704fa6cf74a1471a8cd25102f777aeae32000..35c15268985beee5048edcaa28a145af8ffb4806 100644
--- a/arch/arm64/boot/dts/qcom/hawi.dtsi
+++ b/arch/arm64/boot/dts/qcom/hawi.dtsi
@@ -320,6 +320,16 @@ reserved-memory {
 		#size-cells = <2>;
 		ranges;
 
+		gunyah_hyp_mem: gunyah-hyp@80000000 {
+			reg = <0x0 0x80000000 0x0 0xe00000>;
+			no-map;
+		};
+
+		cpusys_vm_mem: cpusys-vm-mem@80e00000 {
+			reg = <0x0 0x80e00000 0x0 0x400000>;
+			no-map;
+		};
+
 		cpucp_slc_mem_sub: cpucp@81230000 {
 			reg = <0x0 0x81230000 0x0 0x1000>;
 			no-map;

-- 
2.34.1


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

* [PATCH 2/2] arm64: dts: qcom: maili: Reserve hypervisor-owned memory
  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 ` Nihal Kumar Gupta
  2026-12-03  2:23 ` [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili Yijie Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Nihal Kumar Gupta @ 2026-12-02 15:55 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Mukesh Ojha, Yijie Yang,
	Jingyi Wang
  Cc: Konrad Dybcio, Bjorn Andersson, linux-arm-msm, devicetree,
	Vikram Sharma, Tony Jose, Nihal Kumar Gupta

Qualcomm Maili MTP is susceptible to a synchronous external abort
(ESR=0x96000010) during early boot while fdt_scan_reserved_mem() is
zeroing its reserved memory metadata. This fault is caused by the kernel
inadvertently accessing hypervisor-owned memory that is not properly
marked as reserved.

Add the missing no-map reserved-memory regions.

Fixes: ba8ab2e12f9d ("arm64: dts: qcom: Introduce Maili SoC")
Signed-off-by: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/maili.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/maili.dtsi b/arch/arm64/boot/dts/qcom/maili.dtsi
index 0aa5bd4ea21c3aad928fb89d5d7c454e4e120f93..67fec15f6549c3d6ab40d0f5827205cc74d12d73 100644
--- a/arch/arm64/boot/dts/qcom/maili.dtsi
+++ b/arch/arm64/boot/dts/qcom/maili.dtsi
@@ -317,6 +317,16 @@ reserved-memory {
 		#size-cells = <2>;
 		ranges;
 
+		gunyah_hyp_mem: gunyah-hyp@80000000 {
+			reg = <0x0 0x80000000 0x0 0xe00000>;
+			no-map;
+		};
+
+		cpusys_vm_mem: cpusys-vm-mem@80e00000 {
+			reg = <0x0 0x80e00000 0x0 0x400000>;
+			no-map;
+		};
+
 		cpucp_slc_mem_sub: cpucp@81230000 {
 			reg = <0x0 0x81230000 0x0 0x1000>;
 			no-map;

-- 
2.34.1


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

* Re: [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Yijie Yang @ 2026-12-03  2:23 UTC (permalink / raw)
  To: Nihal Kumar Gupta, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Mukesh Ojha,
	Jingyi Wang
  Cc: Konrad Dybcio, Bjorn Andersson, linux-arm-msm, devicetree,
	Vikram Sharma, Tony Jose



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


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

end of thread, other threads:[~2026-12-03  2:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 0/2] arm64: dts: qcom: Reserve hypervisor-owned memory on Qualcomm Hawi and Maili Yijie Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.