]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Add replay_offset and replay_length lines to LRC HWCTX snapshot
authorMatthew Brost <matthew.brost@intel.com>
Wed, 26 Nov 2025 18:59:51 +0000 (10:59 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 1 Dec 2025 18:03:18 +0000 (10:03 -0800)
commit7032361d8cb13ab48b2b79167967c3a29c075ce2
tree498caad9b5b0dc27c5bff343a206c53ea0a35b2a
parentb80961a86b40372b7cfb3065439377f7e7550e59
drm/xe: Add replay_offset and replay_length lines to LRC HWCTX snapshot

Add replay_offset and replay_length lines to LRC HWCTX snapshot with the
idea being this information can be used extract the data which needs to
be pass to exec queue extension DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE
so GPU hang can be replayed via a Mesa tool.

The additional lines look like:

[HWCTX].replay_offset: 0x%x
[HWCTX].replay_length: 0x%x

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patch.msgid.link/20251126185952.546277-9-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc.h
drivers/gpu/drm/xe/xe_lrc_types.h