Commit 3d918c0e authored by Shaoyun Liu's avatar Shaoyun Liu Committed by Alex Deucher
Browse files

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

parent 4a2ba394
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -712,6 +712,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
	int chansize, numchan;
	int r;

	if (amdgpu_emu_mode != 1)
		adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev);
	if (!adev->gmc.vram_width) {
		/* hbm memory channel size */