drm/xe: Add exec_queue.sched_props.job_timeout_ms
authorBrian Welty <brian.welty@intel.com>
Wed, 10 Jan 2024 17:32:50 +0000 (09:32 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 23:01:48 +0000 (15:01 -0800)
commit6ae24344e2e3e12e06f7b382af4bba2fd417b2ff
tree3e401cd946c155e6f6916be9ad3ffabf1a0c928f
parent6e144a7d6f8a22f22f49f2ecf4268da1c75bcc4a
drm/xe: Add exec_queue.sched_props.job_timeout_ms

The purpose here is to allow to optimize exec_queue_set_job_timeout()
in follow-on patch.  Currently it does q->ops->set_job_timeout(...).
But we'd like to apply exec_queue_user_extensions much earlier and
q->ops cannot be called before __xe_exec_queue_init().

It will be much more efficient to instead only have to set
q->sched_props.job_timeout_ms when applying user extensions. That value
will then be used during q->ops->init().

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>
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_exec_queue_types.h
drivers/gpu/drm/xe/xe_guc_submit.c