mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 22:43:04 -04:00
After restore, GuC will not answer to any messages from VF KMD until fixups are applied. When that is done, VF KMD sends RESFIX_DONE message to GuC, at which point GuC resumes normal operation. This patch implements sending the RESFIX_DONE message at end of post-migration recovery. v2: keep pm ref during whole recovery, style fixes (Michal) v3: assert removal to separate patch, debug message per GuC instead of one, comments changes (Michal) v4: improve one debug message (Michal) Signed-off-by: Tomasz Lis <tomasz.lis@intel.com> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241104213449.1455694-4-tomasz.lis@intel.com Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_SRIOV_VF_H_
|
|
#define _XE_GT_SRIOV_VF_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_printer;
|
|
struct xe_gt;
|
|
struct xe_reg;
|
|
|
|
int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt);
|
|
int xe_gt_sriov_vf_query_config(struct xe_gt *gt);
|
|
int xe_gt_sriov_vf_connect(struct xe_gt *gt);
|
|
int xe_gt_sriov_vf_query_runtime(struct xe_gt *gt);
|
|
int xe_gt_sriov_vf_prepare_ggtt(struct xe_gt *gt);
|
|
int xe_gt_sriov_vf_notify_resfix_done(struct xe_gt *gt);
|
|
void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt);
|
|
|
|
u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt);
|
|
u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt);
|
|
u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt);
|
|
u32 xe_gt_sriov_vf_read32(struct xe_gt *gt, struct xe_reg reg);
|
|
void xe_gt_sriov_vf_write32(struct xe_gt *gt, struct xe_reg reg, u32 val);
|
|
|
|
void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p);
|
|
void xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p);
|
|
void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p);
|
|
|
|
#endif
|