]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add helper to return any available hw engine
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 17 May 2024 20:43:09 +0000 (13:43 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 21 May 2024 13:33:40 +0000 (06:33 -0700)
commit6aa18d7436b0c11f7e62fd6cdb707eaeab1dc473
tree337c9640912fa88d8b2ea602d049bd483691fb54
parentbaa14865529bf1f3c12dc6145bd9109ef289e038
drm/xe: Add helper to return any available hw engine

Get the first available engine from a gt, which helps in the case any
engine serves as a context, like when reading RING_TIMESTAMP.

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240517204310.88854-8-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt.h