提交 3d918c0e 编写于 作者: S Shaoyun Liu 提交者: Alex Deucher

drm/amdgpu: Avoid get vram info from atom bios on emulation mode

Signed-off-by: NShaoyun Liu <Shaoyun.Liu@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 4a2ba394
...@@ -712,7 +712,8 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev) ...@@ -712,7 +712,8 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
int chansize, numchan; int chansize, numchan;
int r; int r;
adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev); if (amdgpu_emu_mode != 1)
adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev);
if (!adev->gmc.vram_width) { if (!adev->gmc.vram_width) {
/* hbm memory channel size */ /* hbm memory channel size */
chansize = 128; chansize = 128;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册