[PATCH] drm/xe: Process message queue upon submission start

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Thu Jun 27 07:20:55 UTC 2024


Stopping submission also stops the drm scheduler message
queue. Hence, when starting the submission, also process
message queue if there is any message ready.

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
---
 drivers/gpu/drm/xe/xe_gpu_scheduler.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.c b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
index e4ad1d6ce1d5..a77a018fd8fe 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.c
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
@@ -82,6 +82,7 @@ void xe_sched_submission_start(struct xe_gpu_scheduler *sched)
 {
 	drm_sched_wqueue_start(&sched->base);
 	queue_work(sched->base.submit_wq, &sched->work_process_msg);
+	xe_sched_process_msg_queue_if_ready(sched);
 }
 
 void xe_sched_submission_stop(struct xe_gpu_scheduler *sched)
-- 
2.43.0



More information about the Intel-xe mailing list