drm/xe/guc_submit: Make suspend_wait interruptible
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 9 Aug 2024 15:51:27 +0000 (17:51 +0200)
committerMatthew Brost <matthew.brost@intel.com>
Sun, 18 Aug 2024 01:31:50 +0000 (18:31 -0700)
commit3dc6da76ae55d667fca2c9f9497e8ea1a27497b1
treefea8abe79cf9953217ec4bca74604f5eadfe3ebe
parentf784750c670f7c5ac572590ddad77a89b4c997bf
drm/xe/guc_submit: Make suspend_wait interruptible

Rely on wait_event_interruptible_timeout() to put the process to sleep
with TASK_INTERRUPTIBLE. It allows using this function in interruptible
context.

v2: Propagate error on wait_event_interruptible_timeout (Matt Brost)

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240809155156.1955925-3-francois.dugast@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c