From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 3/3] RFC: tests/intel/xe_create: extend massive subtest to multi-gpu
Date: Wed, 20 Sep 2023 18:19:13 +0200 [thread overview]
Message-ID: <20230920161913.54521-4-kamil.konieczny@linux.intel.com> (raw)
In-Reply-To: <20230920161913.54521-1-kamil.konieczny@linux.intel.com>
Sample code extends existing create-massive-size subtest to run
on multi-GPUs boards. This needs changes in lib/drmtest.
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
tests/intel/xe_create.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tests/intel/xe_create.c b/tests/intel/xe_create.c
index 8d845e5c8..27f02ad2a 100644
--- a/tests/intel/xe_create.c
+++ b/tests/intel/xe_create.c
@@ -192,6 +192,13 @@ static void create_execqueues(int fd, enum exec_queue_destroy ed)
* Description: Verifies xe bo create returns expected error code on massive
* buffer sizes.
*/
+/**
+ * SUBTEST: multigpu-create-massive-size
+ * Functionality: ioctl
+ * Test category: multigpu
+ * Description: Verifies xe bo create with massive buffer sizes runs correctly
+ * on all GPUs.
+ */
static void create_massive_size(int fd)
{
uint64_t memreg = all_memory_regions(fd), region;
@@ -228,6 +235,22 @@ igt_main
create_massive_size(xe);
}
+ igt_subtest("multigpu-create-massive-size") {
+ igt_require(drm_multigpu_prepare_cards(DRIVER_XE) > 1);
+ igt_multi_fork(child, drm_get_multigpu_count()) {
+ int gpu_fd;
+
+ gpu_fd = child ? __drm_open_driver_another(child, DRIVER_XE) : drm_reopen_driver(xe);
+ igt_assert_f(gpu_fd > 0, "cannot open gpu-%d, errno=%d\n", child, errno);
+ //test
+ create_massive_size(xe);
+ //
+ drm_close_driver(gpu_fd);
+ }
+
+ igt_waitchildren();
+ }
+
igt_fixture
drm_close_driver(xe);
}
--
2.42.0
next prev parent reply other threads:[~2023-09-20 16:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 16:19 [igt-dev] [PATCH i-g-t 0/3] drmtest changes for running tests on multi-gpu Kamil Konieczny
2023-09-20 16:19 ` [igt-dev] [PATCH i-g-t 1/3] lib/drmtest: allow out of order device opening Kamil Konieczny
2023-09-20 16:19 ` [igt-dev] [PATCH i-g-t 2/3] lib/drmtest: add multigpu helpers Kamil Konieczny
2023-09-25 20:30 ` Zbigniew Kempczyński
2023-09-26 5:41 ` Zbigniew Kempczyński
2023-09-20 16:19 ` Kamil Konieczny [this message]
2023-09-20 19:50 ` [igt-dev] ✗ CI.xeBAT: failure for drmtest changes for running tests on multi-gpu Patchwork
2023-09-20 19:55 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-09-21 2:11 ` [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=20230920161913.54521-4-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