Skip to content

Prepare GuC resource managers for VFs provisioning in PF admin only mode

Piórkowski, Piotr intel-xe 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 3 repliesIn review
  2. v17 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/xe/guc: Use ID manager to get total number of contextsdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_guc_id_mgr.c +2 more+23 -61 reply
2/7drm/xe/guc: Use DB manager to get total number of doorbellsdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_guc_db_mgr.c +1 more+21 -50 replies
3/7drm/xe/guc: Decouple the GuC ID manager from the submission statedrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c drivers/gpu/drm/xe/xe_guc_id_mgr.c +3 more+57 -152 replies
4/7drm/xe/guc: Decouple the GuC DB manager from the submission statedrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/tests/xe_guc_db_mgr_test.c drivers/gpu/drm/xe/xe_guc.c +3 more+50 -160 replies
5/7drm/xe/guc: Add start offset support to GuC ID managerdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c drivers/gpu/drm/xe/xe_guc_id_mgr.c +3 more+75 -240 replies
6/7drm/xe/guc: Add start offset support to GuC doorbell managerdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/tests/xe_guc_db_mgr_test.c drivers/gpu/drm/xe/xe_guc.c +3 more+74 -230 replies
7/7drm/xe/guc: Allow reserving GuC context IDs without retained rangedrivers/gpu/drm/xe/xe_guc_id_mgr.c+1 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] Prepare GuC resource managers for VFs provisioning in PF admin only mode

From: Piotr Piórkowski <[email protected]>

This series prepares the GuC context ID and doorbell resource managers for upcoming SR-IOV support that will introduce dedicated resource pools for VF provisioning in PF Admin Only mode.

Currently, both managers are tightly coupled to the GuC submission infrastructure and operate on full resource spaces starting at ID 0. The planned VF provisioning support requires the PF driver to manage independent subsets of GuC resources and reserve dedicated ranges for VFs without exposing them to the PF submission path.

v2: fix kunit tests

Piotr Piórkowski (7):
drm/xe/guc: Use ID manager to get total number of contexts drm/xe/guc: Use DB manager to get total number of doorbells drm/xe/guc: Decouple the GuC ID manager from the submission state drm/xe/guc: Decouple the GuC DB manager from the submission state drm/xe/guc: Add start offset support to GuC ID manager drm/xe/guc: Add start offset support to GuC doorbell manager drm/xe/guc: Allow reserving GuC context IDs without retained range

 .../xe/tests/xe_gt_sriov_pf_config_kunit.c    |  7 ++
 drivers/gpu/drm/xe/tests/xe_guc_db_mgr_test.c | 49 ++++++++++--
 drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c | 51 ++++++++++--
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    | 21 ++---
 drivers/gpu/drm/xe/xe_guc.c                   |  2 +-
 drivers/gpu/drm/xe/xe_guc_db_mgr.c            | 72 +++++++++++++----
 drivers/gpu/drm/xe/xe_guc_db_mgr.h            |  7 +-
 drivers/gpu/drm/xe/xe_guc_id_mgr.c            | 80 ++++++++++++++-----
 drivers/gpu/drm/xe/xe_guc_id_mgr.h            |  7 +-
 drivers/gpu/drm/xe/xe_guc_submit.c            |  5 +-
 drivers/gpu/drm/xe/xe_guc_types.h             | 45 ++++++++++-
 11 files changed, 278 insertions(+), 68 deletions(-)
Signature · 1 line
2.34.1