Skip to content

lib/xe/xe_query: Wait for xe_supports_faults

Jonathan Cavitt igt-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 2 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Add missing newlines.
- Split series into two patches.
- Make timeout depend on simulation status.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/xe/xe_query: return errno from xe_supports_faults checklib/xe/xe_query.c lib/xe/xe_query.h+9 -80 replies
2/2tests/intel/xe_exec_fault_mode: account for EBUSY in support checktests/intel/xe_exec_fault_mode.c+13 -10 replies

Reviews trailers per patch

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

PatchKamil Konieczny
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 v3 thread

Cover letter [PATCH igt-dii-client v3 0/2] lib/xe/xe_query: Wait for xe_supports_faults

It's possible for xe_supports_faults to return false if the system is busy with multiple running tests. This is because the check looks for all active VMs and searches for VMs that do not have faults enabled, returning false if any exist. Recently, this check has been changed to return EBUSY when the check fails in this way, so wait for up to ten seconds for all the active VMs to flush out before proceeding.

v2:
- Remove loop from lib version of xe_supports_faults.
- Change xe_supports_faults to instead return the return value of the ioctl call used for the check.
- Loop when xe_supports_faults is called instead if the return value is -EBUSY.

v3:
- Add missing newlines.
- Split series into two patches.
- Make timeout depend on simulation status.

v4:
- Wait 5 milliseconds between xe_supports_faults calls.

Test-with: [email protected]

Jonathan Cavitt (2):
lib/xe/xe_query: return errno from xe_supports_faults check tests/intel/xe_exec_fault_mode: account for EBUSY in support check

 lib/xe/xe_query.c                | 15 ++++++++-------
 lib/xe/xe_query.h                |  2 +-
 tests/intel/xe_exec_fault_mode.c | 14 +++++++++++++-
 3 files changed, 22 insertions(+), 9 deletions(-)
Signature · 1 line
2.25.1