]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: update xgmi info and vram_base_offset on resume
authorSamuel Zhang <guoqing.zhang@amd.com>
Fri, 11 Apr 2025 07:59:34 +0000 (15:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:01 +0000 (12:19 -0400)
commit855a2a029a2eda88317cdccde9b3a3168ad193dc
tree6c5dbe6850cba38d294ef9947b89913a8c0772d7
parent78d7032b08385a6bf64915b3fc11e9a4d1803302
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h