]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/msm: Disable preemption on all 5xx targets
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 4 Sep 2020 02:03:12 +0000 (20:03 -0600)
committerRob Clark <robdclark@chromium.org>
Fri, 4 Sep 2020 19:14:15 +0000 (12:14 -0700)
Temporarily disable preemption on a5xx targets pending some improvements
to protect the RPTR shadow from being corrupted.

Cc: stable@vger.kernel.org
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c

index 9e63a190642cc490d25e8b55e7fbb738d39311ab..e718f964d5902d462896c8147cf7a6ceef0d3bab 100644 (file)
@@ -1511,7 +1511,8 @@ struct msm_gpu *a5xx_gpu_init(struct drm_device *dev)
 
        check_speed_bin(&pdev->dev);
 
-       ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 4);
+       /* Restricting nr_rings to 1 to temporarily disable preemption */
+       ret = adreno_gpu_init(dev, pdev, adreno_gpu, &funcs, 1);
        if (ret) {
                a5xx_destroy(&(a5xx_gpu->base.base));
                return ERR_PTR(ret);