drm/radeon/kms: enable unmappable vram for evergreen
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 19 Oct 2010 04:36:19 +0000 (00:36 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Oct 2010 01:27:24 +0000 (11:27 +1000)
Evergreen now has blit support, but unmappable vram support
was disabled in c919b371cb734f42b1130e706ecee262f8d9261d
(drm/radeon/kms: avoid corner case issue with unmappable vram V2)
due to merge ordering.  This re-enables unmappable vram on
evergreen.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_blit_kms.c

index 086b9b0416c481af96ed8e5d4c0af08b564f204b..ac3b6dde23db7ca1fd5f80083436cb49fcce0312 100644 (file)
@@ -495,6 +495,7 @@ done:
                dev_err(rdev->dev, "(%d) pin blit object failed\n", r);
                return r;
        }
+       rdev->mc.active_vram_size = rdev->mc.real_vram_size;
        return 0;
 }
 
@@ -502,6 +503,7 @@ void evergreen_blit_fini(struct radeon_device *rdev)
 {
        int r;
 
+       rdev->mc.active_vram_size = rdev->mc.visible_vram_size;
        if (rdev->r600_blit.shader_obj == NULL)
                return;
        /* If we can't reserve the bo, unref should be enough to destroy