diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-12-14 22:15:27 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:41:08 -0400 |
commit | 2d8e898e097cba408f7df9ba81cab9ba6ced4e4d (patch) | |
tree | 9965ed5f1fe42716ffd326d932b0f897accff435 /drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | |
parent | e4f3abaa97763342b38e265ac1153b8ed4c04866 (diff) |
drm/amdgpu/gmc9: set mc vm fb offset for raven
APU fb offset is set by sbios, which is different with DGPU.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@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/gfxhub_v1_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c index 005075ff00f7..bd1976a03c09 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | |||
@@ -31,6 +31,11 @@ | |||
31 | 31 | ||
32 | #include "soc15_common.h" | 32 | #include "soc15_common.h" |
33 | 33 | ||
34 | u64 gfxhub_v1_0_get_mc_fb_offset(struct amdgpu_device *adev) | ||
35 | { | ||
36 | return (u64)RREG32(SOC15_REG_OFFSET(GC, 0, mmMC_VM_FB_OFFSET)) << 24; | ||
37 | } | ||
38 | |||
34 | int gfxhub_v1_0_gart_enable(struct amdgpu_device *adev) | 39 | int gfxhub_v1_0_gart_enable(struct amdgpu_device *adev) |
35 | { | 40 | { |
36 | u32 tmp; | 41 | u32 tmp; |