Devicetree
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: qcom: sc8280xp: Add missing Iris pixel stream ID
@ 2026-11-27  8:32 Xilin Wu
  2026-11-27  8:41 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Xilin Wu @ 2026-11-27  8:32 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, dragon, Xilin Wu

The Iris VPU on SC8280XP uses separate stream IDs for its non-secure
non-pixel and pixel traffic, 0x2a00 and 0x2a07 respectively. This is
the same split as 0x1940/0x1947 on SM8550 and later platforms. Only
0x2a00 is described today.

The Gen1 HFI firmware sends all non-secure traffic through 0x2a00, so
this went unnoticed. The Gen2 HFI firmware puts pixel traffic, such as
writes to decoded picture buffers, on 0x2a07. No SMR matches that
stream, so the SMMU raises an unidentified stream fault, which TZ
treats as fatal and resets the SoC:

  SMMU:>> 0x15000000 NonSec Global Fault: NSGFSR=0x80000002, NSGFAR1=0x0, NSGFAR0=0xcfc03000, NSGFSYNR0=0x2, NSGFSYNR1=0x2a072a07, NSGFSYNR2=0x0, NSCR0=0x280406
  Fatal Error type: TZBSP_ERR_FATAL_SMMU_FAULT

Add the pixel stream ID so both streams are attached to the Iris
device.

Signed-off-by: Xilin Wu <sophon@radxa.com>
---
Changes in v2:
- Explain that 0x2a07 is the non-secure pixel stream and why only the
  Gen2 firmware uses it
- Quote the TZ log of the fault
- Reword the subject
- Rebase on next-20261126
- Link to v1: https://patch.msgid.link/20261030-sc8280xp-iris-iommu-v1-1-1e3fb8562b3d@radxa.com
---
 arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index 703b4f4e2059..328f64af863a 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -4266,7 +4266,8 @@ &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
 					     "video-mem";
 
 			operating-points-v2 = <&iris_opp_table>;
-			iommus = <&apps_smmu 0x2a00 0x400>;
+			iommus = <&apps_smmu 0x2a00 0x400>,
+				 <&apps_smmu 0x2a07 0x400>;
 			memory-region = <&pil_video_mem>;
 
 			status = "disabled";

---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261030-sc8280xp-iris-iommu-aaf3fb5774c8

Best regards,
--  
Xilin Wu <sophon@radxa.com>


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

* Re: [PATCH v2] arm64: dts: qcom: sc8280xp: Add missing Iris pixel stream ID
  2026-11-27  8:32 [PATCH v2] arm64: dts: qcom: sc8280xp: Add missing Iris pixel stream ID Xilin Wu
@ 2026-11-27  8:41 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-27  8:41 UTC (permalink / raw)
  To: Xilin Wu; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm64: dts: qcom: sc8280xp iris iommus exceeds sm8250-venus
  schema maxItems
- [Low] arm64: dts: qcom: sc8280xp: missing Fixes trailer for commit
  3a52eef16b97
--

commit bd0038d3876f2b669877bf5936ce392d140b4568
Author: Xilin Wu <sophon@radxa.com>

> arm64: dts: qcom: sc8280xp: Add missing Iris pixel stream ID
>
> The Iris VPU on SC8280XP uses separate stream IDs for its non-secure
> non-pixel and pixel traffic, 0x2a00 and 0x2a07 respectively. This is
> the same split as 0x1940/0x1947 on SM8550 and later platforms. Only
> 0x2a00 is described today.
>
> The Gen1 HFI firmware sends all non-secure traffic through 0x2a00, so
> this went unnoticed. The Gen2 HFI firmware puts pixel traffic, such as
> writes to decoded picture buffers, on 0x2a07. No SMR matches that
> stream, so the SMMU raises an unidentified stream fault, which TZ
> treats as fatal and resets the SoC:
>
>   SMMU:>> 0x15000000 NonSec Global Fault: NSGFSR=0x80000002, NSGFAR1=0x0, NSGFAR0=0xcfc03000, NSGFSYNR0=0x2, NSGFSYNR1=0x2a072a07, NSGFSYNR2=0x0, NSCR0=0x280406
>   Fatal Error type: TZBSP_ERR_FATAL_SMMU_FAULT
>
> Add the pixel stream ID so both streams are attached to the Iris
> device.
>
> Signed-off-by: Xilin Wu <sophon@radxa.com>

[Severity: Low]
Since this fixes the incomplete stream ID description on the SC8280XP
Iris node, should this include a Fixes tag?

  Fixes: 3a52eef16b97 ("arm64: dts: qcom: sc8280xp: Add Iris core")

> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> index 703b4f4e20598..328f64af863a5 100644
> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
> @@ -4266,7 +4266,8 @@ &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>,
>  					     "video-mem";
>  
>  			operating-points-v2 = <&iris_opp_table>;
> -			iommus = <&apps_smmu 0x2a00 0x400>;
> +			iommus = <&apps_smmu 0x2a00 0x400>,
> +				 <&apps_smmu 0x2a07 0x400>;

[Severity: Low]
Does adding a second iommus entry cause dtbs_check validation to fail
against Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml?

The iris node matches "qcom,sc8280xp-iris", "qcom,sm8250-venus", and
that binding currently restricts iommus to maxItems: 1.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-sc8280xp-iris-iommu-v2-1-34692fff579f@radxa.com?part=1

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

end of thread, other threads:[~2026-11-27  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  8:32 [PATCH v2] arm64: dts: qcom: sc8280xp: Add missing Iris pixel stream ID Xilin Wu
2026-11-27  8:41 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox