Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt-dii-client v3 0/2] lib/xe/xe_query: Wait for xe_supports_faults
@ 2024-05-14 14:41 Jonathan Cavitt
  2024-05-14 14:41 ` [PATCH igt-dii-client v3 1/2] lib/xe/xe_query: return errno from xe_supports_faults check Jonathan Cavitt
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jonathan Cavitt @ 2024-05-14 14:41 UTC (permalink / raw)
  To: igt-dev
  Cc: jonathan.cavitt, saurabhg.gupta, brian.welty, tomasz.mistat,
	himanshu.girotra, kamil.konieczny

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.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1562
Test-with: 20240503190138.1958302-1-jonathan.cavitt@intel.com
Suggested-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@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 | 14 +++++++++++++-
 3 files changed, 22 insertions(+), 9 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-15  6:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 14:41 [PATCH igt-dii-client v3 0/2] lib/xe/xe_query: Wait for xe_supports_faults Jonathan Cavitt
2024-05-14 14:41 ` [PATCH igt-dii-client v3 1/2] lib/xe/xe_query: return errno from xe_supports_faults check Jonathan Cavitt
2024-05-14 14:41 ` [PATCH igt-dii-client v3 2/2] tests/intel/xe_exec_fault_mode: account for EBUSY in support check Jonathan Cavitt
2024-05-14 17:11 ` ✓ CI.xeBAT: success for lib/xe/xe_query: Wait for xe_supports_faults Patchwork
2024-05-14 17:17 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-14 19:31 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-15  6:30 ` ✗ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox