From 8970e4303756b1e12243ae5dbd7526f1654a1b06 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:25 +0100 Subject: [PATCH] Revert "drm/msm/a5xx: disable preemption in submits by default" This reverts commit a5394161bfee3bb7c56d88dd691ec384e89c164e. --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c index 00e591ffc..9ae0e60ec 100755 --- a/drivers/gpu/drm/msm/adreno/a5xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a5xx_gpu.c @@ -143,13 +143,9 @@ static void a5xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit) OUT_PKT7(ring, CP_SET_PROTECTED_MODE, 1); OUT_RING(ring, 1); - /* - * Disable local preemption by default because it requires - * user-space to be aware of it and provide additional handling - * to restore rendering state or do various flushes on switch. - */ + /* Enable local preemption for finegrain preemption */ OUT_PKT7(ring, CP_PREEMPT_ENABLE_LOCAL, 1); - OUT_RING(ring, 0x0); + OUT_RING(ring, 0x1); /* Allow CP_CONTEXT_SWITCH_YIELD packets in the IB2 */ OUT_PKT7(ring, CP_YIELD_ENABLE, 1);