diff options
author | Konrad Dybcio <konrad.dybcio@somainline.org> | 2021-01-13 19:33:39 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-01-31 11:34:35 -0800 |
commit | 3f2bc3856bf175c751736c7323188a401ad10a0d (patch) | |
tree | beaa1881589280c0df42e2450ad25cc2fd19e3f9 /drivers/gpu/drm/msm/adreno/a5xx_gpu.c | |
parent | drm/msm/a5xx: Disable flat shading optimization (diff) | |
download | wireguard-linux-3f2bc3856bf175c751736c7323188a401ad10a0d.tar.xz wireguard-linux-3f2bc3856bf175c751736c7323188a401ad10a0d.zip |
drm/msm/a5xx: Disable UCHE global filter
Port over the command from downstream to prevent undefined
behaviour.
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a5xx_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index 23fc851756de..7e553d3efeb2 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -754,6 +754,9 @@ static int a5xx_hw_init(struct msm_gpu *gpu) adreno_is_a512(adreno_gpu)) gpu_rmw(gpu, REG_A5XX_RB_DBG_ECO_CNTL, 0, (1 << 9)); + /* Disable UCHE global filter as SP can invalidate/flush independently */ + gpu_write(gpu, REG_A5XX_UCHE_MODE_CNTL, BIT(29)); + /* Enable USE_RETENTION_FLOPS */ gpu_write(gpu, REG_A5XX_CP_CHICKEN_DBG, 0x02000000); |