Skip to content

Commit 05a23a7

Browse files
konradybciorobclark
authored andcommitted
drm/msm/a6xx: Remove both GBIF and RBBM GBIF halt on hw init
Currently we're only deasserting REG_A6XX_RBBM_GBIF_HALT, but we also need REG_A6XX_GBIF_HALT to be set to 0. This is typically done automatically on successful GX collapse, but in case that fails, we should take care of it. Also, add a memory barrier to ensure it's gone through before jumping to further initialization. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/542760/ Signed-off-by: Rob Clark <[email protected]>
1 parent 277b967 commit 05a23a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/msm/adreno/a6xx_gpu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,12 @@ static int hw_init(struct msm_gpu *gpu)
11111111
a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
11121112

11131113
/* Clear GBIF halt in case GX domain was not collapsed */
1114-
if (a6xx_has_gbif(adreno_gpu))
1114+
if (a6xx_has_gbif(adreno_gpu)) {
1115+
gpu_write(gpu, REG_A6XX_GBIF_HALT, 0);
11151116
gpu_write(gpu, REG_A6XX_RBBM_GBIF_HALT, 0);
1117+
/* Let's make extra sure that the GPU can access the memory.. */
1118+
mb();
1119+
}
11161120

11171121
gpu_write(gpu, REG_A6XX_RBBM_SECVID_TSB_CNTL, 0);
11181122

0 commit comments

Comments
 (0)