Skip to content

Commit 02a726f

Browse files
konradybciorobclark
authored andcommitted
drm/msm/a6xx: Use descriptive bitfield names for CP_PROTECT_CNTL
We have the necessary information, so explain which bit does what. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/543332/ Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent b3ba797 commit 02a726f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,10 @@ static void a6xx_set_cp_protect(struct msm_gpu *gpu)
930930
* protect violation and select the last span to protect from the start
931931
* address all the way to the end of the register address space
932932
*/
933-
gpu_write(gpu, REG_A6XX_CP_PROTECT_CNTL, BIT(0) | BIT(1) | BIT(3));
933+
gpu_write(gpu, REG_A6XX_CP_PROTECT_CNTL,
934+
A6XX_CP_PROTECT_CNTL_ACCESS_PROT_EN |
935+
A6XX_CP_PROTECT_CNTL_ACCESS_FAULT_ON_VIOL_EN |
936+
A6XX_CP_PROTECT_CNTL_LAST_SPAN_INF_RANGE);
934937

935938
for (i = 0; i < count - 1; i++)
936939
gpu_write(gpu, REG_A6XX_CP_PROTECT(i), regs[i]);

0 commit comments

Comments
 (0)