diff options
author | Brian Welty <brian.welty@intel.com> | 2024-01-05 22:04:39 +0300 |
---|---|---|
committer | Matthew Brost <matthew.brost@intel.com> | 2024-01-10 01:11:38 +0300 |
commit | b16483f9f8120b530327879fa3ea576e897946da (patch) | |
tree | 1a531ba8eb4ef4307815badd089b70ab47b3cd6f /drivers/gpu/drm/xe/xe_guc_submit.c | |
parent | 9fbedddfc90062e09426108335585487647067e3 (diff) | |
download | linux-b16483f9f8120b530327879fa3ea576e897946da.tar.xz |
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: dd08ebf6c352 ("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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_submit.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_guc_submit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c index 21ac68e3246f..5de3ac47c462 100644 --- a/drivers/gpu/drm/xe/xe_guc_submit.c +++ b/drivers/gpu/drm/xe/xe_guc_submit.c @@ -1308,8 +1308,8 @@ static int guc_exec_queue_set_priority(struct xe_exec_queue *q, if (!msg) return -ENOMEM; - guc_exec_queue_add_msg(q, msg, SET_SCHED_PROPS); q->priority = priority; + guc_exec_queue_add_msg(q, msg, SET_SCHED_PROPS); return 0; } |