UPSTREAM: drm/xe/pf: Move VFs reprovisioning to worker
[ Upstream commit a4d1c5d0 ] 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. Change-Id: If6db4df2e92667bdd8299ceae65a56e1d5e3f2fa 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 Stable-dep-of: 81dccec4 ("drm/xe/pf: Prepare to stop SR-IOV support prior GT reset") Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit be77ce6b) Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com>
Loading