]> Git Repo - J-linux.git/commitdiff
drm/msm/a6xx: Bail out early if setting GPU OOB fails
authorKonrad Dybcio <[email protected]>
Tue, 8 Aug 2023 21:02:45 +0000 (23:02 +0200)
committerRob Clark <[email protected]>
Thu, 17 Aug 2023 17:09:54 +0000 (10:09 -0700)
If the GMU can't guarantee the required resources are up, trying to
bring up the GPU is a lost cause. Return early if setting GPU OOB
fails.

Tested-by: Neil Armstrong <[email protected]> # on SM8550-QRD
Tested-by: Dmitry Baryshkov <[email protected]> # sm8450
Signed-off-by: Konrad Dybcio <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/551830/
Signed-off-by: Rob Clark <[email protected]>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c

index 6dd6d72bcd860852d738648ebe50fc59b8694ee2..d4e85e24002fb7dbd83874f4a736d4294974a059 100644 (file)
@@ -1201,7 +1201,9 @@ static int hw_init(struct msm_gpu *gpu)
 
        if (!adreno_has_gmu_wrapper(adreno_gpu)) {
                /* Make sure the GMU keeps the GPU on while we set it up */
-               a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
+               ret = a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
+               if (ret)
+                       return ret;
        }
 
        /* Clear GBIF halt in case GX domain was not collapsed */
This page took 0.0513169999999999 seconds and 4 git commands to generate.