From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v1 2/4] tests/intel/xe_create: add multi-GPU basic test
Date: Thu, 2 Nov 2023 13:10:37 +0100 [thread overview]
Message-ID: <20231102121044.58786-3-kamil.konieczny@linux.intel.com> (raw)
In-Reply-To: <20231102121044.58786-1-kamil.konieczny@linux.intel.com>
Add basic multi-GPU test using drm filtered helpers.
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
tests/intel/xe_create.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/tests/intel/xe_create.c b/tests/intel/xe_create.c
index d99bd51cf..dc7c9502e 100644
--- a/tests/intel/xe_create.c
+++ b/tests/intel/xe_create.c
@@ -191,6 +191,13 @@ static void create_execqueues(int fd, enum exec_queue_destroy ed)
* Test category: functionality test
* Description: Verifies xe bo create returns expected error code on massive
* buffer sizes.
+ *
+ * SUBTEST: multigpu-create-massive-size
+ * Functionality: ioctl
+ * Test category: functionality test
+ * Feature: multigpu
+ * Description: Verifies xe bo create with massive buffer sizes runs correctly
+ * on two or more GPUs.
*/
static void create_massive_size(int fd)
{
@@ -228,6 +235,25 @@ igt_main
create_massive_size(xe);
}
+ igt_subtest("multigpu-create-massive-size") {
+ int gpu_count = drm_get_filtered_gpu_count(DRIVER_XE);
+
+ igt_require(xe > 0);
+ igt_require(gpu_count >= 2);
+ igt_multi_fork(child, gpu_count) {
+ int gpu_fd;
+
+ gpu_fd = drm_open_filtered_card(child);
+ igt_assert_f(gpu_fd > 0, "cannot open gpu-%d, errno=%d\n", child, errno);
+ igt_assert(is_xe_device(gpu_fd));
+
+ create_massive_size(gpu_fd);
+ drm_close_driver(gpu_fd);
+ }
+ igt_waitchildren();
+ }
+
+
igt_fixture
drm_close_driver(xe);
}
--
2.42.0
next prev parent reply other threads:[~2023-11-02 12:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 12:10 [igt-dev] [PATCH i-g-t v1 0/4] drmtest changes for filtering GPUs on multi-gpu Kamil Konieczny
2023-11-02 12:10 ` [igt-dev] [PATCH i-g-t v1 1/4] lib/drmtest: add multi-GPU helpers for filtered devices Kamil Konieczny
2023-11-02 19:52 ` Zbigniew Kempczyński
2023-11-03 9:58 ` Kamil Konieczny
2023-11-02 12:10 ` Kamil Konieczny [this message]
2023-11-02 12:10 ` [igt-dev] [PATCH i-g-t v1 3/4] lib/drmtest: create helper for dropping logged opened paths Kamil Konieczny
2023-11-02 19:55 ` Zbigniew Kempczyński
2023-11-02 12:10 ` [igt-dev] [PATCH i-g-t v1 4/4] tests/intel/xe_create: print first opened card Kamil Konieczny
2023-11-02 19:57 ` Zbigniew Kempczyński
2023-11-02 15:14 ` [igt-dev] ✓ Fi.CI.BAT: success for drmtest changes for filtering GPUs on multi-gpu Patchwork
2023-11-02 16:06 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-11-03 10:14 ` [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=20231102121044.58786-3-kamil.konieczny@linux.intel.com \
--to=kamil.konieczny@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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