Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Subject: [PATCH 0/6] PF: Initial support to save/restore VF GuC state
Date: Thu, 12 Sep 2024 22:38:11 +0200	[thread overview]
Message-ID: <20240912203817.1880-1-michal.wajdeczko@intel.com> (raw)

To successfully migrate a VM with attached GPU VF we also need to
migrate VF's GuC state. This series adds necessary functions to save
and restore a VF state and also allows testing migration flow using
debugfs, ahead of availability of other required components that are
under development.

Michal Wajdeczko (6):
  drm/xe/guc: Fix GUC_{SUBMIT,FIRMWARE}_VER helper macros
  drm/xe/guc: Add PF2GUC_SAVE_RESTORE_VF to ABI
  drm/xe/pf: Add functions to save and restore VF GuC state
  drm/xe/pf: Save VF GuC state when pausing VF
  drm/xe/pf: Allow to view and replace VF GuC state over debugfs
  drm/xe/pf: Allow to trigger VF GuC state restore from debugfs

 drivers/gpu/drm/xe/Makefile                   |   1 +
 .../gpu/drm/xe/abi/guc_actions_sriov_abi.h    |  61 +++
 drivers/gpu/drm/xe/xe_gt_sriov_pf.c           |   2 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c   |  41 +-
 .../gpu/drm/xe/xe_gt_sriov_pf_control_types.h |   2 +
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c   |  49 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c | 419 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h |  24 +
 .../drm/xe/xe_gt_sriov_pf_migration_types.h   |  40 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h     |   6 +
 drivers/gpu/drm/xe/xe_guc.h                   |   6 +-
 11 files changed, 648 insertions(+), 3 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
 create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h
 create mode 100644 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration_types.h

-- 
2.43.0


             reply	other threads:[~2024-09-12 20:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12 20:38 Michal Wajdeczko [this message]
2024-09-12 20:38 ` [PATCH 1/6] drm/xe/guc: Fix GUC_{SUBMIT,FIRMWARE}_VER helper macros Michal Wajdeczko
2024-09-12 20:38 ` [PATCH 2/6] drm/xe/guc: Add PF2GUC_SAVE_RESTORE_VF to ABI Michal Wajdeczko
2024-09-12 20:38 ` [PATCH 3/6] drm/xe/pf: Add functions to save and restore VF GuC state Michal Wajdeczko
2024-09-13 12:00   ` Michal Wajdeczko
2024-09-12 20:38 ` [PATCH 4/6] drm/xe/pf: Save VF GuC state when pausing VF Michal Wajdeczko
2024-09-12 20:38 ` [PATCH 5/6] drm/xe/pf: Allow to view and replace VF GuC state over debugfs Michal Wajdeczko
2024-09-12 20:38 ` [PATCH 6/6] drm/xe/pf: Allow to trigger VF GuC state restore from debugfs Michal Wajdeczko
2024-09-12 20:43 ` ✓ CI.Patch_applied: success for PF: Initial support to save/restore VF GuC state Patchwork
2024-09-12 20:44 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-12 20:45 ` ✓ CI.KUnit: success " Patchwork
2024-09-12 20:50 ` ✗ CI.Build: failure " Patchwork
2024-09-13 15:15 ` ✓ CI.Patch_applied: success for PF: Initial support to save/restore VF GuC state (rev2) Patchwork
2024-09-13 15:16 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-13 15:17 ` ✓ CI.KUnit: success " Patchwork
2024-09-13 15:28 ` ✓ CI.Build: " Patchwork
2024-09-13 15:31 ` ✓ CI.Hooks: " Patchwork
2024-09-13 15:32 ` ✓ CI.checksparse: " Patchwork
2024-09-13 15:50 ` ✓ CI.BAT: " Patchwork
2024-09-14  7:08 ` ✗ CI.FULL: failure " Patchwork
2024-09-16 10:59   ` Michal Wajdeczko
2024-09-16  9:57 ` [PATCH 0/6] PF: Initial support to save/restore VF GuC state Michał Winiarski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240912203817.1880-1-michal.wajdeczko@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox