Skip to content

drm/xe: Add and use more KLV helpers

Michal Wajdeczko intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 2 repliesIn review
  2. v113 patches 17 repliesSuperseded

Changes in v2 from the cover letter

don't mix units, report too long string (Michal/Sashiko) don't allow to truncate object (Michal/Sashiko) avoid KUNIT_ASSERT under mutex (Michal/Sashiko) add more tests (me)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13drm/xe/guc: Allow to print single KLVdrivers/gpu/drm/xe/xe_guc_klv_helpers.c drivers/gpu/drm/xe/xe_guc_klv_helpers.h+35 -200 replies
2/13drm/xe/guc: Prepare to print group KLVsdrivers/gpu/drm/xe/xe_guc_klv_helpers.c+18 -00 replies
3/13drm/xe/guc: Add basic KLV encoding helpersdrivers/gpu/drm/xe/xe_guc_klv_helpers.c drivers/gpu/drm/xe/xe_guc_klv_helpers.h+59 -00 replies
4/13drm/xe/guc: Add string KLV encoding helperdrivers/gpu/drm/xe/xe_guc_klv_helpers.c drivers/gpu/drm/xe/xe_guc_klv_helpers.h+36 -01 reply
5/13drm/xe/guc: Add object KLV encoding helperdrivers/gpu/drm/xe/xe_guc_klv_helpers.c drivers/gpu/drm/xe/xe_guc_klv_helpers.h+41 -01 reply
6/13drm/xe/guc: Add KLV parsing helperdrivers/gpu/drm/xe/xe_guc_klv_helpers.c drivers/gpu/drm/xe/xe_guc_klv_helpers.h+41 -00 replies
7/13drm/xe/guc: Formalize Reserved KLVsdrivers/gpu/drm/xe/abi/guc_klvs_abi.h drivers/gpu/drm/xe/abi/xe_driver_klvs_abi.h drivers/gpu/drm/xe/xe_guc_klv_helpers.c +1 more+60 -51 reply
8/13drm/xe/tests: Add GuC KLV helpers basic testsdrivers/gpu/drm/xe/tests/xe_guc_klv_helpers_kunit.c drivers/gpu/drm/xe/xe_guc_klv_helpers.c+103 -00 replies
9/13drm/xe/tests: Add string encoding helper testdrivers/gpu/drm/xe/tests/xe_guc_klv_helpers_kunit.c+84 -01 reply
10/13drm/xe/tests: Add object encoding helper testdrivers/gpu/drm/xe/tests/xe_guc_klv_helpers_kunit.c+220 -01 reply
11/13drm/xe/tests: Add GuC KLV printer testdrivers/gpu/drm/xe/tests/xe_guc_klv_helpers_kunit.c+41 -01 reply
12/13drm/xe/tests: Add migration packet testdrivers/gpu/drm/xe/tests/xe_sriov_packet_kunit.c drivers/gpu/drm/xe/xe_sriov_packet.c+92 -01 reply
13/13drm/xe/pf: Handle migration descriptor using KLV helpersdrivers/gpu/drm/xe/xe_sriov_packet.c+56 -500 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchMichał Winiarski
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13R-b R-b
8/13R-b
9/13R-b R-b
10/13R-b R-b
11/13R-b R-b
12/13R-b R-b
13/13R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/13] drm/xe: Add and use more KLV helpers

v1: https://patchwork.freedesktop.org/series/169511/#rev1
v2:
don't mix units, report too long string (Michal/Sashiko) don't allow to truncate object (Michal/Sashiko) avoid KUNIT_ASSERT under mutex (Michal/Sashiko) add more tests (me)

Michal Wajdeczko (13):
drm/xe/guc: Allow to print single KLV drm/xe/guc: Prepare to print group KLVs drm/xe/guc: Add basic KLV encoding helpers drm/xe/guc: Add string KLV encoding helper drm/xe/guc: Add object KLV encoding helper drm/xe/guc: Add KLV parsing helper
drm/xe/guc: Formalize Reserved KLVs drm/xe/tests: Add GuC KLV helpers basic tests drm/xe/tests: Add string encoding helper test drm/xe/tests: Add object encoding helper test drm/xe/tests: Add GuC KLV printer test drm/xe/tests: Add migration packet test drm/xe/pf: Handle migration descriptor using KLV helpers

 drivers/gpu/drm/xe/abi/guc_klvs_abi.h         |  17 +
 drivers/gpu/drm/xe/abi/xe_driver_klvs_abi.h   |  27 ++
 .../drm/xe/tests/xe_guc_klv_helpers_kunit.c   | 444 ++++++++++++++++++
 .../gpu/drm/xe/tests/xe_sriov_packet_kunit.c  |  88 ++++
 drivers/gpu/drm/xe/xe_guc_klv_helpers.c       | 258 +++++++++-
 drivers/gpu/drm/xe/xe_guc_klv_helpers.h       |  10 +
 drivers/gpu/drm/xe/xe_sriov_packet.c          | 117 ++---
 7 files changed, 886 insertions(+), 75 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/abi/xe_driver_klvs_abi.h
 create mode 100644 drivers/gpu/drm/xe/tests/xe_guc_klv_helpers_kunit.c
 create mode 100644 drivers/gpu/drm/xe/tests/xe_sriov_packet_kunit.c
Signature · 1 line
2.47.1