Skip to content

Commit 3e90044

Browse files
konradybciorobclark
authored andcommitted
drm/msm/a6xx: Fix some A619 tunables
Adreno 619 expects some tunables to be set differently. Make up for it. Fixes: b7616b5 ("drm/msm/adreno: Add A619 support") Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Akhil P Oommen <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/542782/ Signed-off-by: Rob Clark <[email protected]>
1 parent e7fc939 commit 3e90044

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
@@ -1306,6 +1306,8 @@ static int hw_init(struct msm_gpu *gpu)
13061306
gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00200200);
13071307
else if (adreno_is_a650(adreno_gpu) || adreno_is_a660(adreno_gpu))
13081308
gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00300200);
1309+
else if (adreno_is_a619(adreno_gpu))
1310+
gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00018000);
13091311
else if (adreno_is_a610(adreno_gpu))
13101312
gpu_write(gpu, REG_A6XX_PC_DBG_ECO_CNTL, 0x00080000);
13111313
else
@@ -1323,7 +1325,9 @@ static int hw_init(struct msm_gpu *gpu)
13231325
a6xx_set_ubwc_config(gpu);
13241326

13251327
/* Enable fault detection */
1326-
if (adreno_is_a610(adreno_gpu))
1328+
if (adreno_is_a619(adreno_gpu))
1329+
gpu_write(gpu, REG_A6XX_RBBM_INTERFACE_HANG_INT_CNTL, (1 << 30) | 0x3fffff);
1330+
else if (adreno_is_a610(adreno_gpu))
13271331
gpu_write(gpu, REG_A6XX_RBBM_INTERFACE_HANG_INT_CNTL, (1 << 30) | 0x3ffff);
13281332
else
13291333
gpu_write(gpu, REG_A6XX_RBBM_INTERFACE_HANG_INT_CNTL, (1 << 30) | 0x1fffff);

0 commit comments

Comments
 (0)