arm64: dts: qcom: msm8998: enable adreno_smmu by default
PATCH v2 1/1 arm64: dts: qcom: msm8998: enable adreno_smmu by default
15 qcom platform DTSI files define an adreno_smmu node. msm8998 is the only one with adreno_smmu disabled by default.
There's no reason why this SMMU should be disabled by default, it doesn't need any further configuration.
Bring msm8998 in line with the 14 other platforms.
This fixes GPU init failing with ENODEV:msm_dpu c901000.display-controller: failed to load adreno gpumsm_dpu c901000.display-controller: failed to bind 5000000.gpu (ops a3xx_ops): -19
---
New in v2: rewrote commit message with input from Martin, Bryan, Luca
Supersedes: <[email protected]>
Maintainers, feel free to drop the Fixes tag.
Failure log:
[ 2.756363] [drm:adreno_bind] Found GPU: 5.4.0.1 [ 2.767183] [drm:a5xx_gpu_init] [ 2.767422] [drm:adreno_gpu_init] fast_rate=710000097, slow_rate=27000000 [ 3.003869] [drm:msm_gpu_init] ebi1_clk: fffffffffffffffe [ 3.004002] adreno 5000000.gpu: supply vdd not found, using dummy regulator [ 3.008463] [drm:msm_gpu_init] gpu_reg: ffff0000819e4000 [ 3.015105] adreno 5000000.gpu: supply vddcx not found, using dummy regulator [ 3.020702] [drm:msm_gpu_init] gpu_cx: ffff0000819e4180 [ 3.028173] [drm:adreno_iommu_create_address_space] [ 3.054552] [drm:msm_gpu_init] gpu->aspace=ffffffffffffffed [ 3.058112] [drm:a5xx_destroy] 5.4.0.1 [ 3.065922] [drm:msm_gpu_cleanup] 5.4.0.1 [ 3.074237] msm_dpu c901000.display-controller: failed to load adreno gpu [ 3.082412] msm_dpu c901000.display-controller: failed to bind 5000000.gpu (ops a3xx_ops): -19 [ 3.088342] msm_dpu c901000.display-controller: [drm:drm_managed_release] drmres release begin ... [ 3.197694] [drm:drm_managed_release] drmres release end [ 3.204009] msm_dpu c901000.display-controller: adev bind failed: -19 --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8998.dtsi +0 -1
@@ -1580,7 +1580,6 @@ adreno_smmu: iommu@5040000 { * SoC VDDMX RPM Power Domain in the Adreno driver. */ power-domains = <&gpucc GPU_GX_GDSC>; - status = "disabled"; }; gpucc: clock-controller@5065000 {
Signature · 1 line
2.34.1
Quoted 9 lines · Marc Gonzalez
15 qcom platform DTSI files define an
adreno_smmunode. msm8998 is the only one withadreno_smmudisabled by default.There's no reason why this SMMU should be disabled by default, it doesn't need any further configuration.
Bring msm8998 in line with the 14 other platforms.
This fixes GPU init failing with ENODEV:
Nit: I'd specialize this to:
"This saves every MSM8998 board DTS from having to enable adreno_smmu when enabling the Adreno GPU node, which leads to the following unclear probe failure when forgotten about:"
But no need to send a v3 for that.
Quoted 2 lines
msm_dpuc901000.display-controller: failed to load adreno gpumsm_dpuc901000.display-controller: failed to bind 5000000.gpu (opsa3xx_ops): -19
And as a more general discussion, which is not really relevant to have your commit message, we could have a separate patch adding an error message detailing **where** this -19 came from. In this case create_address_space().
Quoted 3 lines
Fixes 87cd46d68aeac8 ("Configure Adreno GPU and related IOMMU")Signed-off-by Marc Gonzalez <[email protected]>Reviewed-by Bryan O'Donoghue <[email protected]>
Quoted 2 lines
---
New in v2: rewrote commit message with input from Martin, Bryan, Luca
Thanks!
Quoted 3 lines
Supersedes: <[email protected]>
Maintainers, feel free to drop the Fixes tag.
For context, I don't think the original patch was necessarily wrong in disabling this node, as any node using it (adreno_gpu) is also disabled by default. It is however less consistent with other DTSI, which don't require every board DTS to re-enable adreno_smmu.
- Marijn
Quoted 38 lines
Failure log:
[ 2.756363] [drm:adreno_bind] Found GPU: 5.4.0.1 [ 2.767183] [drm:a5xx_gpu_init] [ 2.767422] [drm:adreno_gpu_init] fast_rate=710000097, slow_rate=27000000 [ 3.003869] [drm:msm_gpu_init] ebi1_clk: fffffffffffffffe [ 3.004002] adreno 5000000.gpu: supply vdd not found, using dummy regulator [ 3.008463] [drm:msm_gpu_init] gpu_reg: ffff0000819e4000 [ 3.015105] adreno 5000000.gpu: supply vddcx not found, using dummy regulator [ 3.020702] [drm:msm_gpu_init] gpu_cx: ffff0000819e4180 [ 3.028173] [drm:adreno_iommu_create_address_space] [ 3.054552] [drm:msm_gpu_init] gpu->aspace=ffffffffffffffed [ 3.058112] [drm:a5xx_destroy] 5.4.0.1 [ 3.065922] [drm:msm_gpu_cleanup] 5.4.0.1 [ 3.074237] msm_dpu c901000.display-controller: failed to load adreno gpu [ 3.082412] msm_dpu c901000.display-controller: failed to bind 5000000.gpu (ops a3xx_ops): -19 [ 3.088342] msm_dpu c901000.display-controller: [drm:drm_managed_release] drmres release begin ... [ 3.197694] [drm:drm_managed_release] drmres release end [ 3.204009] msm_dpu c901000.display-controller: adev bind failed: -19 --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm64/boot/dts/qcom/msm8998.dtsi +0
-1@@ -1580,7 +1580,6 @@ adreno_smmu: iommu@5040000 { * SoC VDDMX RPM Power Domain in the Adreno driver. */ power-domains = <&gpucc GPU_GX_GDSC>; - status = "disabled"; }; gpucc: clock-controller@5065000 {Signature · 1 line
2.34.1
Quoted 8 lines · Marc Gonzalez
15 qcom platform DTSI files define an
adreno_smmunode. msm8998 is the only one withadreno_smmudisabled by default.There's no reason why this SMMU should be disabled by default, it doesn't need any further configuration.
Bring msm8998 in line with the 14 other platforms.
Quoted 7 lines
This fixes GPU init failing with ENODEV:
msm_dpuc901000.display-controller: failed to load adreno gpumsm_dpuc901000.display-controller: failed to bind 5000000.gpu (opsa3xx_ops): -19Fixes 87cd46d68aeac8 ("Configure Adreno GPU and related IOMMU")Signed-off-by Marc Gonzalez <[email protected]>Reviewed-by Bryan O'Donoghue <[email protected]>
Quoted 9 lines · Marc Gonzalez
15 qcom platform DTSI files define an
adreno_smmunode. msm8998 is the only one withadreno_smmudisabled by default.There's no reason why this SMMU should be disabled by default, it doesn't need any further configuration.
Bring msm8998 in line with the 14 other platforms.
[...]
Applied, thanks!
[1/1] arm64: dts: qcom: msm8998: enable adreno_smmu by default
commit: 98a0c4f2278b4d6c1c7722735c20b2247de6293f
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>