All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: remove visible vram size limit on bo allocation
@ 2014-07-16 17:26 Alex Deucher
  2014-07-16 17:56 ` Christian König
  2014-07-17  4:02 ` Michel Dänzer
  0 siblings, 2 replies; 10+ messages in thread
From: Alex Deucher @ 2014-07-16 17:26 UTC (permalink / raw)
  To: dri-devel; +Cc: Alex Deucher

Now that fallback to gtt is fixed for cpu access, we can
remove this limit.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/radeon/radeon_gem.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c
index fdd189b..07a13c9 100644
--- a/drivers/gpu/drm/radeon/radeon_gem.c
+++ b/drivers/gpu/drm/radeon/radeon_gem.c
@@ -55,8 +55,11 @@ int radeon_gem_object_create(struct radeon_device *rdev, int size,
 		alignment = PAGE_SIZE;
 	}
 
-	/* maximun bo size is the minimun btw visible vram and gtt size */
-	max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size);
+	/* Maximum bo size is the gtt size since we use the gtt to handle
+	 * vram to system pool migrations.  We could probably remove this
+	 * check altogether with a little additional work.
+	 */
+	max_size = rdev->mc.gtt_size;
 	if (size > max_size) {
 		DRM_DEBUG("Allocation size %dMb bigger than %ldMb limit\n",
 			  size >> 20, max_size >> 20);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-18  3:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-16 17:26 [PATCH] drm/radeon: remove visible vram size limit on bo allocation Alex Deucher
2014-07-16 17:56 ` Christian König
2014-07-17  4:02 ` Michel Dänzer
2014-07-17 14:28   ` Christian König
2014-07-17 15:49     ` Alex Deucher
2014-07-17 16:29     ` Alex Deucher
2014-07-17 16:44       ` Christian König
2014-07-18  0:41       ` Michel Dänzer
2014-07-18  3:26         ` Alex Deucher
2014-07-18  3:30           ` Michel Dänzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.