[PATCH v5 0/4] lib: Add generic platform filtering framework for IGT
<[email protected]> Wed, 5 Aug 2026 22:36:09 -0400
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <[email protected]> |
From: Vitaly Prosyak <[email protected]> This series introduces a vendor-agnostic platform filtering framework for IGT that allows tests to automatically skip based on hardware platform rules, without requiring manual igt_skip() calls in each subtest. The framework uses a callback-based design (platform_filter_ops) so any vendor can plug in their own backend without modifying the core. AMD support is included as the first backend. Patch overview: 1/4 - lib: Generic framework (platform_filter_ops interface, built-in/config/env priority tiers, automatic subtest hook) 2/4 - lib/amdgpu: AMD backend (ASIC identification, name table, built-in skip rules, amd_platform_filter_init()) 3/4 - lib/igt_core: Hook into __igt_run_subtest() for automatic filtering without manual igt_platform_require() calls 4/4 - docs: Platform filtering usage guide Cc: Kamil Konieczny <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Krzysztof Karas <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Jesse Zhang <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Vitaly Prosyak <[email protected]> Vitaly Prosyak (4): lib: Add generic platform filtering framework lib/amdgpu: Add AMD platform filtering backend lib/igt_core: Enable automatic platform filtering in subtest execution docs: Update platform filtering documentation per review feedback docs/platform_filtering.md | 351 +++++++++++++++++++++++ lib/amdgpu/amd_platform.c | 328 +++++++++++++++++++++ lib/amdgpu/amd_platform.h | 53 ++++ lib/igt_core.c | 18 +- lib/igt_platform_filter.c | 574 +++++++++++++++++++++++++++++++++++++ lib/igt_platform_filter.h | 124 ++++++++ lib/meson.build | 2 + mkdocs.yml | 1 + 8 files changed, 1450 insertions(+), 1 deletion(-) create mode 100644 docs/platform_filtering.md create mode 100644 lib/amdgpu/amd_platform.c create mode 100644 lib/amdgpu/amd_platform.h create mode 100644 lib/igt_platform_filter.c create mode 100644 lib/igt_platform_filter.h -- 2.54.0