Skip to content

drm/xe/tests: Add kunit tests for memory based interrupts

Michal Wajdeczko intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13drm/xe/ggtt: Rename parameter name in xe_ggtt_init_kunit()drivers/gpu/drm/xe/xe_ggtt.h+1 -13 replies
2/13drm/xe/guc: Allow to replace xe_guc_irq_handler() with stubdrivers/gpu/drm/xe/xe_guc.c+3 -01 reply
3/13drm/xe/hwe: Allow to replace xe_hw_engine_handle_irq() with stubdrivers/gpu/drm/xe/xe_hw_engine.c+3 -01 reply
4/13drm/xe/mmio: Allow to replace xe_mmio_read32|write32() with stubdrivers/gpu/drm/xe/xe_mmio.c+6 -01 reply
5/13drm/xe/kunit: Promote GGTT initialization to test_init() helperdrivers/gpu/drm/xe/tests/xe_guc_buf_kunit.c drivers/gpu/drm/xe/tests/xe_kunit_helpers.c drivers/gpu/drm/xe/tests/xe_pci_test.h+25 -60 replies
6/13drm/xe/kunit: Promote fake BO activation to test_init() helperdrivers/gpu/drm/xe/tests/xe_guc_buf_kunit.c drivers/gpu/drm/xe/tests/xe_kunit_helpers.c+39 -330 replies
7/13drm/xe/kunit: Activate empty MMIO stubs in test_init()drivers/gpu/drm/xe/tests/xe_kunit_helpers.c drivers/gpu/drm/xe/tests/xe_pci_test.h+38 -00 replies
8/13drm/xe/memirq: Make page layout macros privatedrivers/gpu/drm/xe/xe_memirq.c drivers/gpu/drm/xe/xe_memirq_types.h+7 -71 reply
9/13drm/xe/memirq: Introduce helper to calculate source page offsetdrivers/gpu/drm/xe/xe_memirq.c+10 -31 reply
10/13drm/xe/memirq: Introduce helper to calculate status vector offsetdrivers/gpu/drm/xe/xe_memirq.c+15 -31 reply
11/13drm/xe/memirq: Refactor xe_memirq_hwe_handlerdrivers/gpu/drm/xe/xe_memirq.c+10 -81 reply
12/13drm/xe/memirq: Dump additional source pages if MSI-Xdrivers/gpu/drm/xe/xe_memirq.c drivers/gpu/drm/xe/xe_memirq_types.h+34 -31 reply
13/13drm/xe/tests: Add kunit tests for memory based interruptsdrivers/gpu/drm/xe/tests/xe_memirq_kunit.c drivers/gpu/drm/xe/xe_memirq.c+280 -00 replies

Reviews trailers per patch

6 of 13 patches have a Reviewed-by or Acked-by.

PatchStuart SummersSatyanarayana K V PIlia Levi
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13
6/13
7/13
8/13R-b
9/13R-b
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/13] drm/xe/tests: Add kunit tests for memory based interrupts

And improve our kunit helper to create more functional fake device.

Michal Wajdeczko (13):
drm/xe/ggtt: Rename parameter name in xe_ggtt_init_kunit() drm/xe/guc: Allow to replace xe_guc_irq_handler() with stub drm/xe/hwe: Allow to replace xe_hw_engine_handle_irq() with stub drm/xe/mmio: Allow to replace xe_mmio_read32|write32() with stub drm/xe/kunit: Promote GGTT initialization to test_init() helper drm/xe/kunit: Promote fake BO activation to test_init() helper drm/xe/kunit: Activate empty MMIO stubs in test_init() drm/xe/memirq: Make page layout macros private drm/xe/memirq: Introduce helper to calculate source page offset drm/xe/memirq: Introduce helper to calculate status vector offset drm/xe/memirq: Refactor xe_memirq_hwe_handler drm/xe/memirq: Dump additional source pages if MSI-X drm/xe/tests: Add kunit tests for memory based interrupts

 drivers/gpu/drm/xe/tests/xe_guc_buf_kunit.c |  42 +--
 drivers/gpu/drm/xe/tests/xe_kunit_helpers.c |  96 +++++++
 drivers/gpu/drm/xe/tests/xe_memirq_kunit.c  | 276 ++++++++++++++++++++
 drivers/gpu/drm/xe/tests/xe_pci_test.h      |   3 +
 drivers/gpu/drm/xe/xe_ggtt.h                |   2 +-
 drivers/gpu/drm/xe/xe_guc.c                 |   3 +
 drivers/gpu/drm/xe/xe_hw_engine.c           |   3 +
 drivers/gpu/drm/xe/xe_memirq.c              |  95 +++++--
 drivers/gpu/drm/xe/xe_memirq_types.h        |   9 +-
 drivers/gpu/drm/xe/xe_mmio.c                |   6 +
 10 files changed, 471 insertions(+), 64 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_memirq_kunit.c
Signature · 1 line
2.47.1