mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
drm/amdgpu: update xgmi info and vram_base_offset on resume
For SRIOV VM env with XGMI enabled systems, XGMI physical node id may change when hibernate and resume with different VF. Update XGMI info and vram_base_offset on resume for gfx444 SRIOV env. Add amdgpu_virt_xgmi_migrate_enabled() as the feature flag. Signed-off-by: Jiang Liu <gerry@linux.alibaba.com> Signed-off-by: Samuel Zhang <guoqing.zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
78d7032b08
commit
855a2a029a
@@ -301,6 +301,9 @@ struct amdgpu_virt {
|
||||
union amd_sriov_ras_caps ras_telemetry_en_caps;
|
||||
struct amdgpu_virt_ras ras;
|
||||
struct amd_sriov_ras_telemetry_error_count count_cache;
|
||||
|
||||
/* hibernate and resume with different VF feature for xgmi enabled system */
|
||||
bool is_xgmi_node_migrate_enabled;
|
||||
};
|
||||
|
||||
struct amdgpu_video_codec_info;
|
||||
@@ -386,6 +389,10 @@ static inline bool is_virtual_machine(void)
|
||||
((adev)->virt.gim_feature & AMDGIM_FEATURE_VCN_RB_DECOUPLE)
|
||||
#define amdgpu_sriov_is_mes_info_enable(adev) \
|
||||
((adev)->virt.gim_feature & AMDGIM_FEATURE_MES_INFO_ENABLE)
|
||||
|
||||
#define amdgpu_virt_xgmi_migrate_enabled(adev) \
|
||||
((adev)->virt.is_xgmi_node_migrate_enabled && (adev)->gmc.xgmi.node_segment_size != 0)
|
||||
|
||||
bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev);
|
||||
void amdgpu_virt_init_setting(struct amdgpu_device *adev);
|
||||
int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init);
|
||||
|
||||
Reference in New Issue
Block a user