Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] VF double migration
@ 2025-10-23 15:36 Satyanarayana K V P
  2025-10-23 15:36 ` [PATCH v2 1/2] drm/xe/vf: Introduce RESFIX start marker support Satyanarayana K V P
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Satyanarayana K V P @ 2025-10-23 15:36 UTC (permalink / raw)
  To: intel-xe; +Cc: Satyanarayana K V P

In scenarios involving double migration, the VF KMD may encounter
situations where it is instructed to re-migrate before having the
opportunity to send RESFIX_DONE for the initial migration. This can occur
when the fix-up for the prior migration is still underway, but the VF KMD
is migrated again.

Consequently, this may lead to the possibility of sending two migration
notifications (i.e., pending fix-up for the first migration and a second
notification for the new migration). Upon receiving the first RES_FIX
notification, the GuC will resume VF submission on the GPU, potentially
resulting in undefined behavior, such as system hangs or crashes.

To avoid these hangs, a new VF2GUC action `VF2GUC_NOTIFY_RESFIX_START` is
sent along with marker and when GUC receives the same marker with
`VF2GUC_NOTIFY_RESFIX_DONE`action, it starts scheduling work loads from VF.

---
V1 - V2:
- Squashed "Enable RESFIX start marker only on supported GUC
versions" commit into a single commit. (Matt B)
- Use fault injection for testing VF double  migration feature (Matt B).

Satyanarayana K V P (2):
  drm/xe/vf: Introduce RESFIX start marker support
  drm/xe/vf: Use fault injection for testing VF double migration feature

 .../gpu/drm/xe/abi/guc_actions_sriov_abi.h    |  38 ++++++
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c           | 116 ++++++++++++++++--
 drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h     |   5 +
 drivers/gpu/drm/xe/xe_sriov_vf.c              |  42 ++++++-
 drivers/gpu/drm/xe/xe_sriov_vf_types.h        |   5 +
 5 files changed, 198 insertions(+), 8 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-10-31 20:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-23 15:36 [PATCH v2 0/2] VF double migration Satyanarayana K V P
2025-10-23 15:36 ` [PATCH v2 1/2] drm/xe/vf: Introduce RESFIX start marker support Satyanarayana K V P
2025-10-23 20:37   ` Matthew Brost
2025-10-23 20:54     ` Matthew Brost
2025-10-31 20:10     ` Matthew Brost
2025-10-23 23:33   ` Michal Wajdeczko
2025-10-23 15:36 ` [PATCH v2 2/2] drm/xe/vf: Use fault injection for testing VF double migration feature Satyanarayana K V P
2025-10-24 11:52   ` Michal Wajdeczko
2025-10-23 17:18 ` ✓ CI.KUnit: success for VF double migration (rev2) Patchwork
2025-10-23 18:17 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-10-24  5:23 ` ✗ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox