]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add xe_ring_lrc_is_idle() helper
authorMatthew Brost <matthew.brost@intel.com>
Thu, 14 Nov 2024 02:25:16 +0000 (18:25 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 14 Nov 2024 14:38:40 +0000 (06:38 -0800)
commit10304796918a1d771f9bd187af6520eea0479bc1
treee85abb966a867fa4efd8e612b644e39563e06eb2
parent68634b12d769831dcf317f2736665fce6f895655
drm/xe: Add xe_ring_lrc_is_idle() helper

Add helper to compare ring head and tail to determine if LRC is idle.

v2:
 - Fix kernel doc (CI, Zhanjun)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241114022522.1951351-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc.h