mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID
@ 2026-10-29 16:14 Xilin Wu
  2026-10-30 12:54 ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Xilin Wu @ 2026-10-29 16:14 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 can issue memory transactions using stream ID
0x2a07. With only the 0x2a00 SID described in the IOMMU list, those
transactions are not attached to the Iris IOMMU domain and can trigger a
non-secure SMMU global fault during video decode.

This was observed while decoding H.264, where the faulting address fell
inside a DPB buffer mapped for the Iris device.

Add the missing 0x2a07 stream ID so both Iris access paths are mapped by
the SMMU.

Note that the issue was observed using Gen2 HFI firmware.

Signed-off-by: Xilin Wu <sophon@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 d17475c3e66c..4ab01ef9ac05 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -4268,7 +4268,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: 151a134a4e6ec66f69db8750c66006f5207f7a9d
change-id: 20261030-sc8280xp-iris-iommu-aaf3fb5774c8

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


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

* Re: [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID
  2026-10-29 16:14 [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID Xilin Wu
@ 2026-10-30 12:54 ` Konrad Dybcio
  2026-11-27  8:31   ` Xilin Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2026-10-30 12:54 UTC (permalink / raw)
  To: Xilin Wu, Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, dragon

On 10/29/26 5:14 PM, Xilin Wu wrote:
> The Iris VPU on SC8280XP can issue memory transactions using stream ID
> 0x2a07. With only the 0x2a00 SID described in the IOMMU list, those
> transactions are not attached to the Iris IOMMU domain and can trigger a
> non-secure SMMU global fault during video decode.
> 
> This was observed while decoding H.264, where the faulting address fell
> inside a DPB buffer mapped for the Iris device.
> 
> Add the missing 0x2a07 stream ID so both Iris access paths are mapped by
> the SMMU.
> 
> Note that the issue was observed using Gen2 HFI firmware.
> 
> Signed-off-by: Xilin Wu <sophon@radxa.com>
> ---

Any chance you're running into this?

https://lore.kernel.org/linux-arm-msm/20260926-vpu_iommu_iova_handling-v5-0-0322ca5dc10c@oss.qualcomm.com/

Konrad

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

* Re: [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID
  2026-10-30 12:54 ` Konrad Dybcio
@ 2026-11-27  8:31   ` Xilin Wu
  2026-11-27 14:21     ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Xilin Wu @ 2026-11-27  8:31 UTC (permalink / raw)
  To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, dragon

On 10/30/2026 8:54 PM, Konrad Dybcio wrote:
> On 10/29/26 5:14 PM, Xilin Wu wrote:
>> The Iris VPU on SC8280XP can issue memory transactions using stream ID
>> 0x2a07. With only the 0x2a00 SID described in the IOMMU list, those
>> transactions are not attached to the Iris IOMMU domain and can trigger a
>> non-secure SMMU global fault during video decode.
>>
>> This was observed while decoding H.264, where the faulting address fell
>> inside a DPB buffer mapped for the Iris device.
>>
>> Add the missing 0x2a07 stream ID so both Iris access paths are mapped by
>> the SMMU.
>>
>> Note that the issue was observed using Gen2 HFI firmware.
>>
>> Signed-off-by: Xilin Wu <sophon@radxa.com>
>> ---
> 
> Any chance you're running into this?
> 
> https://lore.kernel.org/linux-arm-msm/20260926-vpu_iommu_iova_handling-v5-0-0322ca5dc10c@oss.qualcomm.com/
> 
> Konrad

Sorry for the late reply. But I don't think so. That series is about 
context faults on the non-pixel stream when an IOVA lands below 
0x25800000. What I see is an unidentified stream fault for SID 0x2a07, 
at an IOVA well above that boundary. This is from the TZ log, captured 
with a minidump:

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

0x2a07 is the VPU's non-secure pixel stream, the counterpart of 0x1947 
on SM8550. The Gen1 firmware sends all non-secure traffic through 
0x2a00, but the Gen2 firmware puts pixel traffic on 0x2a07. No SMR 
covers that stream today, so TZ resets the SoC.

I'll send a v2 with a clearer commit message. When SC8280XP moves to the 
context bank subnodes, 0x2a07 would go into the pixel node.

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

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

* Re: [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID
  2026-11-27  8:31   ` Xilin Wu
@ 2026-11-27 14:21     ` Konrad Dybcio
  0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-27 14:21 UTC (permalink / raw)
  To: sophon, Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, dragon

On 11/27/26 9:31 AM, Xilin Wu wrote:
> On 10/30/2026 8:54 PM, Konrad Dybcio wrote:
>> On 10/29/26 5:14 PM, Xilin Wu wrote:
>>> The Iris VPU on SC8280XP can issue memory transactions using stream ID
>>> 0x2a07. With only the 0x2a00 SID described in the IOMMU list, those
>>> transactions are not attached to the Iris IOMMU domain and can trigger a
>>> non-secure SMMU global fault during video decode.
>>>
>>> This was observed while decoding H.264, where the faulting address fell
>>> inside a DPB buffer mapped for the Iris device.
>>>
>>> Add the missing 0x2a07 stream ID so both Iris access paths are mapped by
>>> the SMMU.
>>>
>>> Note that the issue was observed using Gen2 HFI firmware.
>>>
>>> Signed-off-by: Xilin Wu <sophon@radxa.com>
>>> ---
>>
>> Any chance you're running into this?
>>
>> https://lore.kernel.org/linux-arm-msm/20260926-vpu_iommu_iova_handling-v5-0-0322ca5dc10c@oss.qualcomm.com/
>>
>> Konrad
> 
> Sorry for the late reply. But I don't think so. That series is about context faults on the non-pixel stream when an IOVA lands below 0x25800000. What I see is an unidentified stream fault for SID 0x2a07, at an IOVA well above that boundary. This is from the TZ log, captured with a minidump:
> 
>   SMMU:>> 0x15000000 NonSec Global Fault: NSGFSR=0x80000002, NSGFAR0=0xcfc03000, NSGFSYNR0=0x2, NSGFSYNR1=0x2a072a07, NSCR0=0x280406
>   Fatal Error type: TZBSP_ERR_FATAL_SMMU_FAULT
> 
> 0x2a07 is the VPU's non-secure pixel stream, the counterpart of 0x1947 on SM8550. The Gen1 firmware sends all non-secure traffic through 0x2a00, but the Gen2 firmware puts pixel traffic on 0x2a07. No SMR covers that stream today, so TZ resets the SoC.

0x2a00 is the video non-protected stream
0x2a07 is the video non-protected pixel stream

I believe the subnodes patch will solve your issue too (and also
guard against the iova limitations)

Konrad

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 16:14 [PATCH] arm64: dts: qcom: sc8280xp: add missing Iris IOMMU SID Xilin Wu
2026-10-30 12:54 ` Konrad Dybcio
2026-11-27  8:31   ` Xilin Wu
2026-11-27 14:21     ` Konrad Dybcio

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®