From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 0/3] drmtest changes for running tests on multi-gpu
Date: Wed, 20 Sep 2023 18:19:10 +0200 [thread overview]
Message-ID: <20230920161913.54521-1-kamil.konieczny@linux.intel.com> (raw)
Allow to open other cards out of order with __drm_open_driver_another()
and also introduce helper for multi-gpu scenarios. There is still a problem
left when opening first device because it is useally already opened at
first fixture but I will leave that for later. With that it works
on three GPUs board, when first card is non-Intel one with no render
device:
sudo IGT_DEVICE=pci:vendor=Intel,device=discrete,card=all build/tests/xe_create --r multigpu-create-massive-size
(xe_create:12661) igt_core-DEBUG: Notice: using --device filters:
(xe_create:12661) igt_core-DEBUG: [pci:vendor=Intel,device=discrete,card=0]
(xe_create:12661) igt_core-DEBUG: [pci:vendor=Intel,device=discrete,card=1]
(xe_create:12661) igt_core-DEBUG: [pci:vendor=Intel,device=discrete,card=2]
IGT-Version: 1.28-g70fa04a25 (x86_64) (Linux: 6.5.0-rc7-xe-aeac46cfaebf+ x86_64)
(xe_create:12661) drmtest-DEBUG: card idx: 0 chipset: 128
(xe_create:12661) drmtest-DEBUG: Looking for devices to open using filter 0: pci:vendor=Intel,device=discrete,card=0
(xe_create:12661) drmtest-DEBUG: Filter matched /dev/dri/card1 | /dev/dri/renderD128
(xe_create:12661) drmtest-DEBUG: card idx: 0 found: /dev/dri/card1
Opened device: /dev/dri/card1
(xe_create:12661) drmtest-DEBUG: Test requirement passed: !(fd<0)
Starting subtest: multigpu-create-massive-size
(xe_create:12661) drmtest-DEBUG: Filter matched /dev/dri/card1 | /dev/dri/renderD128
(xe_create:12661) drmtest-DEBUG: Filter matched /dev/dri/card2 | /dev/dri/renderD129
(xe_create:12661) drmtest-DEBUG: Filter matched /dev/dri/card3 | /dev/dri/renderD130
(xe_create:12661) DEBUG: Test requirement passed: drm_multigpu_prepare_cards(DRIVER_XE) >= 2
running on 3 GPUs
(xe_create:12665) <g:1> drmtest-DEBUG: card idx: 1 chipset: 128
(xe_create:12665) <g:1> drmtest-DEBUG: Looking for devices to open using filter 1: pci:vendor=Intel,device=discrete,card=1
(xe_create:12665) <g:1> drmtest-DEBUG: Filter matched /dev/dri/card2 | /dev/dri/renderD129
(xe_create:12665) <g:1> drmtest-DEBUG: card idx: 1 found: /dev/dri/card2
<g:1> Opened device: /dev/dri/card2
(xe_create:12666) <g:2> drmtest-DEBUG: card idx: 2 chipset: 128
(xe_create:12666) <g:2> drmtest-DEBUG: Looking for devices to open using filter 2: pci:vendor=Intel,device=discrete,card=2
(xe_create:12666) <g:2> drmtest-DEBUG: Filter matched /dev/dri/card3 | /dev/dri/renderD130
(xe_create:12666) <g:2> drmtest-DEBUG: card idx: 2 found: /dev/dri/card3
<g:2> Opened device: /dev/dri/card3
Subtest multigpu-create-massive-size: SUCCESS (0.482s)
(xe_create:12661) igt_core-DEBUG: Exiting with status code 0
Kamil Konieczny (3):
lib/drmtest: allow out of order device opening
lib/drmtest: add multigpu helpers
RFC: tests/intel/xe_create: extend massive subtest to multi-gpu
lib/drmtest.c | 119 +++++++++++++++++++++++++++++++++++++---
lib/drmtest.h | 4 ++
tests/intel/xe_create.c | 23 ++++++++
3 files changed, 138 insertions(+), 8 deletions(-)
--
2.42.0
next 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 Kamil Konieczny [this message]
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 ` [igt-dev] [PATCH i-g-t 3/3] RFC: tests/intel/xe_create: extend massive subtest to multi-gpu Kamil Konieczny
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-1-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