[PATCH i-g-t v2 0/2] lib/xe/xe_query: Wait for xe_supports_faults
Jonathan Cavitt
jonathan.cavitt at intel.com
Fri May 10 18:24:36 UTC 2024
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.
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1562
Test-with: 20240503190138.1958302-1-jonathan.cavitt at intel.com
Suggested-by: Brian Welty <brian.welty at intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
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 | 12 +++++++++++-
3 files changed, 20 insertions(+), 9 deletions(-)
--
2.25.1
More information about the igt-dev
mailing list