mirror of https://gitee.com/openkylin/linux.git
drm/radeon/kms: set the MSB of the HDP slice size
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9e46a48df2
commit
c46cb4dabd
|
@ -1147,7 +1147,7 @@ static void evergreen_mc_program(struct radeon_device *rdev)
|
||||||
tmp |= ((rdev->mc.vram_start >> 24) & 0xFFFF);
|
tmp |= ((rdev->mc.vram_start >> 24) & 0xFFFF);
|
||||||
WREG32(MC_VM_FB_LOCATION, tmp);
|
WREG32(MC_VM_FB_LOCATION, tmp);
|
||||||
WREG32(HDP_NONSURFACE_BASE, (rdev->mc.vram_start >> 8));
|
WREG32(HDP_NONSURFACE_BASE, (rdev->mc.vram_start >> 8));
|
||||||
WREG32(HDP_NONSURFACE_INFO, (2 << 7));
|
WREG32(HDP_NONSURFACE_INFO, (2 << 7) | (1 << 30));
|
||||||
WREG32(HDP_NONSURFACE_SIZE, 0x3FFFFFFF);
|
WREG32(HDP_NONSURFACE_SIZE, 0x3FFFFFFF);
|
||||||
if (rdev->flags & RADEON_IS_AGP) {
|
if (rdev->flags & RADEON_IS_AGP) {
|
||||||
WREG32(MC_VM_AGP_TOP, rdev->mc.gtt_end >> 16);
|
WREG32(MC_VM_AGP_TOP, rdev->mc.gtt_end >> 16);
|
||||||
|
|
Loading…
Reference in New Issue