Skip to content

Introduce GuC context ID Manager

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 Latest4 patches 3 repliesIn review
  2. v14 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe/guc: Move GUC_ID_MAX definition to GuC ABI headerdrivers/gpu/drm/xe/xe_guc_fwif.h drivers/gpu/drm/xe/xe_guc_submit.c+2 -10 replies
2/4drm/xe/guc: Introduce GuC context ID Managerdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_guc_id_mgr.c drivers/gpu/drm/xe/xe_guc_id_mgr.h +1 more+315 -01 reply
3/4drm/xe/kunit: Add basic tests for GuC context ID Managerdrivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c drivers/gpu/drm/xe/xe_guc_id_mgr.c+140 -01 reply
4/4drm/xe/guc: Use GuC ID Manager in submission codedrivers/gpu/drm/xe/xe_guc_submit.c drivers/gpu/drm/xe/xe_guc_types.h+10 -361 reply

Reviews trailers per patch

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

PatchMatthew Brost
1/4R-b
2/4R-b
3/4R-b
4/4R-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 0/4] Introduce GuC context ID Manager

While we are already managing GuC IDs directly in GuC submission code, using bitmap() for MLRC and ida() for SLRC, this code can't be easily extended to meet additional requirements for SR-IOV use cases, like limited number of IDs available on VFs, or ID range reservation for provisioning VFs by the PF.

v2: review comments from Matt

Michal Wajdeczko (4):
drm/xe/guc: Move GUC_ID_MAX definition to GuC ABI header drm/xe/guc: Introduce GuC context ID Manager drm/xe/kunit: Add basic tests for GuC context ID Manager drm/xe/guc: Use GuC ID Manager in submission code

 drivers/gpu/drm/xe/Makefile                   |   1 +
 drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c | 136 +++++++++
 drivers/gpu/drm/xe/xe_guc_fwif.h              |   2 +
 drivers/gpu/drm/xe/xe_guc_id_mgr.c            | 279 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_id_mgr.h            |  22 ++
 drivers/gpu/drm/xe/xe_guc_submit.c            |  43 +--
 drivers/gpu/drm/xe/xe_guc_types.h             |  21 +-
 7 files changed, 467 insertions(+), 37 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c
 create mode 100644 drivers/gpu/drm/xe/xe_guc_id_mgr.c
 create mode 100644 drivers/gpu/drm/xe/xe_guc_id_mgr.h
Signature · 1 line
2.43.0