Skip to content

Commit fef257e

Browse files
brianweltyThomas Hellström
authored andcommitted
drm/xe: Fix guc_exec_queue_set_priority
We need to set q->priority prior to calling guc_exec_queue_add_msg() as that will call init_policies() and sets the scheduling properties to those stored in the exec_queue. Fixes: dd08ebf ("drm/xe: Introduce a new DRM driver for Intel GPUs") Signed-off-by: Brian Welty <brian.welty@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> (cherry picked from commit b16483f) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 9894906 commit fef257e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_guc_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,8 @@ static int guc_exec_queue_set_priority(struct xe_exec_queue *q,
13081308
if (!msg)
13091309
return -ENOMEM;
13101310

1311-
guc_exec_queue_add_msg(q, msg, SET_SCHED_PROPS);
13121311
q->priority = priority;
1312+
guc_exec_queue_add_msg(q, msg, SET_SCHED_PROPS);
13131313

13141314
return 0;
13151315
}

0 commit comments

Comments
 (0)