mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 06:22:40 -04:00
The check whether GuC ABI version meets requirements shall be
performed after said version is received from GuC.
Doing it in wrong order was triggering a warning:
xe 0000:00:02.1: [drm] Assertion `gt->sriov.vf.guc_version.major` failed!
With this change, dislodge part of the VF migration support check
and moved it to after GuC handshake.
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Tested-by: Matthew Brost <matthew.brost@intel.com> #v1
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6349
Fixes: ff1d2b5e3d ("drm/xe: Read VF GMD_ID with a specifically-allocated dummy GT")
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251021224817.1593817-3-tomasz.lis@intel.com
21 lines
522 B
C
21 lines
522 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SRIOV_VF_H_
|
|
#define _XE_SRIOV_VF_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct dentry;
|
|
struct xe_device;
|
|
|
|
void xe_sriov_vf_init_early(struct xe_device *xe);
|
|
int xe_sriov_vf_init_late(struct xe_device *xe);
|
|
bool xe_sriov_vf_migration_supported(struct xe_device *xe);
|
|
void xe_sriov_vf_migration_disable(struct xe_device *xe, const char *fmt, ...);
|
|
void xe_sriov_vf_debugfs_register(struct xe_device *xe, struct dentry *root);
|
|
|
|
#endif
|