aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-03-20 17:18:38 -0400
committerDave Airlie <airlied@redhat.com>2012-03-21 02:55:57 -0400
commite71270fd80e99211a704c981c0f48d4e02a33473 (patch)
tree711149e5928ba0b30065ae2993b076aef4e46813 /drivers/gpu/drm/radeon
parent05b3ef69e5626799cbe6784bae09ad49f963721f (diff)
drm/radeon/kms/vm: set vram base offset properly for TN
Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/ni.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index 833892f1f48a..bae3ec332b45 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -1746,7 +1746,12 @@ int cayman_vm_init(struct radeon_device *rdev)
1746 /* number of VMs */ 1746 /* number of VMs */
1747 rdev->vm_manager.nvm = 8; 1747 rdev->vm_manager.nvm = 8;
1748 /* base offset of vram pages */ 1748 /* base offset of vram pages */
1749 rdev->vm_manager.vram_base_offset = 0; 1749 if (rdev->flags & RADEON_IS_IGP) {
1750 u64 tmp = RREG32(FUS_MC_VM_FB_OFFSET);
1751 tmp <<= 22;
1752 rdev->vm_manager.vram_base_offset = tmp;
1753 } else
1754 rdev->vm_manager.vram_base_offset = 0;
1750 return 0; 1755 return 0;
1751} 1756}
1752 1757