Skip to content

Commit 9c12563

Browse files
matt-auldlucasdemarchi
authored andcommitted
drm/xe/guc_submit: use jiffies for job timeout
drm_sched_init() expects jiffies for the timeout, but here we are passing the timeout in ms. Convert to jiffies instead. Fixes: eef5570 ("drm/xe: Add sysfs for default engine scheduler properties") Signed-off-by: Matthew Auld <[email protected]> Cc: Matthew Brost <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]> (cherry picked from commit 2c5b70f) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent fd00fe8 commit 9c12563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_guc_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
12201220
init_waitqueue_head(&ge->suspend_wait);
12211221

12221222
timeout = (q->vm && xe_vm_in_lr_mode(q->vm)) ? MAX_SCHEDULE_TIMEOUT :
1223-
q->sched_props.job_timeout_ms;
1223+
msecs_to_jiffies(q->sched_props.job_timeout_ms);
12241224
err = xe_sched_init(&ge->sched, &drm_sched_ops, &xe_sched_ops,
12251225
get_submit_wq(guc),
12261226
q->lrc[0].ring.size / MAX_JOB_SIZE_BYTES, 64,

0 commit comments

Comments
 (0)