Test modeseting with imported prime buffer between any two devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: Support multiple filterslib/ lib/ lib/ +2 more | +83 | 1 reply | |
| 2/2 | lib/drmtest: Introduce __drm_open_driver_anotherlib/ lib/ tests/ | +208 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Petri Latvala |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [igt-dev] [PATCH i-g-t 0/2] Test modeseting with imported prime buffer between any two devices
By default the first two devices that are matching provided chipset requirements are used (ANY + VGEM). This is sensitive to enumeration order, but as long as there are only two devices it's fine - PRIME will get tested both directions.
# kms_prime IGT-Version: 1.25-g0b58fd8c (x86_64) (Linux: 5.7.0-rc2-CI-CI_DRM_8370+ x86_64) Starting subtest: basic-crc Starting dynamic subtest: first-to-second Test requirement not met in function igt_require_pipe_crc, file ../lib/igt_debugfs.c:522: Test requirement: fstatat(dir, "crtc-0/crc/control", &stat, 0) == 0 CRCs not supported on this platform Last errno: 2, No such file or directory Dynamic subtest first-to-second: SKIP (0,000s) Starting dynamic subtest: second-to-first Dynamic subtest second-to-first: SUCCESS (1,779s) Subtest basic-crc: SUCCESS (2,024s)
In case there are more than two devices you can specify which ones should be used or force ordering, e.g.:
# lsgpu
sys:/sys/devices/pci0000:00/0000:00:02.0
subsystem : pci
drm card : /dev/dri/card0
drm render : /dev/dri/renderD128
vendor : 8086
device : 9A49sys:/sys/devices/platform/vgem
subsystem : platform
drm card : /dev/dri/card1
drm render : /dev/dri/renderD129# kms_prime --device "sys:/sys/devices/platform/vgem;pci:vendor=Intel" IGT-Version: 1.25-g0b58fd8c (x86_64) (Linux: 5.7.0-rc2-CI-CI_DRM_8370+ x86_64) Starting subtest: basic-crc Looking for devices to open using filter 0: sys:/sys/devices/platform/vgem Filter matched /dev/dri/card1 | /dev/dri/renderD129 Looking for devices to open using filter 1: pci:vendor=Intel Filter matched /dev/dri/card0 | /dev/dri/renderD128 Starting dynamic subtest: first-to-second Dynamic subtest first-to-second: SUCCESS (1,978s) Starting dynamic subtest: second-to-first Test requirement not met in function igt_require_pipe_crc, file ../lib/igt_debugfs.c:522: Test requirement: fstatat(dir, "crtc-0/crc/control", &stat, 0) == 0 CRCs not supported on this platform Last errno: 2, No such file or directory Dynamic subtest second-to-first: SKIP (0,000s) Subtest basic-crc: SUCCESS (2,944s)
You can also use the IGT_DEVICE environment variable or Common::Device in .igtrc.
Arkadiusz Hiler (2):
lib: Support multiple filters lib/drmtest: Introduce __drm_open_driver_another
lib/drmtest.c | 165 +++++++++++++++++++++++++++++++++++------ lib/drmtest.h | 1 + lib/igt_core.c | 16 ++-- lib/igt_device_scan.c | 87 ++++++++++++++++------ lib/igt_device_scan.h | 8 +- tests/core_hotunplug.c | 3 +- tests/kms_prime.c | 107 ++++++++++++++++---------- 7 files changed, 288 insertions(+), 99 deletions(-)
Signature · 6 lines
2.25.2 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev