]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Add FLR_PREPARE state to VF control flow
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 9 Mar 2026 15:24:48 +0000 (16:24 +0100)
committerMichał Winiarski <michal.winiarski@intel.com>
Tue, 24 Mar 2026 09:47:52 +0000 (10:47 +0100)
commit2de36e3f72dae2035b2742ffe3355e43067a81ad
tree30d3451ef92c8ecee7649b9277ca2222cd9ff76e
parenta31566762d4075646a8a2214586158b681e94305
drm/xe/pf: Add FLR_PREPARE state to VF control flow

Our xe-vfio-pci component relies on the confirmation from the PF
that VF FLR processing has finished, but due to the notification
latency on the HW/FW side, PF might be unaware yet of the already
triggered VF FLR.

Update VF state machine with new FLR_PREPARE state that indicate
imminent VF FLR notification and treat that as a begin of the FLR
sequence. Also introduce function that xe-vfio-pci should call to
guarantee correct synchronization.

v2: move PREPARE into WIP, update commit msg (Michal)

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Co-developed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://patch.msgid.link/20260309152449.910636-2-piotr.piorkowski@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@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_gt_sriov_pf_control_types.h
drivers/gpu/drm/xe/xe_sriov_pf_control.c
drivers/gpu/drm/xe/xe_sriov_pf_control.h
drivers/gpu/drm/xe/xe_sriov_vfio.c
include/drm/intel/xe_sriov_vfio.h