mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
The migration support only needs to be initialized once, but it was incorrectly called from the xe_gt_sriov_pf_init_hw(), which is part of the reset flow and may be called multiple times. Fixes:d86e3737c7("drm/xe/pf: Add functions to save and restore VF GuC state") Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250120232443.544-1-michal.wajdeczko@intel.com (cherry picked from commit9ebb5846e1) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
38 lines
735 B
C
38 lines
735 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);
|
|
int xe_gt_sriov_pf_init(struct xe_gt *gt);
|
|
void xe_gt_sriov_pf_init_hw(struct xe_gt *gt);
|
|
void xe_gt_sriov_pf_sanitize_hw(struct xe_gt *gt, unsigned int vfid);
|
|
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 int xe_gt_sriov_pf_init(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
|