[Intel-gfx] [PATCH i-g-t v2 0/2] Kernel selftest plumbing

Petri Latvala petri.latvala at intel.com
Mon Mar 13 10:43:56 UTC 2017


v2 of the series with miscellaneous fixes.

IGT subtest enumeration must work regardless of what the running
environment is. Kernel selftest launchers want to expose everything
the running kernel can execute.

These two things are mutually exclusive. This series is an attempt for
a best-of-both-worlds approach: After constructing subtests for
selftests the running kernel supports (if any), go through the list of
known kernel selftests and set up a subtest for any such test that
is missing.

This will still violate the IGT rule of list enumeration on tests that
are not present in the selftest headers copied from the kernel
sources, but we can live with that. Generating static testlists for CI
use is now possible, and running new selftests without IGT changes
stays possible.

Petri Latvala (2):
  lib: Add i915 and drm-mm selftest headers from the kernel
  Always expose IGT subtests for known kernel selftests

 lib/Makefile.sources      |  3 +++
 lib/drm_mm_selftests.h    | 24 ++++++++++++++++++++++
 lib/i915_live_selftests.h | 19 +++++++++++++++++
 lib/i915_mock_selftests.h | 20 ++++++++++++++++++
 lib/igt_kmod.c            | 52 ++++++++++++++++++++++++++++++++++-------------
 lib/igt_kmod.h            |  8 +++++++-
 tests/drm_mm.c            | 17 +++++++++++++++-
 tests/drv_selftest.c      | 25 +++++++++++++++++++++--
 8 files changed, 150 insertions(+), 18 deletions(-)
 create mode 100644 lib/drm_mm_selftests.h
 create mode 100644 lib/i915_live_selftests.h
 create mode 100644 lib/i915_mock_selftests.h

-- 
2.9.3



More information about the Intel-gfx mailing list