Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v9 0/8] drmtest changes for running tests on multi-gpu
Date: Fri, 20 Oct 2023 15:00:08 +0200	[thread overview]
Message-ID: <20231020130016.86398-1-kamil.konieczny@linux.intel.com> (raw)

Allow to open other cards out of order with __drm_open_driver_another()
Here is a proposed solution for non-matched first device and additional
one when no filters are used but it may be re-worked later. It should
now work with three or more GPUs on board, also 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

IGT-Version: 1.28-g24b5fbcb5 (x86_64) (Linux: 6.6.0-rc3-xe-public-37b2d042c23a+ x86_64)
Opened device: /dev/dri/card1
Starting subtest: multigpu-create-massive-size
<g:0> Opened device: /dev/dri/card1
<g:1> Opened device: /dev/dri/card2
<g:2> Opened device: /dev/dri/card3
Subtest multigpu-create-massive-size: SUCCESS (0.202s)

With new helper and without filters:

sudo build/tests/xe_create --r multigpu-create-massive-size

IGT-Version: 1.28-g24b5fbcb5 (x86_64) (Linux: 6.6.0-rc3-xe-public-37b2d042c23a+ x86_64)
Opened device: /dev/dri/card1
Starting subtest: multigpu-create-massive-size
<g:0> Opened device: /dev/dri/card1
<g:1> Opened device: /dev/dri/card2
<g:2> Opened device: /dev/dri/card3
Subtest multigpu-create-massive-size: SUCCESS (0.268s)

v2: dropped additional patch 2/3 ("lib/drmtest: add multigpu helpers")
  changed 3/3 RFC patch as additional subtest
v3: fixes in test (Zbigniew)
  fixes in drmlib functions (Zbigniew, Kamil)
v4: corrected test description (Kamil)
v5: restore boundary index for already opened device (Kamil)
v6: fixes in libdrm: start searching for driver from requested index,
    limit checks for already opened drivers to currently
    opened count (Kamil)
v7: drop checks for already opened device with filters,
  change a place for igt_debug message, improve debugs (Kamil)
v8: add drm helper for the case when no filters are used,
  use this helper in xe_create multi-gpu subtest (Kamil)
v9: add helper for dropping logged opended cards, now it shows
  as <g:0> Opened device: /dev/dri/cardN (Kamil)

Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <adrinael@adrinael.net>
Cc: Arkadiusz Hiler <arek@hiler.eu>

Kamil Konieczny (8):
  lib/drmtest: allow out of order device opening
  tests/intel/xe_create: extend massive subtest to multi-gpu
  lib/drmtest: drop checks for opened device for filters
  lib/drmtest: save skip offset for first opened device
  lib/drmtest: create helper for countig number of GPUs
  tests/intel/xe_create: use drm helper for GPUs count
  lib/drmtest: create helper for dropping opened paths
  tests/intel/xe_create: print first opened card

 lib/drmtest.c           | 151 +++++++++++++++++++++++++++++++++++-----
 lib/drmtest.h           |   3 +
 tests/intel/xe_create.c |  26 +++++++
 3 files changed, 163 insertions(+), 17 deletions(-)

-- 
2.42.0

             reply	other threads:[~2023-10-20 13:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20 13:00 Kamil Konieczny [this message]
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 1/8] lib/drmtest: allow out of order device opening Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 2/8] tests/intel/xe_create: extend massive subtest to multi-gpu Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 3/8] lib/drmtest: drop checks for opened device for filters Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 4/8] lib/drmtest: save skip offset for first opened device Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 5/8] lib/drmtest: create helper for countig number of GPUs Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 6/8] tests/intel/xe_create: use drm helper for GPUs count Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 7/8] lib/drmtest: create helper for dropping opened paths Kamil Konieczny
2023-10-20 13:00 ` [igt-dev] [PATCH i-g-t v9 8/8] tests/intel/xe_create: print first opened card Kamil Konieczny
2023-10-24  0:23 ` [igt-dev] ✓ Fi.CI.BAT: success for drmtest changes for running tests on multi-gpu (rev8) Patchwork
2023-10-24  1:22 ` [igt-dev] ✓ CI.xeBAT: " 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=20231020130016.86398-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