Skip to content

PF: migration-friendly auto-provisioning

Michal Wajdeczko intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe/pf: Use migration-friendly context IDs auto-provisioningdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_sriov_pf_helpers.h+27 -02 replies
2/3drm/xe/pf: Use migration-friendly doorbells auto-provisioningdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c+17 -01 reply
3/3drm/xe/tests: Add KUnit tests for PF fair provisioningdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c+166 -02 replies

Reviews trailers per patch

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

PatchPiotr Piórkowski
1/3R-b
2/3R-b
3/3R-b R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] PF: migration-friendly auto-provisioning

Instead of trying very hard to find the largest fair number of GuC IDs that could be allocated for VFs on the current GT, pick some smaller rounded down to power-of-two value that is more likely to be provisioned in the same manner by the other PF instance.

num VFs | num contexts | num doorbells
--------+--------------+--------------

  63..32 | 1024         | 4
  31..16 | 2048         | 8
  15..8  | 4096         | 16
   7..4  | 8192         | 32
   3..2  | 16384        | 64
      1  | 32768        | 128  (regular PF)
      1  | 64512        | 240  (admin only PF)

Only if the above values can't be satisfied, fallback to estimated largest available value.

Michal Wajdeczko (3):
drm/xe/pf: Use migration-friendly context IDs auto-provisioning drm/xe/pf: Use migration-friendly doorbells auto-provisioning drm/xe/tests: Add KUnit tests for PF fair provisioning

 .../xe/tests/xe_gt_sriov_pf_config_kunit.c    | 162 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    |  37 ++++
 drivers/gpu/drm/xe/xe_sriov_pf_helpers.h      |  11 ++
 3 files changed, 210 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
Signature · 1 line
2.47.1