drm/xe/pf: Move VFs reprovisioning to worker
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 25 Jan 2025 21:55:05 +0000 (22:55 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 27 Jan 2025 19:34:18 +0000 (20:34 +0100)
commita4d1c5d0b99b75263a5626d2e52d569db3844b33
tree843c3926115d2ffd060c89f4e555262491742fda
parent14b66746088098f43db1e8732ff8902ddbdd4de0
drm/xe/pf: Move VFs reprovisioning to worker

Since the GuC is reset during GT reset, we need to re-send the
entire SR-IOV provisioning configuration to the GuC. But since
this whole configuration is protected by the PF master mutex and
we can't avoid making allocations under this mutex (like during
LMEM provisioning), we can't do this reprovisioning from gt-reset
path if we want to be reclaim-safe. Move VFs reprovisioning to a
async worker that we will start from the gt-reset path.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250125215505.720-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h