]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/vf: Wait for all fixups before using default LRCs
authorTomasz Lis <tomasz.lis@intel.com>
Thu, 26 Feb 2026 21:27:00 +0000 (22:27 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 27 Feb 2026 17:02:06 +0000 (18:02 +0100)
commitf3fb5f1ebbf39e685dd2885c9dbc8bb0a80be7c6
tree1c6e5f42f52ac84256a0e070012e7544e3ff1ac0
parentec172c7befc4a48ea7d6afe6f0fa23c533222233
drm/xe/vf: Wait for all fixups before using default LRCs

When a context is being created during save/restore, the LRC creation
needs to wait for GGTT address space to be shifted. But it also needs
to have fixed default LRCs. This is mandatory to avoid the situation
where LRC will be created based on data from before the fixups, but
reference within exec queue will be set too late for fixups.

This fixes an issue where contexts created during save/restore have
a large chance of having one unfixed LRC, due to the xe_lrc_create()
being synced for equal start to race with default LRC fixups.

v2: Move the fixups confirmation further, behind all fixups.
  Revert some renames.

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260226212701.2937065-4-tomasz.lis@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h