]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Only reserve vram for firmware with vega9 MS_HYPERV host.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 30 Mar 2022 14:48:19 +0000 (10:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Apr 2022 20:38:53 +0000 (16:38 -0400)
commit936cb42506c78de8f483c32e7a2c330acb0eb033
treeecdd78ec7af9c13cb4274b22ef40c442e2d7f1e8
parent44804434a4ec0bfe1da7352dbd4d9c1ed279d232
drm/amd/amdgpu: Only reserve vram for firmware with vega9 MS_HYPERV host.

driver loading failed on VEGA10 SRIOV VF with linux host due to a wide
range of stolen reserved vram.
Since VEGA10 SRIOV VF need to reserve vram for firmware with windows
Hyper_V host specifically, check hypervisor type to only reserve
memory for it, and the range of the reserved vram can be limited
to between 5M-7M area.

Fixes: 96d67325bead37 ("drm/amdgpu: Add stolen reserved memory for MI25 SRIOV.")
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c