[igt-dev] [PATCH i-g-t v8 0/6] drmtest changes for running tests on multi-gpu
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Oct 4 16:49:36 UTC 2023
Allow to open other cards out of order with __drm_open_driver_another()
There is still a problem left when there is non-matched first device and
no filters are used, it will not work with legacy opening but I will
leave that for later. With filters it now works on four 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
Opened device: /dev/dri/card1
Starting subtest: multigpu-create-massive-size
<g:1> Opened device: /dev/dri/card2
<g:2> Opened device: /dev/dri/card3
Subtest multigpu-create-massive-size: SUCCESS (0.341s)
With new helper and without filters:
sudo build/tests/xe_create --r multigpu-create-massive-size
Opened device: /dev/dri/card1
Starting subtest: multigpu-create-massive-size
<g:1> Opened device: /dev/dri/card2
<g:2> Opened device: /dev/dri/card3
Subtest multigpu-create-massive-size: SUCCESS (1.686s)
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)
Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Petri Latvala <adrinael at adrinael.net>
Cc: Arkadiusz Hiler <arek at hiler.eu>
Kamil Konieczny (6):
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: add helper for countig number of GPUs
tests/intel/xe_create: use drm helper for GPUs count
lib/drmtest.c | 129 +++++++++++++++++++++++++++++++++++-----
lib/drmtest.h | 2 +
tests/intel/xe_create.c | 25 ++++++++
3 files changed, 142 insertions(+), 14 deletions(-)
--
2.42.0
More information about the igt-dev
mailing list