]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Return forcewake reference type from force_wake_get_any_engine()
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 18 Nov 2025 16:43:53 +0000 (08:43 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 19 Nov 2025 19:58:57 +0000 (11:58 -0800)
commit1fe7ea3287ba35b92db7f8fecf773a6bc9273f51
treeb987b1a99a12eba6e50dac7c853367b1314ce9e7
parentb11f88699b13d7b6e314b9d19107aebdc79570f0
drm/xe: Return forcewake reference type from force_wake_get_any_engine()

Adjust the signature of force_wake_get_any_engine() such that it returns
a 'struct xe_force_wake_ref' rather than a boolean success/failure.
Failure cases are now recognized by inspecting the hardware engine
returned by reference; a NULL hwe indicates that no engine's forcewake
could be obtained.

These changes will make it cleaner and easier to incorporate scope-based
cleanup in force_wake_get_any_engine()'s caller in a future patch.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20251118164338.3572146-43-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_drm_client.c