OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a2ba39
)
drm/amdgpu: Avoid get vram info from atom bios on emulation mode
author
Shaoyun Liu
<Shaoyun.Liu@amd.com>
Tue, 6 Feb 2018 22:29:35 +0000
(17:29 -0500)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:48 +0000
(14:19 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
patch
|
blob
|
history
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
(file)
--- 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;