diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2020-09-04 05:03:12 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-09-04 22:14:15 +0300 |
commit | 7b3f3948c8b7053d771acc9f79810cc410f5e2e0 (patch) | |
tree | 08c91b30fd090005a27537ec0916abf306602d73 /drivers/gpu/drm/msm | |
parent | 604234f33658cdd72f686be405a99646b397d0b3 (diff) | |
download | linux-7b3f3948c8b7053d771acc9f79810cc410f5e2e0.tar.xz |
drm/msm: Disable preemption on all 5xx targets
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>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index 9e63a190642c..e718f964d590 100644 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -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); |