mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
411220808c
Any prior configurations pushed to the GuC are lost when the GT is reset. Push again all non-empty VF configurations to the GuC as part of the GuC reset procedure. This will also help restore early manual provisioning, when the PF was in the meantime suspended and then resumed. 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/20240701102738.934-3-michal.wajdeczko@intel.com
31 lines
550 B
C
31 lines
550 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_SRIOV_PF_H_
|
|
#define _XE_GT_SRIOV_PF_H_
|
|
|
|
struct xe_gt;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
int xe_gt_sriov_pf_init_early(struct xe_gt *gt);
|
|
void xe_gt_sriov_pf_init_hw(struct xe_gt *gt);
|
|
void xe_gt_sriov_pf_restart(struct xe_gt *gt);
|
|
#else
|
|
static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void xe_gt_sriov_pf_init_hw(struct xe_gt *gt)
|
|
{
|
|
}
|
|
|
|
static inline void xe_gt_sriov_pf_restart(struct xe_gt *gt)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|