From c5c04d1c1ba3aec45f665e75bfbd3172f7e4c597 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 13 Mar 2011 18:09:29 +1000 Subject: [PATCH] radeon: revert lpfn change in 93225b0d7bc030f4a93165347a65893685822d70 without this change nothing respects active_vram_size so we can easily get objects ending up in top of VRAM on a system with no blitter active. first attempt to fix: https://bugs.freedesktop.org/show_bug.cgi?id=35254 Signed-off-by: Dave Airlie --- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 7d6b8e8..359b1f4 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -70,7 +70,7 @@ void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain) u32 c = 0; rbo->placement.fpfn = 0; - rbo->placement.lpfn = 0; + rbo->placement.lpfn = rbo->rdev->mc.active_vram_size >> PAGE_SHIFT; rbo->placement.placement = rbo->placements; rbo->placement.busy_placement = rbo->placements; if (domain & RADEON_GEM_DOMAIN_VRAM) -- 1.7.3.4