mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
05b3ef69e5
commit
e71270fd80
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue