drm/xe/pf: Trigger explicit FLR while disabling VFs
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 25 Jun 2024 19:45:46 +0000 (21:45 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 26 Jun 2024 22:25:20 +0000 (18:25 -0400)
commit8511d9da2058ffca7c745c48e93c51840e2ed65e
tree287ffc0a9f6b6e443c6336391d19713807a8cecd
parent92e9db6e1fa30c87f9c25fae9c9e275885cdd0b2
drm/xe/pf: Trigger explicit FLR while disabling VFs

We attempt to unprovision all VFs GuC when disabling them, but
GuC may reject such request if the target VF was previously active
but VF driver didn't unload with explicit VF reset H2G action or
the VMM has not started the VF FLR.

To avoid mismatches between configs maintained the PF and GuC,
trigger an explicit FLR sequences just before releasing resources.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240625194546.1301-2-michal.wajdeczko@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.h
drivers/gpu/drm/xe/xe_pci_sriov.c