[PATCH i-g-t 0/2] lib/xe: Use synchronous gt resets when needed
Jonathan Cavitt
jonathan.cavitt at intel.com
Wed Jun 5 15:12:46 UTC 2024
Add a tag to xe_force_gt_reset that allows the user to decide whether or
not they want the reset to be synchronous or not. This is done by
having the sys call target a new synchronous reset function when the tag
is set to true.
The new tag will be set to false by default, but the test
xe_exec_reset at cm-gt-reset will want this to be set to true because it
lacks a blocking mechanism on the reset and may race with itself
otherwise.
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 tag to xe_force_gt_reset
test/intel/xe_exec_reset: Synchronize cm-gt-reset gt resets
lib/xe/xe_gt.c | 2 +-
lib/xe/xe_ioctl.c | 6 +++---
lib/xe/xe_ioctl.h | 2 +-
tests/intel/xe_exec_reset.c | 8 ++++----
tests/intel/xe_gt_freq.c | 2 +-
tests/intel/xe_wedged.c | 2 +-
6 files changed, 11 insertions(+), 11 deletions(-)
--
2.25.1
More information about the igt-dev
mailing list