diff options
author | Matt Turner <mattst88@gmail.com> | 2009-10-14 00:34:41 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-16 08:49:23 +1000 |
commit | a77f171843d466d4af0d527bcb2d314fafa8afd7 (patch) | |
tree | ca184539d306a819d70ce93b44536fdb6980012a /drivers/gpu/drm/radeon/r300.c | |
parent | dfdd646773941bb6b22c3898a26a109e57c872a2 (diff) | |
download | blackbird-op-linux-a77f171843d466d4af0d527bcb2d314fafa8afd7.tar.gz blackbird-op-linux-a77f171843d466d4af0d527bcb2d314fafa8afd7.zip |
drm/radeon/kms: use RADEON_GPU_PAGE_SIZE instead of 4096
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index e08c4a8974ca..2f43ee8e4048 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c @@ -113,7 +113,7 @@ int rv370_pcie_gart_enable(struct radeon_device *rdev) tmp = RADEON_PCIE_TX_GART_UNMAPPED_ACCESS_DISCARD; WREG32_PCIE(RADEON_PCIE_TX_GART_CNTL, tmp); WREG32_PCIE(RADEON_PCIE_TX_GART_START_LO, rdev->mc.gtt_location); - tmp = rdev->mc.gtt_location + rdev->mc.gtt_size - 4096; + tmp = rdev->mc.gtt_location + rdev->mc.gtt_size - RADEON_GPU_PAGE_SIZE; WREG32_PCIE(RADEON_PCIE_TX_GART_END_LO, tmp); WREG32_PCIE(RADEON_PCIE_TX_GART_START_HI, 0); WREG32_PCIE(RADEON_PCIE_TX_GART_END_HI, 0); |