Skip to content

drm/xe/vf: Post-migration recovery of GGTT nodes and CTB

Tomasz Lis intel-xe 15 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v14 Latest4 patches 0 repliesNew
  2. v134 patches 0 repliesSuperseded
  3. v124 patches 3 repliesSuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v114 patches3 repliesSuperseded
v104 patches3 repliesSuperseded
v94 patches8 repliesSuperseded
v84 patches9 repliesSuperseded
v74 patches10 repliesSuperseded
v64 patches9 repliesSuperseded
v54 patches0 repliesSuperseded
v4 posting 2/23 patches10 repliesSuperseded
v4 posting 1/23 patches0 repliesSuperseded
v33 patches5 repliesSuperseded
v23 patches5 repliesSuperseded
v13 patches0 repliesSuperseded

Patches in v14 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe/vf: Divide GGTT ballooning into allocation and insertiondrivers/gpu/drm/xe/xe_ggtt.c drivers/gpu/drm/xe/xe_ggtt.h drivers/gpu/drm/xe/xe_gt_sriov_vf.c +1 more+107 -500 replies
2/4drm/xe/vf: Shifting GGTT area post migrationdrivers/gpu/drm/xe/xe_ggtt.c drivers/gpu/drm/xe/xe_ggtt.h drivers/gpu/drm/xe/xe_gt_sriov_vf.c +3 more+180 -00 replies
3/4drm/xe/guc: Introduce enum with offsets for context register H2Gsdrivers/gpu/drm/xe/abi/guc_actions_abi.h drivers/gpu/drm/xe/xe_guc_submit.c+48 -00 replies
4/4drm/xe/vf: Fixup CTB send buffer messages after migrationdrivers/gpu/drm/xe/xe_guc_ct.c drivers/gpu/drm/xe/xe_guc_ct.h drivers/gpu/drm/xe/xe_map.h +1 more+223 -10 replies

Reviews trailers per patch

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

PatchMichal Wajdeczko
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 v14 thread

Cover letter [PATCH v14 0/4] drm/xe/vf: Post-migration recovery of GGTT nodes and CTB

To support VF Migration, it is necessary to do fixups to any non-virtualized resources. These fixups need to be applied within VM, on the KMD working with VF.

This series adds two fixup functions to the recovery worker:
* for fixing drm_mm nodes which represent GGTT allocations
* for fixing content of outgoing CTB buffer

v2: Fixed missing include, made checkpatch happy
v3: Moved some functs to xe_ggtt.c; moved shift computation to just
after querying; improved documentation; switched some warns to asserts; skipping fixups when GGTT shift eq 0; iterating through tiles rather than gts; fixes in log messages
v4: Updated kerneldocs, removed unused funct, properly allocate
balloning nodes if non existent, removed inline keywords, enums for offsets in CTB messages, less error messages, if return unused then made functs void
v5: Removed drm_mm change, but added VF init modifications. These then
allowed to re-use ballooning functions during ggtt node fixing.
v6: Minor update - fixed some misplaced funct declarations; sent to
a different list by mistake:
https://patchwork.freedesktop.org/series/146977/#rev2
v7: Altered, rephrased, added or promoted several kerneldocs; added
_locked versions of some functs; improved lockdep tagging; altered error handling; renamed or moved some functions; defined few macros; prepared CTB fixups for future changes of CTB handling; renamed and introduced enums; did many minor changes to adjust for xe-specific coding practices
v8: renamed several functions, reused helpers, separated switch cases,
documented more functs, shortened asserts, added _locked suffixes, fixed a leak in error path
v9: More helpers, fixed coding style, renamed and moved functions,
improved kerneldoc, added asserts, avoided null dereference
v10: More xe_map*() functs to macros, added asserts and debug print,
changed params of two functions
v11: Errors in place of some asserts, printing ggtt shift via debugfs,
minor style fixes
v12: Fixed invalid conditionals in CTB fixups
v13: LEN to MIN_LEN in multi-lrc message, removed redundant
__maybe_unused
v14: Just a shuffling of lines between patches, no real code change

Tomasz Lis (4):
drm/xe/vf: Divide GGTT ballooning into allocation and insertion drm/xe/vf: Shifting GGTT area post migration drm/xe/guc: Introduce enum with offsets for context register H2Gs drm/xe/vf: Fixup CTB send buffer messages after migration

 drivers/gpu/drm/xe/abi/guc_actions_abi.h  |  31 +++
 drivers/gpu/drm/xe/xe_ggtt.c              |  83 ++++++--
 drivers/gpu/drm/xe/xe_ggtt.h              |   7 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c       | 218 +++++++++++++++++++---
 drivers/gpu/drm/xe/xe_gt_sriov_vf.h       |   4 +
 drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h |   2 +
 drivers/gpu/drm/xe/xe_guc_ct.c            | 183 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_ct.h            |   2 +
 drivers/gpu/drm/xe/xe_guc_submit.c        |  17 ++
 drivers/gpu/drm/xe/xe_map.h               |  18 ++
 drivers/gpu/drm/xe/xe_sriov_vf.c          |  40 ++++
 11 files changed, 556 insertions(+), 49 deletions(-)
Signature · 1 line
2.25.1