[PATCH v2 0/3] arm64: dts: qcom: Mark RPM message RAM as no-memory-wc
From: Vishnu Santhosh
Date: Mon Nov 23 2026 - 01:19:21 EST
The RPM message RAM is shared with other subsystems, and parts of it
are not accessible to the APSS. On SoCs where it is described with the
"mmio-sram" compatible, the SRAM driver maps it as write-combined
(Normal Non-cacheable) memory. This allows speculative reads into the
protected parts, which results in XPU violations when Linux runs at
EL2 (KVM with VHE), where there is no stage-2 translation. When Linux
runs at EL1 under Gunyah, Gunyah maps the region as Device memory at
stage-2, and the stricter stage-2 memory type hides the issue.
Mark the region as no-memory-wc on the SoCs that describe it with
"mmio-sram": Shikra, Agatti and SM6375. The XPU violations were
observed on Shikra.
A similar issue was fixed for the Tegra SYSRAM in commit 61192a9d8a63
("arm64: tegra: Mark BPMP channels as no-memory-wc"):
https://lore.kernel.org/all/20220622132300.1746201-2-cyndis@xxxxxxxx/
Signed-off-by: Vishnu Santhosh <vishnu.santhosh@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Explain in the Shikra commit text why the issue is seen at EL2 and
not under Gunyah (Mukesh)
- Add the same fix for Agatti and SM6375 (Mukesh)
- Link to v1: https://lore.kernel.org/r/20261117-rpm-memory-non-wc-v1-1-e246fc6bc66c@xxxxxxxxxxxxxxxx
---
Vishnu Santhosh (3):
arm64: dts: qcom: shikra: Mark RPM message RAM as no-memory-wc
arm64: dts: qcom: agatti: Mark RPM message RAM as no-memory-wc
arm64: dts: qcom: sm6375: Mark RPM message RAM as no-memory-wc
arch/arm64/boot/dts/qcom/agatti.dtsi | 3 +++
arch/arm64/boot/dts/qcom/shikra.dtsi | 2 ++
arch/arm64/boot/dts/qcom/sm6375.dtsi | 3 +++
3 files changed, 8 insertions(+)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261117-rpm-memory-non-wc-c93a6ff3e432
Best regards,
--
Vishnu Santhosh <vishnu.santhosh@xxxxxxxxxxxxxxxx>