[PATCH i-g-t v3 0/2] lib/xe: Use synchronous gt resets when needed
Jonathan Cavitt
jonathan.cavitt at intel.com
Wed Jun 5 17:10:53 UTC 2024
Add a new xe_force_gt_reset function, xe_force_gt_reset_sync, renaming
the original xe_force_gt_reset to xe_force_gt_reset_async. This allows
the user to decide whether or not they want to initiate a synchronous or
asynchronous gt reset. The asynchronous reset function was otherwise
unchanged, but the synchronous reset function operates by calling a new
debugfs function.
Tests will use the asynchronous gt reset function by default, but the
test xe_exec_reset at cm-gt-reset will want to use the synchronous version
because it lacks a blocking mechanism on the reset and may race with
itself otherwise.
v2:
- Create a new function for synchronous gt reset instead of using a tag
to denote between the two modes
v3:
- Fix compile issue
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1068
Test-with: 20240605150828.2736396-1-jonathan.cavitt at intel.com
Suggested-by: Matthew Brost <matthew.brost at intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
CC: John Harrison <john.c.harrison at intel.com>
CC: Stuart Summers <stuart.summers at intel.com>
Jonathan Cavitt (2):
lib/xe: Add sync and async xe_force_gt_reset options
test/intel/xe_exec_reset: Synchronize cm-gt-reset gt resets
lib/xe/xe_gt.c | 2 +-
lib/xe/xe_ioctl.c | 15 ++++++++++++++-
lib/xe/xe_ioctl.h | 3 ++-
tests/intel/xe_exec_reset.c | 8 ++++----
tests/intel/xe_gt_freq.c | 2 +-
tests/intel/xe_wedged.c | 2 +-
6 files changed, 23 insertions(+), 9 deletions(-)
--
2.25.1
More information about the igt-dev
mailing list