From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, saurabhg.gupta@intel.com,
brian.welty@intel.com, tomasz.mistat@intel.com,
himanshu.girotra@intel.com, kamil.konieczny@linux.intel.com
Subject: [PATCH igt-dii-client v3 0/2] lib/xe/xe_query: Wait for xe_supports_faults
Date: Tue, 14 May 2024 07:41:20 -0700 [thread overview]
Message-ID: <20240514144122.3778902-1-jonathan.cavitt@intel.com> (raw)
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
next reply other threads:[~2024-05-14 14:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 14:41 Jonathan Cavitt [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240514144122.3778902-1-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=brian.welty@intel.com \
--cc=himanshu.girotra@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=saurabhg.gupta@intel.com \
--cc=tomasz.mistat@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox