mbox series

[0/2] qcom: dts: qrb4210-rb2 usb/emmc fixes

Message ID 20240619-rb2-fixes-v1-0-1d2b1d711969@linaro.org (mailing list archive)
Headers show
Series qcom: dts: qrb4210-rb2 usb/emmc fixes | expand

Message

Caleb Connolly June 19, 2024, 8:33 p.m. UTC
Add the missing iommus property on the first sdhc, and set a default
mode for USB role switch. The iommus property in particular is necessary
when running U-Boot as a first-stage bootloader, since it can't rely on
EDK2 to configure the SMMU and crashes with:

[020b9ed0d]TLB Dump Message:Not a valid memory address to dump TLBs for device APPS_TCU or no memory available.
[020b9f533]SMMU GLOBAL TCU NON-SEC FAULT: bit mask=0x00002000
[020b9fb23]SMMU:>> APPS_TCU NonSec Global Fault:
[020b9ff9f] NSGFSR=0x80000002
[020ba0404] NSGFAR=0x00000000bf6c6800
[020ba0909] NSGFSYNR0=0x00000000
[020ba0d1b] NSGFSYNR1=0x00c000c0
[020ba117d] NSGFSYNR2=0x00000000
[020ba15a9] NSCR0=0x00200406

The GFSYNR1 register in particular clues us in to the stream ID of the
peripherals, in this case 0x00c0 corresponds to the first SDHC.

---
Caleb Connolly (2):
      arm64: dts: qcom: sm6115: add iommu for sdhc_1
      arm64: dts: qcom: qrb4210-rb2: set role-switch-default-mode

 arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 4 ++++
 arch/arm64/boot/dts/qcom/sm6115.dtsi     | 1 +
 2 files changed, 5 insertions(+)
---
change-id: 20240619-rb2-fixes-94f24a0908d1
base-commit: 63072efe1495d9d42546b10b46f2c063ec8db3ce

// Caleb (they/them)

Comments

Bjorn Andersson June 21, 2024, 6:11 a.m. UTC | #1
On Wed, 19 Jun 2024 22:33:37 +0200, Caleb Connolly wrote:
> Add the missing iommus property on the first sdhc, and set a default
> mode for USB role switch. The iommus property in particular is necessary
> when running U-Boot as a first-stage bootloader, since it can't rely on
> EDK2 to configure the SMMU and crashes with:
> 
> [020b9ed0d]TLB Dump Message:Not a valid memory address to dump TLBs for device APPS_TCU or no memory available.
> [020b9f533]SMMU GLOBAL TCU NON-SEC FAULT: bit mask=0x00002000
> [020b9fb23]SMMU:>> APPS_TCU NonSec Global Fault:
> [020b9ff9f] NSGFSR=0x80000002
> [020ba0404] NSGFAR=0x00000000bf6c6800
> [020ba0909] NSGFSYNR0=0x00000000
> [020ba0d1b] NSGFSYNR1=0x00c000c0
> [020ba117d] NSGFSYNR2=0x00000000
> [020ba15a9] NSCR0=0x00200406
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: qcom: sm6115: add iommu for sdhc_1
      commit: 94ea124aeefe1ef271263f176634034e22c49311

Best regards,