[PATCH 0/7] Convert live tests to parameterized style
Michal Wajdeczko
michal.wajdeczko at intel.com
Tue Jul 16 21:38:54 UTC 2024
Instead of iterating over available Xe devices within a testcase,
without being able to distinguish potential failures from different
devices on system with many Xe devices, introduce helpers that will
allow to treat each Xe device as a parameter for the testcase.
This will help update testcase logic when some features are not
applicable for certain devices (like non-DGFX or VFs).
[ ] =================== xe_mocs (1 subtest) ====================
[ ] ================ xe_live_mocs_kernel_kunit ================
[ ] [PASSED] 0000:4d:00.0
[ ] [SKIPPED] 0000:4d:00.1
[ ] ============ [PASSED] xe_live_mocs_kernel_kunit ============
[ ] ===================== [PASSED] xe_mocs =====================
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Michal Wajdeczko (7):
drm/xe: Introduce const cast helper
drm/xe/tests: Add helpers for use in live tests
drm/xe/tests: Convert xe_bo live tests
drm/xe/tests: Convert xe_dma_buf live tests
drm/xe/tests: Convert xe_migrate live tests
drm/xe/tests: Convert xe_mocs live tests
drm/xe/tests: Skip xe_mocs live tests on VF device
drivers/gpu/drm/xe/tests/xe_bo.c | 19 ++++---
drivers/gpu/drm/xe/tests/xe_dma_buf.c | 9 +++-
drivers/gpu/drm/xe/tests/xe_kunit_helpers.c | 55 +++++++++++++++++++++
drivers/gpu/drm/xe/tests/xe_kunit_helpers.h | 3 ++
drivers/gpu/drm/xe/tests/xe_migrate.c | 9 +++-
drivers/gpu/drm/xe/tests/xe_mocs.c | 21 ++++++--
drivers/gpu/drm/xe/tests/xe_pci.c | 30 +++++++++++
drivers/gpu/drm/xe/tests/xe_pci_test.h | 2 +
drivers/gpu/drm/xe/xe_device.h | 5 ++
9 files changed, 139 insertions(+), 14 deletions(-)
--
2.43.0
More information about the Intel-xe
mailing list