summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorShaoyun Liu <Shaoyun.Liu@amd.com>2018-02-06 17:29:35 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:19:48 -0500
commit3d918c0ed26091beb767a8d23c4226706b0e8e88 (patch)
tree201436c2d255e10d543777b1d58a56b749b573a3 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parent4a2ba394777a7da1e49f4f13a9b9d6882be1f1d4 (diff)
downloadop-kernel-dev-3d918c0ed26091beb767a8d23c4226706b0e8e88.zip
op-kernel-dev-3d918c0ed26091beb767a8d23c4226706b0e8e88.tar.gz
drm/amdgpu: Avoid get vram info from atom bios on emulation mode
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 0f4a9a8..d5b6d00 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -712,7 +712,8 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
int chansize, numchan;
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) {
/* hbm memory channel size */
chansize = 128;
OpenPOWER on IntegriCloud