Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/guc_submit: use jiffies for job timeout
@ 2024-03-14 12:15 Matthew Auld
  2024-03-14 12:20 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Matthew Auld @ 2024-03-14 12:15 UTC (permalink / raw)
  To: intel-xe; +Cc: Matthew Brost

drm_sched_init() expects jiffies for the timeout, but here we are
passing the timeout in ms. Convert to jiffies instead.

Fixes: eef55700f302 ("drm/xe: Add sysfs for default engine scheduler properties")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
---
 drivers/gpu/drm/xe/xe_guc_submit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 19efdb2f881f..82c955a2a15c 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -1226,7 +1226,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 	init_waitqueue_head(&ge->suspend_wait);
 
 	timeout = (q->vm && xe_vm_in_lr_mode(q->vm)) ? MAX_SCHEDULE_TIMEOUT :
-		  q->sched_props.job_timeout_ms;
+		  msecs_to_jiffies(q->sched_props.job_timeout_ms);
 	err = xe_sched_init(&ge->sched, &drm_sched_ops, &xe_sched_ops,
 			    get_submit_wq(guc),
 			    q->lrc[0].ring.size / MAX_JOB_SIZE_BYTES, 64,
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-14 17:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 12:15 [PATCH] drm/xe/guc_submit: use jiffies for job timeout Matthew Auld
2024-03-14 12:20 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-14 12:20 ` ✓ CI.checkpatch: " Patchwork
2024-03-14 12:21 ` ✓ CI.KUnit: " Patchwork
2024-03-14 12:32 ` ✓ CI.Build: " Patchwork
2024-03-14 12:34 ` [PATCH] " Nirmoy Das
2024-03-14 12:34 ` ✓ CI.Hooks: success for " Patchwork
2024-03-14 12:36 ` ✓ CI.checksparse: " Patchwork
2024-03-14 13:00 ` ✗ CI.BAT: failure " Patchwork
2024-03-14 16:15 ` [PATCH] " Matthew Brost
2024-03-14 17:23 ` Lucas De Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox