[igt-dev] [PATCH i-g-t v8 0/3] Add device selection methods
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Fri Sep 13 10:04:12 UTC 2019
2: In this series I've removed module management and hand device classes
filtering (udev filters are now used in this case). Lsgpu was
simplified (some options were unreadable and they were removed).
Still migration to gtkdoc is necessary which will be made in v3.
v3: Change device scanning to drm subsystem with getting parent
according to Daniel Vetter suggestion. Splitting to two patches
and adding gtk-doc documentation.
v4: Extending and fixing documentation. Adding reviewers forgotten
in v3.
v5: Adding .igtrc support. Fixing code according to review comments.
Lsgpu device selection order now uses same search strategy
like IGT core. It uses --device / IGT_DEVICE and .igtrc
order accordingly to verify tests device selection works as expected.
v6: Change device selection failure paths to be more verbose.
Filter syntax is now verified before inserting onto filter list.
Lsgpu tool was extracted as a standalone patch.
Disputed functions with *_nth_filter() were removed from
drmtest.c code. Replacement methods will be provided when some
tests will require them (at the moment we don't have representative
test code to rewrite).
v7: Cosmetic changes according to the review - removing code duplication
in modprobe part and two other minor issues.
v8: Code duplication removal, some minor changes in comments and
structure name.
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
Cc: Daniel Vetter <daniel at ffwll.ch>
Cc: Petri Latvala <petri.latvala at intel.com>
Zbigniew Kempczyński (3):
Introduce device selection API
Add device selection in IGT
Introduce device selection lsgpu tool
.../igt-gpu-tools/igt-gpu-tools-docs.xml | 1 +
.../igt-gpu-tools/igt_test_programs.xml | 7 +
lib/Makefile.sources | 2 +
lib/drmtest.c | 141 +-
lib/drmtest.h | 7 +
lib/igt_core.c | 49 +
lib/igt_device_scan.c | 1400 +++++++++++++++++
lib/igt_device_scan.h | 74 +
lib/meson.build | 1 +
tools/Makefile.sources | 1 +
tools/lsgpu.c | 299 ++++
tools/meson.build | 1 +
12 files changed, 1975 insertions(+), 8 deletions(-)
create mode 100644 lib/igt_device_scan.c
create mode 100644 lib/igt_device_scan.h
create mode 100644 tools/lsgpu.c
--
2.23.0
More information about the igt-dev
mailing list