Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Convert live tests to parameterized style
@ 2024-07-17 19:51 Michal Wajdeczko
  2024-07-17 19:51 ` [PATCH v2 1/7] drm/xe: Introduce const cast helper Michal Wajdeczko
                   ` (14 more replies)
  0 siblings, 15 replies; 34+ messages in thread
From: Michal Wajdeczko @ 2024-07-17 19:51 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko, Lucas De Marchi, Rodrigo Vivi

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@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>

v2: can't rely on test->priv in .exit helper (CI)
    for cleanup use kunit_add_action_or_reset() instead

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            | 18 ++++++----
 drivers/gpu/drm/xe/tests/xe_dma_buf.c       |  8 +++--
 drivers/gpu/drm/xe/tests/xe_kunit_helpers.c | 39 +++++++++++++++++++++
 drivers/gpu/drm/xe/tests/xe_kunit_helpers.h |  2 ++
 drivers/gpu/drm/xe/tests/xe_migrate.c       |  8 +++--
 drivers/gpu/drm/xe/tests/xe_mocs.c          | 20 ++++++++---
 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, 118 insertions(+), 14 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2024-07-19 17:20 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 19:51 [PATCH v2 0/7] Convert live tests to parameterized style Michal Wajdeczko
2024-07-17 19:51 ` [PATCH v2 1/7] drm/xe: Introduce const cast helper Michal Wajdeczko
2024-07-17 20:07   ` Cavitt, Jonathan
2024-07-17 21:38     ` Michal Wajdeczko
2024-07-19 16:32   ` Lucas De Marchi
2024-07-19 16:55     ` Michal Wajdeczko
2024-07-19 17:06       ` Lucas De Marchi
2024-07-17 19:51 ` [PATCH v2 2/7] drm/xe/tests: Add helpers for use in live tests Michal Wajdeczko
2024-07-17 20:14   ` Cavitt, Jonathan
2024-07-19 16:37   ` Lucas De Marchi
2024-07-19 17:20     ` Michal Wajdeczko
2024-07-17 19:51 ` [PATCH v2 3/7] drm/xe/tests: Convert xe_bo " Michal Wajdeczko
2024-07-17 20:15   ` Cavitt, Jonathan
2024-07-17 19:51 ` [PATCH v2 4/7] drm/xe/tests: Convert xe_dma_buf " Michal Wajdeczko
2024-07-17 20:17   ` Cavitt, Jonathan
2024-07-17 21:54     ` Michal Wajdeczko
2024-07-17 19:51 ` [PATCH v2 5/7] drm/xe/tests: Convert xe_migrate " Michal Wajdeczko
2024-07-17 20:17   ` Cavitt, Jonathan
2024-07-17 19:51 ` [PATCH v2 6/7] drm/xe/tests: Convert xe_mocs " Michal Wajdeczko
2024-07-17 20:18   ` Cavitt, Jonathan
2024-07-19 16:40   ` Lucas De Marchi
2024-07-17 19:51 ` [PATCH v2 7/7] drm/xe/tests: Skip xe_mocs live tests on VF device Michal Wajdeczko
2024-07-17 20:19   ` Cavitt, Jonathan
2024-07-19 16:41   ` Lucas De Marchi
2024-07-17 19:58 ` ✓ CI.Patch_applied: success for Convert live tests to parameterized style (rev2) Patchwork
2024-07-17 19:59 ` ✓ CI.checkpatch: " Patchwork
2024-07-17 20:00 ` ✓ CI.KUnit: " Patchwork
2024-07-17 20:12 ` ✓ CI.Build: " Patchwork
2024-07-17 20:14 ` ✓ CI.Hooks: " Patchwork
2024-07-17 20:16 ` ✓ CI.checksparse: " Patchwork
2024-07-17 20:40 ` ✗ CI.BAT: failure " Patchwork
2024-07-17 21:34   ` Michal Wajdeczko
2024-07-18  1:53 ` ✗ CI.FULL: " Patchwork
2024-07-18  7:11   ` Michal Wajdeczko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox