From 31689d31a88c6664c6a5a268858518f40c218af9 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Thu, 10 Dec 2009 15:55:14 +0100 Subject: [PATCH] drm/radeon/kms: always allow to create new object into system ram Always allow to create new object into system ram. Signed-off-by: Jerome Glisse --- drivers/gpu/drm/radeon/radeon_object.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 2040937..fe481cb 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -121,6 +121,7 @@ int radeon_bo_create(struct radeon_device *rdev, struct drm_gem_object *gobj, INIT_LIST_HEAD(&bo->list); flags = radeon_ttm_flags_from_domain(domain); + flags |= TTM_PL_FLAG_SYSTEM | TTM_PL_MASK_CACHING; /* Kernel allocation are uninterruptible */ r = ttm_buffer_object_init(&rdev->mman.bdev, &bo->tbo, size, type, flags, 0, 0, !kernel, NULL, size, -- 1.6.5.2