From: Thomas Hellstrom Date: Wed, 13 Jan 2010 21:28:45 +0000 (+0100) Subject: drm/ttm: Make sure system buffer objects has offset == 0. X-Git-Tag: v2.6.33-rc6~27^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=354fb52cb6138de0e6cf84a0f6a7f3467586e390;p=platform%2Fkernel%2Flinux-3.10.git drm/ttm: Make sure system buffer objects has offset == 0. This is a convention that the vmwgfx driver has come to rely on. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 7a64f07..da37021 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -426,7 +426,8 @@ moved: bdev->man[bo->mem.mem_type].gpu_offset; bo->cur_placement = bo->mem.placement; spin_unlock(&bo->lock); - } + } else + bo->offset = 0; return 0;