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

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Jul 1 13:03:25 UTC 2019


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



More information about the igt-dev mailing list