Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Lis <tomasz.lis@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: "Michał Winiarski" <michal.winiarski@intel.com>,
	"Michał Wajdeczko" <michal.wajdeczko@intel.com>,
	"Piotr Piórkowski" <piotr.piorkowski@intel.com>,
	"Matthew Brost" <matthew.brost@intel.com>
Subject: [PATCH v3 0/4] drm/xe/vf: Fix exec queue creation during post-migration recovery
Date: Thu, 26 Feb 2026 00:54:43 +0100	[thread overview]
Message-ID: <20260225235447.2772383-1-tomasz.lis@intel.com> (raw)

Fix a few issues which sporadically happen due to a race between
post-migration fixups procedure, and exec queue creation routine.

Tests which create a lot of exec queues were sporadically failing
due to one of LRCs having its state within VRAM damaged. This series
fixes all such issues, by prolonging wait for fixups within EQ
creation, and also re-creating the one LRC whose creation happened
at the time of VF switch.

v2: Add a patch with atomic value increase which allowed to solve the
  few very rare test fails which were still happening.

v3: Reuse _xe_exec_queue_fini(). Add setter and getter for LRC
  references. Move fixups confirmation forwardr in time. Refactor
  changes to __xe_exec_queue_init().

Tomasz Lis (4):
  drm/xe/queue: Call fini on exec queue creation fail
  drm/xe/queue: Wrappers for setting and getting LRC references
  drm/xe/vf: Wait for all fixups before using default LRCs
  drm/xe/vf: Redo LRC creation while in VF fixups

 drivers/gpu/drm/xe/xe_exec_queue.c        | 121 +++++++++++++++-------
 drivers/gpu/drm/xe/xe_exec_queue.h        |   1 +
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c       |  41 ++++++--
 drivers/gpu/drm/xe/xe_gt_sriov_vf.h       |   3 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h |   4 +-
 drivers/gpu/drm/xe/xe_lrc.h               |   3 +-
 6 files changed, 121 insertions(+), 52 deletions(-)

-- 
2.25.1


             reply	other threads:[~2026-02-25 23:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25 23:54 Tomasz Lis [this message]
2026-02-25 23:54 ` [PATCH v3 1/4] drm/xe/queue: Call fini on exec queue creation fail Tomasz Lis
2026-02-25 23:54 ` [PATCH v3 2/4] drm/xe/queue: Wrappers for setting and getting LRC references Tomasz Lis
2026-02-26  1:42   ` Matthew Brost
2026-02-26  1:57     ` Matthew Brost
2026-02-26 17:26       ` Lis, Tomasz
2026-02-26 17:30         ` Matthew Brost
2026-02-25 23:54 ` [PATCH v3 3/4] drm/xe/vf: Wait for all fixups before using default LRCs Tomasz Lis
2026-02-25 23:54 ` [PATCH v3 4/4] drm/xe/vf: Redo LRC creation while in VF fixups Tomasz Lis
2026-02-26  1:49   ` Matthew Brost
2026-02-26  1:24 ` ✓ CI.KUnit: success for drm/xe/vf: Fix exec queue creation during post-migration recovery (rev3) Patchwork
2026-02-26  2:02 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-26  6:08 ` ✗ Xe.CI.FULL: failure " Patchwork

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=20260225235447.2772383-1-tomasz.lis@intel.com \
    --to=tomasz.lis@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=michal.winiarski@intel.com \
    --cc=piotr.piorkowski@intel.com \
    /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