From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Kunal Joshi <kunal1.joshi@intel.com>
Subject: [igt-dev] [i-g-t V3 3/6] tests/kms_flip: Allow hang tests to run on XE
Date: Wed, 6 Sep 2023 13:38:37 +0530 [thread overview]
Message-ID: <20230906080840.1714917-4-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20230906080840.1714917-1-bhanuprakash.modem@intel.com>
As hang tests supports both i915 & XE, update the intel specific
checks to allow them to run on XE.
Cc: Kunal Joshi <kunal1.joshi@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
tests/kms_flip.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 23c71cee2..f09a00dd0 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1042,7 +1042,10 @@ static bool run_test_step(struct test_output *o, unsigned int *events)
memset(&hang, 0, sizeof(hang));
if (do_flip && (o->flags & TEST_HANG)) {
igt_require_intel(drm_fd);
- ahnd = get_reloc_ahnd(drm_fd, 0);
+
+ ahnd = is_i915_device(drm_fd) ?
+ get_reloc_ahnd(drm_fd, 0) :
+ intel_allocator_open(drm_fd, 0, INTEL_ALLOCATOR_RELOC);
hang = hang_gpu(drm_fd, ahnd);
}
@@ -1847,8 +1850,9 @@ static void run_test(int duration, int flags)
if (flags & TEST_BO_TOOBIG && !is_intel_device(drm_fd))
return;
- igt_require((flags & TEST_HANG) == 0 ||
- (is_i915_device(drm_fd) && !is_wedged(drm_fd)));
+ if ((flags & TEST_HANG) == 0 && is_i915_device(drm_fd))
+ igt_require(!is_wedged(drm_fd));
+
igt_require(!(flags & TEST_FENCE_STRESS) ||
(is_i915_device(drm_fd) && gem_available_fences(drm_fd)));
@@ -1923,8 +1927,9 @@ static void run_pair(int duration, int flags)
if (flags & TEST_BO_TOOBIG && !is_intel_device(drm_fd))
return;
- igt_require((flags & TEST_HANG) == 0 ||
- (is_i915_device(drm_fd) && !is_wedged(drm_fd)));
+ if ((flags & TEST_HANG) == 0 && is_i915_device(drm_fd))
+ igt_require(!is_wedged(drm_fd));
+
igt_require(!(flags & TEST_FENCE_STRESS) ||
(is_i915_device(drm_fd) && gem_available_fences(drm_fd)));
--
2.40.0
next prev parent reply other threads:[~2023-09-06 8:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-06 8:08 [igt-dev] [i-g-t V3 0/6] Enable hang tests for XE Bhanuprakash Modem
2023-09-06 8:08 ` [igt-dev] [i-g-t V3 1/6] lib/igt_gt: Fix igt_post_hang_ring for XE driver Bhanuprakash Modem
2023-09-07 4:43 ` Kumar, Janga Rahul
2023-09-06 8:08 ` [igt-dev] [i-g-t V3 2/6] tests/kms_vblank: Allow hang tests to run on XE Bhanuprakash Modem
2023-09-06 8:08 ` Bhanuprakash Modem [this message]
2023-09-07 6:02 ` [igt-dev] [i-g-t V3 3/6] tests/kms_flip: " Joshi, Kunal1
2023-09-06 8:08 ` [igt-dev] [i-g-t V3 4/6] tests/kms_flip: Fix testplan documentation for hang tests Bhanuprakash Modem
2023-09-06 8:08 ` [igt-dev] [i-g-t V3 5/6] tests/intel-ci/xe.blocklist: Drop hang tests from xe blocklist Bhanuprakash Modem
2023-09-06 8:08 ` [igt-dev] [i-g-t V3 6/6] HAX: Add hang tests to xe BAT Bhanuprakash Modem
2023-09-06 9:04 ` [igt-dev] ✓ Fi.CI.BAT: success for Enable hang tests for XE (rev4) Patchwork
2023-09-06 13:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20230906080840.1714917-4-bhanuprakash.modem@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@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