[Intel-xe] [PATCH 01/37] drm/msm: Fix compile error

Rodrigo Vivi rodrigo.vivi at intel.com
Thu Jan 12 22:25:02 UTC 2023


From: Matthew Brost <matthew.brost at intel.com>

When changing the DRM scheduler from a kthread to a work queue the MSM
driver was not updated to reflect this change. Fix this.

Signed-off-by: Matthew Brost <matthew.brost at intel.com>
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c
index 628806423f7d..37cf74a2cbc3 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_device.c
+++ b/drivers/gpu/drm/msm/adreno/adreno_device.c
@@ -660,7 +660,7 @@ static void suspend_scheduler(struct msm_gpu *gpu)
 	 */
 	for (i = 0; i < gpu->nr_rings; i++) {
 		struct drm_gpu_scheduler *sched = &gpu->rb[i]->sched;
-		kthread_park(sched->thread);
+		drm_sched_run_wq_stop(sched);
 	}
 }
 
@@ -670,7 +670,7 @@ static void resume_scheduler(struct msm_gpu *gpu)
 
 	for (i = 0; i < gpu->nr_rings; i++) {
 		struct drm_gpu_scheduler *sched = &gpu->rb[i]->sched;
-		kthread_unpark(sched->thread);
+		drm_sched_run_wq_start(sched);
 	}
 }
 
-- 
2.38.1



More information about the Intel-xe mailing list