[PATCH] drm/msm: log iommu init failure
Marc Gonzalez
mgonzalez at freebox.fr
Wed May 15 15:09:05 UTC 2024
When create_address_space() fails (e.g. when smmu node is disabled)
msm_gpu_init() silently fails:
msm_dpu c901000.display-controller: failed to load adreno gpu
msm_dpu c901000.display-controller: failed to bind 5000000.gpu (ops a3xx_ops): -19
Log create_address_space() failure.
Signed-off-by: Marc Gonzalez <mgonzalez at freebox.fr>
---
drivers/gpu/drm/msm/msm_gpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 655002b21b0d5..f1e692866cc38 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -941,6 +941,7 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
DRM_DEV_INFO(drm->dev, "%s: no IOMMU, fallback to VRAM carveout!\n", name);
else if (IS_ERR(gpu->aspace)) {
ret = PTR_ERR(gpu->aspace);
+ DRM_DEV_ERROR(drm->dev, "could not create address space: %d\n", ret);
goto fail;
}
--
2.34.1
More information about the Freedreno
mailing list