<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Matt, <br>
    </p>
    <p><br>
    </p>
    <p>Shouldn't this beĀ  <span style="white-space: pre-wrap">DRM_SCHED_PRIORITY_NORMAL ?</span></p>
    <p><span style="white-space: pre-wrap">
</span></p>
    <p><span style="white-space: pre-wrap">Regards,</span></p>
    <p><span style="white-space: pre-wrap">Nirmoy
</span></p>
    <div class="moz-cite-prefix">On 4/12/2024 1:34 PM, Nirmoy Das wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20240412113426.12518-1-nirmoy.das@intel.com">
      <pre class="moz-quote-pre" wrap="">Use enum drm_sched_priority, DRM_SCHED_PRIORITY_KERNEL
instead of 0.

Cc: Matthew Auld <a class="moz-txt-link-rfc2396E" href="mailto:matthew.auld@intel.com"><matthew.auld@intel.com></a>
Cc: Matthew Brost <a class="moz-txt-link-rfc2396E" href="mailto:matthew.brost@intel.com"><matthew.brost@intel.com></a>
Signed-off-by: Nirmoy Das <a class="moz-txt-link-rfc2396E" href="mailto:nirmoy.das@intel.com"><nirmoy.das@intel.com></a>
---
 drivers/gpu/drm/xe/xe_execlist.c      | 3 ++-
 drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c
index dece2785933c..a8c83b36289f 100644
--- a/drivers/gpu/drm/xe/xe_execlist.c
+++ b/drivers/gpu/drm/xe/xe_execlist.c
@@ -341,7 +341,8 @@ static int execlist_exec_queue_init(struct xe_exec_queue *q)
                goto err_free;
 
        sched = &exl->sched;
-       err = drm_sched_entity_init(&exl->entity, 0, &sched, 1, NULL);
+       err = drm_sched_entity_init(&exl->entity, DRM_SCHED_PRIORITY_KERNEL,
+                                   &sched, 1, NULL);
        if (err)
                goto err_sched;
 
diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.h b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
index 10c6bb9c9386..1f712f4fc76a 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.h
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
@@ -63,7 +63,7 @@ static inline int
 xe_sched_entity_init(struct xe_sched_entity *entity,
                     struct xe_gpu_scheduler *sched)
 {
-       return drm_sched_entity_init(entity, 0,
+       return drm_sched_entity_init(entity, DRM_SCHED_PRIORITY_KERNEL,
                                     (struct drm_gpu_scheduler **)&sched,
                                     1, NULL);
 }
</pre>
    </blockquote>
  </body>
</html>