We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ba797 commit 02a726fCopy full SHA for 02a726f
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
@@ -930,7 +930,10 @@ static void a6xx_set_cp_protect(struct msm_gpu *gpu)
930
* protect violation and select the last span to protect from the start
931
* address all the way to the end of the register address space
932
*/
933
- gpu_write(gpu, REG_A6XX_CP_PROTECT_CNTL, BIT(0) | BIT(1) | BIT(3));
+ 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);
937
938
for (i = 0; i < count - 1; i++)
939
gpu_write(gpu, REG_A6XX_CP_PROTECT(i), regs[i]);
0 commit comments