mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: qcom: Mark RPM message RAM as no-memory-wc
@ 2026-11-23  6:18 Vishnu Santhosh
  2026-11-23  6:18 ` [PATCH v2 1/3] arm64: dts: qcom: shikra: " Vishnu Santhosh
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vishnu Santhosh @ 2026-11-23  6:18 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Raviteja Laggyshetty, Imran Shaik, Xueyao An,
	Sneh Mankad, Monish Chunara, Abel Vesa
  Cc: Komal Bajaj, Rakesh Kota, Konrad Dybcio, Mukesh Ojha,
	Kumar Patro, linux-arm-msm, devicetree, linux-kernel,
	Vishnu Santhosh

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@kapsi.fi/

Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>
---
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@oss.qualcomm.com

---
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@oss.qualcomm.com>


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

end of thread, other threads:[~2026-11-23 16:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  6:18 [PATCH v2 0/3] arm64: dts: qcom: Mark RPM message RAM as no-memory-wc Vishnu Santhosh
2026-11-23  6:18 ` [PATCH v2 1/3] arm64: dts: qcom: shikra: " Vishnu Santhosh
2026-11-23 15:23   ` Konrad Dybcio
2026-11-23 16:30   ` Mukesh Ojha
2026-11-23  6:18 ` [PATCH v2 2/3] arm64: dts: qcom: agatti: " Vishnu Santhosh
2026-11-23 15:23   ` Konrad Dybcio
2026-11-23 16:31   ` Mukesh Ojha
2026-11-23  6:18 ` [PATCH v2 3/3] arm64: dts: qcom: sm6375: " Vishnu Santhosh
2026-11-23 15:23   ` Konrad Dybcio
2026-11-23 16:32   ` Mukesh Ojha

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®