Skip to content

lib/xe: Use synchronous gt resets when needed

Jonathan Cavitt igt-dev 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Changes in v4 from the cover letter

- Use helper function for xe_force_gt_reset_[sync|async] functions to reduce code duplication (Matthew Brost)
- Add missing revision notes

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/xe: Add sync and async xe_force_gt_reset optionslib/xe/xe_gt.c lib/xe/xe_ioctl.c lib/xe/xe_ioctl.h +3 more+22 -111 reply
2/2test/intel/xe_exec_reset: Synchronize cm-gt-reset gt resetstests/intel/xe_exec_reset.c+1 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMatthew Brost
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH i-g-t v4 0/2] lib/xe: Use synchronous gt resets when needed

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@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 (Matthew Brost)

v3:
- Fix compile issue

v4:
- Use helper function for xe_force_gt_reset_[sync|async] functions to reduce code duplication (Matthew Brost)
- Add missing revision notes

Test-with: [email protected]

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           | 16 +++++++++++++---
 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, 22 insertions(+), 11 deletions(-)
Signature · 1 line
2.25.1