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 1/4] tests/kms_vblank: Allow hang tests to run on XE
Date: Tue, 5 Sep 2023 12:55:58 +0530 [thread overview]
Message-ID: <20230905072601.1602968-2-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20230905072601.1602968-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_vblank.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c
index 0cc21bb5f..6753dc918 100644
--- a/tests/kms_vblank.c
+++ b/tests/kms_vblank.c
@@ -289,7 +289,10 @@ static void run_test(data_t *data, void (*testfunc)(data_t *, int, int))
igt_output_name(output));
if (!(data->flags & NOHANG)) {
- ahnd = get_reloc_ahnd(fd, 0);
+ ahnd = is_i915_device(fd) ?
+ get_reloc_ahnd(fd, 0) :
+ intel_allocator_open(fd, 0, INTEL_ALLOCATOR_RELOC);
+
hang = igt_hang_ring_with_ahnd(fd, I915_EXEC_DEFAULT, ahnd);
}
--
2.40.0
next prev parent reply other threads:[~2023-09-05 7:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 7:25 [igt-dev] [i-g-t 0/4] Enable hang tests for XE Bhanuprakash Modem
2023-09-05 7:25 ` Bhanuprakash Modem [this message]
2023-09-05 8:03 ` [igt-dev] [i-g-t 1/4] tests/kms_vblank: Allow hang tests to run on XE Joshi, Kunal1
2023-09-05 7:25 ` [igt-dev] [i-g-t 2/4] tests/i915/kms_flip: Fix testplan documentation for hang tests Bhanuprakash Modem
2023-09-05 8:04 ` Joshi, Kunal1
2023-09-05 7:26 ` [igt-dev] [i-g-t 3/4] tests/intel-ci/xe.blocklist: Drop hang tests from xe blocklist Bhanuprakash Modem
2023-09-05 8:05 ` Joshi, Kunal1
2023-09-05 7:26 ` [igt-dev] [i-g-t 4/4] HAX: Add hang tests to xe BAT Bhanuprakash Modem
2023-09-05 12:16 ` [igt-dev] ✗ GitLab.Pipeline: warning for Enable hang tests for XE Patchwork
2023-09-05 12:45 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-09-05 14:06 ` [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=20230905072601.1602968-2-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