mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
VF FLR requires additional processing done by PF driver. The processing is done after FLR is already finished from PCIe perspective. In order to avoid a scenario where migration state transitions while PF processing is still in progress, additional synchronization point is needed. Add a helper that will be used as part of VF driver struct pci_error_handlers .reset_done() callback. Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patch.msgid.link/20251112132220.516975-24-michal.winiarski@intel.com Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
23 lines
956 B
C
23 lines
956 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SRIOV_PF_CONTROL_H_
|
|
#define _XE_SRIOV_PF_CONTROL_H_
|
|
|
|
struct xe_device;
|
|
|
|
int xe_sriov_pf_control_pause_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_resume_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_stop_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_reset_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_wait_flr(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_sync_flr(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_trigger_save_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_finish_save_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_trigger_restore_vf(struct xe_device *xe, unsigned int vfid);
|
|
int xe_sriov_pf_control_finish_restore_vf(struct xe_device *xe, unsigned int vfid);
|
|
|
|
#endif
|