intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH v2 0/7] Unit tests for rtp and GT wa/tuning
@ 2023-04-01  8:51 Lucas De Marchi
  2023-04-01  8:51 ` [Intel-xe] [PATCH v2 1/7] drm/xe: Extract function to initialize xe->info Lucas De Marchi
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Lucas De Marchi @ 2023-04-01  8:51 UTC (permalink / raw)
  To: intel-xe; +Cc: Lucas De Marchi, Michał Winiarski

Add tests for the RTP infra and for the GT workaround/tuning
programming, while building the unit test infra to be able to test with
fake devices.

Notes:

- I debated a little bit whether we should use "mock" or "fake" to name
  these helpers for running without real hardware.  Here it's using
  "fake" since it's not a proper mock framework, and it seems to be what
  kunit itself uses in the documentation and examples.
- The tests themselves are "unit tests", for the
  software part, testing the implementation for the rtp,
  reg-save-restore and WA infrastructure.
- Last patch is the big improvement functonality-wise, which will help
  us detect wrong updates in the workaround tables, without running in
  real hardware.  That patches should be followed up with similar ones
  for the other WAs: engine and LRC.

v2:
  Besides the changes documented in each patch, move commits around so the
  additional tests are at the end, with the infrastructure as prerequisite patches.
  Also, XE_KUNIT as symbol namespace is no more: there is a macro from
  kunit that can be used for the same purpose.

Lucas De Marchi (7):
  drm/xe: Extract function to initialize xe->info
  drm/xe: Move test infra out of xe_pci.[ch]
  drm/xe: Use symbol namespace for kunit tests
  drm/xe: Generalize fake device creation
  drm/xe/reg_sr: Save errors for kunit integration
  drm/xe: Add basic unit tests for rtp
  drm/xe: Add test for GT workarounds and tunings

 drivers/gpu/drm/xe/Kconfig.debug           |   1 +
 drivers/gpu/drm/xe/tests/Makefile          |   8 +-
 drivers/gpu/drm/xe/tests/xe_bo.c           |   7 +-
 drivers/gpu/drm/xe/tests/xe_bo_test.c      |   1 +
 drivers/gpu/drm/xe/tests/xe_dma_buf.c      |   4 +-
 drivers/gpu/drm/xe/tests/xe_dma_buf_test.c |   1 +
 drivers/gpu/drm/xe/tests/xe_migrate.c      |   4 +-
 drivers/gpu/drm/xe/tests/xe_migrate_test.c |   1 +
 drivers/gpu/drm/xe/tests/xe_pci.c          | 109 +++++++
 drivers/gpu/drm/xe/tests/xe_pci_test.h     |  31 ++
 drivers/gpu/drm/xe/tests/xe_rtp_test.c     | 318 +++++++++++++++++++++
 drivers/gpu/drm/xe/tests/xe_wa_test.c      | 136 +++++++++
 drivers/gpu/drm/xe/xe_pci.c                | 150 ++++------
 drivers/gpu/drm/xe/xe_pci.h                |   9 -
 drivers/gpu/drm/xe/xe_reg_sr.c             |  10 +
 drivers/gpu/drm/xe/xe_reg_sr_types.h       |   4 +
 drivers/gpu/drm/xe/xe_rtp.c                |   3 +
 drivers/gpu/drm/xe/xe_tuning.c             |   3 +
 drivers/gpu/drm/xe/xe_wa.c                 |   2 +
 19 files changed, 692 insertions(+), 110 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_pci.c
 create mode 100644 drivers/gpu/drm/xe/tests/xe_pci_test.h
 create mode 100644 drivers/gpu/drm/xe/tests/xe_rtp_test.c
 create mode 100644 drivers/gpu/drm/xe/tests/xe_wa_test.c

-- 
2.39.0


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

end of thread, other threads:[~2023-04-03 23:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-01  8:51 [Intel-xe] [PATCH v2 0/7] Unit tests for rtp and GT wa/tuning Lucas De Marchi
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 1/7] drm/xe: Extract function to initialize xe->info Lucas De Marchi
2023-04-03 22:33   ` Matt Roper
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 2/7] drm/xe: Move test infra out of xe_pci.[ch] Lucas De Marchi
2023-04-03 22:42   ` Matt Roper
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 3/7] drm/xe: Use symbol namespace for kunit tests Lucas De Marchi
2023-04-03 17:00   ` Mauro Carvalho Chehab
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 4/7] drm/xe: Generalize fake device creation Lucas De Marchi
2023-04-03 22:58   ` Matt Roper
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 5/7] drm/xe/reg_sr: Save errors for kunit integration Lucas De Marchi
2023-04-03 23:11   ` Matt Roper
2023-04-03 23:43     ` Lucas De Marchi
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 6/7] drm/xe: Add basic unit tests for rtp Lucas De Marchi
2023-04-03 11:33   ` Michał Winiarski
2023-04-01  8:51 ` [Intel-xe] [PATCH v2 7/7] drm/xe: Add test for GT workarounds and tunings Lucas De Marchi
2023-04-03 13:14   ` Michał Winiarski
2023-04-01  9:12 ` [Intel-xe] ✓ CI.Patch_applied: success for Unit tests for rtp and GT wa/tuning (rev2) Patchwork
2023-04-01  9:14 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-04-01  9:17 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-04-01  9:37 ` [Intel-xe] ○ CI.BAT: info " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).