[igt-dev] [EARLY RFC 0/1] New device selection

Zbigniew Kempczyński
2019-07-01T13:03:41Z

Additional method device selection code proposal. Instead of replacing
legacy method of selection it extends it. When --device filter or
IGT_DEVICE environment new method is selected instead of legacy.

Currently only PCI devices scanning is performed. Tool 'lsgpu' uses
code to play with scanned devices properties and attributes (taken
from udev).

I'm looking forward your comments.

Zbigniew Kempczyński (1):
Introduce new method of device selection

lib/Makefile.sources | 2 +
lib/drmtest.c | 53 ++-
lib/drmtest.h | 1 +
lib/igt_core.c | 12 +
lib/igt_core.h | 1 +
lib/igt_device_scan.c | 936 +++++++++++++++++++++++++++++++++++++++++
lib/igt_device_scan.h | 64 +++
lib/meson.build | 1 +
tools/Makefile.sources | 1 +
tools/lsgpu.c | 222 ++++++++++
tools/meson.build | 1 +
11 files changed, 1292 insertions(+), 2 deletions(-)
create mode 100644 lib/igt_device_scan.c
create mode 100644 lib/igt_device_scan.h
create mode 100644 tools/lsgpu.c

--
2.21.0