]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/msm/a6xx: Remove CP perfcounter selects from the protected list
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 5 Oct 2018 20:06:05 +0000 (14:06 -0600)
committerRob Clark <robdclark@gmail.com>
Sun, 7 Oct 2018 18:40:28 +0000 (14:40 -0400)
The CP performance counter selects were accidentally marked as protected
so they couldn't be written from PM4 streams. Remove the protection
because user space does have an interest in setting up their own
counters.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c

index e4ac95f20ca7ec4d2828825ca5e8b341c990be39..cdc3d59a659dbae9a5ab827c2d835c6554ab3f7c 100644 (file)
@@ -440,10 +440,8 @@ static int a6xx_hw_init(struct msm_gpu *gpu)
        gpu_write(gpu, REG_A6XX_CP_PROTECT(22), A6XX_PROTECT_RW(0x900, 0x4d));
        gpu_write(gpu, REG_A6XX_CP_PROTECT(23), A6XX_PROTECT_RW(0x98d, 0x76));
        gpu_write(gpu, REG_A6XX_CP_PROTECT(24),
-                       A6XX_PROTECT_RDONLY(0x8d0, 0x23));
-       gpu_write(gpu, REG_A6XX_CP_PROTECT(25),
                        A6XX_PROTECT_RDONLY(0x980, 0x4));
-       gpu_write(gpu, REG_A6XX_CP_PROTECT(26), A6XX_PROTECT_RW(0xa630, 0x0));
+       gpu_write(gpu, REG_A6XX_CP_PROTECT(25), A6XX_PROTECT_RW(0xa630, 0x0));
 
        /* Enable interrupts */
        gpu_write(gpu, REG_A6XX_RBBM_INT_0_MASK, A6XX_INT_MASK);