Skip to content

drm/xe/pf: Allow to change VFs VRAM quota using sysfs

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 Latest10 patches 6 repliesIn review
  2. v19 patches 11 repliesSuperseded

Changes in v2 from the cover letter

add global helper for lmtt page size (Michal) add LMTT setup to .test_init (Michal)
allow VRAM changes only when LMTT (Piotr) account for min_spare for PF (Piotr)
fix typos (Piotr) and kernel-doc (CI)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/xe/pf: Expose LMTT page sizedrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_lmtt.c drivers/gpu/drm/xe/xe_lmtt.h+19 -21 reply
2/10drm/xe/pf: Add locked variants of VRAM configuration functionsdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h+74 -70 replies
3/10drm/xe/pf: Add functions for VRAM provisioningdrivers/gpu/drm/xe/xe_sriov_pf_provision.c drivers/gpu/drm/xe/xe_sriov_pf_provision.h+110 -00 replies
4/10drm/xe/pf: Allow to change VFs VRAM quota using sysfsdrivers/gpu/drm/xe/xe_sriov_pf_sysfs.c+29 -21 reply
5/10drm/xe/pf: Use migration-friendly VRAM auto-provisioningdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c+29 -00 replies
6/10drm/xe/tests: Add KUnit tests for new VRAM fair provisioningdrivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c+95 -11 reply
7/10drm/xe/pf: Don't check for empty configdrivers/gpu/drm/xe/xe_sriov_pf_provision.c+0 -130 replies
8/10drm/xe/pf: Prefer guard(mutex) when doing fair LMEM provisioningdrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c+3 -40 replies
9/10drm/xe/pf: Skip VRAM auto-provisioning if already provisioneddrivers/gpu/drm/xe/xe_gt_sriov_pf_config.c+56 -00 replies
10/10drm/xe/pf: Add documentation for vram_quotaDocumentation/ABI/testing/sysfs-driver-intel-xe-sriov+31 -01 reply

Reviews trailers per patch

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

PatchPiotr PiórkowskiRodrigo Vivi
1/10R-b
2/10R-b
3/10R-b
4/10R-b A-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b A-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/10] drm/xe/pf: Allow to change VFs VRAM quota using sysfs

Extend Xe driver specific sysfs SR-IOV knobs with VRAM provisioning.

/sys/bus/pci/drivers/xe/BDF/

 ├── sriov_admin/
     ├── .bulk_profile
     │   └── vram_quota                 [RW] unsigned integer
     ├── vf1/
     │   └── profile
     │       └── vram_quota             [RW] unsigned integer
     ├── vf2/
     │   └── profile
     │       └── vram_quota             [RW] unsigned integer
Cc Rodrigo Vivi <[email protected]>
Cc Matthew Brost <[email protected]>

v1: https://patchwork.freedesktop.org/series/161625/#rev1
v2:
add global helper for lmtt page size (Michal) add LMTT setup to .test_init (Michal)
allow VRAM changes only when LMTT (Piotr) account for min_spare for PF (Piotr)
fix typos (Piotr) and kernel-doc (CI)

Michal Wajdeczko (10):
drm/xe/pf: Expose LMTT page size
drm/xe/pf: Add locked variants of VRAM configuration functions drm/xe/pf: Add functions for VRAM provisioning drm/xe/pf: Allow to change VFs VRAM quota using sysfs drm/xe/pf: Use migration-friendly VRAM auto-provisioning drm/xe/tests: Add KUnit tests for new VRAM fair provisioning drm/xe/pf: Don't check for empty config
drm/xe/pf: Prefer guard(mutex) when doing fair LMEM provisioning drm/xe/pf: Skip VRAM auto-provisioning if already provisioned drm/xe/pf: Add documentation for vram_quota

 .../ABI/testing/sysfs-driver-intel-xe-sriov   |  31 ++++
 .../xe/tests/xe_gt_sriov_pf_config_kunit.c    |  96 +++++++++-
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    | 172 ++++++++++++++++--
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h    |   4 +
 drivers/gpu/drm/xe/xe_lmtt.c                  |  17 ++
 drivers/gpu/drm/xe/xe_lmtt.h                  |   1 +
 drivers/gpu/drm/xe/xe_sriov_pf_provision.c    | 119 ++++++++++--
 drivers/gpu/drm/xe/xe_sriov_pf_provision.h    |   4 +
 drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c        |  31 +++-
 9 files changed, 446 insertions(+), 29 deletions(-)
Signature · 1 line
2.47.1