[PATCH v6 0/4] lib: Add generic platform filtering framework for IGT

<[email protected]>
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 Koenig <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Pawel Sikora <[email protected]>
Signed-off-by: Vitaly Prosyak <[email protected]>
---
v6 changes (checkpatch run from igt-gpu-tools/ using .checkpatch.conf):
- Remove unnecessary braces from single-statement if blocks (patch 1)
- Split igt_info line exceeding 100 columns (patch 1)
- Fix block comment closing style in .c files (patches 1 and 2)
- Fix parameter alignment in function definitions and declarations
- Remove Change-Id metadata from all commit messages
- Add Acked-by: Kamil Konieczny to patches 1 and 4

v5 changes (addressing Kamil Konieczny review):
- Replaced emoji with ASCII equivalents in documentation
- Removed Gerrit Change-Id metadata
- Restructured commit messages per upstream standards
- Added Pawel Sikora to Cc

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  | 330 +++++++++++++++++++++
 lib/amdgpu/amd_platform.h  |  53 ++++
 lib/igt_core.c             |  18 +-
 lib/igt_platform_filter.c  | 575 +++++++++++++++++++++++++++++++++++++
 lib/igt_platform_filter.h  | 124 ++++++++
 lib/meson.build            |   2 +
 mkdocs.yml                 |   1 +
 8 files changed, 1453 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.