]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Inline gt_reset in the worker
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 31 Oct 2025 22:22:45 +0000 (15:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 3 Nov 2025 06:00:15 +0000 (22:00 -0800)
commit1f8a87be9c36605be0036378917eb148472dd290
tree3fbd4953085e4461dd713dbd7f7b5a6b7dde3571
parent6b514ed2d9a78fdf1369f058ed1b1963457368d7
drm/xe: Inline gt_reset in the worker

gt_reset() doesn't make sense by itself: it can only be called as part
of the worker. Inline it there to avoid it being called from elsewhere
and clarify the gt_reset() vs do_gt_reset() paths. Note that the error
return from gt_reset() was just being ignored.

Also add a comment to the xe_pm_runtime_put() to make sure the
get()/put() pair is clear.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251031222244.37735-2-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt.c