OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b3ef6
)
drm/radeon/kms/vm: set vram base offset properly for TN
author
Alex Deucher
<alexander.deucher@amd.com>
Tue, 20 Mar 2012 21:18:38 +0000
(17:18 -0400)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 21 Mar 2012 06:55:57 +0000
(06:55 +0000)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/ni.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/ni.c
b/drivers/gpu/drm/radeon/ni.c
index
833892f
..
bae3ec3
100644
(file)
--- 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)
/* number of VMs */
rdev->vm_manager.nvm = 8;
/* base offset of vram pages */
- rdev->vm_manager.vram_base_offset = 0;
+ if (rdev->flags & RADEON_IS_IGP) {
+ u64 tmp = RREG32(FUS_MC_VM_FB_OFFSET);
+ tmp <<= 22;
+ rdev->vm_manager.vram_base_offset = tmp;
+ } else
+ rdev->vm_manager.vram_base_offset = 0;
return 0;
}