dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Grigori Goronzy <greg@chown.ath.cx>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 3/3] drm/radeon: default to 2048 MB GART size on SI+
Date: Thu,  2 Jul 2015 11:41:12 +0200	[thread overview]
Message-ID: <1435830072-21835-3-git-send-email-greg@chown.ath.cx> (raw)
In-Reply-To: <1435830072-21835-1-git-send-email-greg@chown.ath.cx>

Newer ASICs have more VRAM on average and allocating more GART as
well can have advantages. Also see commit edcd26e8.

Ideally, we should scale GART size based on actual VRAM size, but
that requires significant restructuring of initialization.
---
 drivers/gpu/drm/radeon/radeon_device.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index a7fdfa4..b6769b0 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -1098,7 +1098,9 @@ static void radeon_check_arguments(struct radeon_device *rdev)
 
 	if (radeon_gart_size == -1) {
 		/* default to a larger gart size on newer asics */
-		if (rdev->family >= CHIP_RV770)
+		if (rdev->family >= CHIP_TAHITI)
+			radeon_gart_size = 2048;
+		else if (rdev->family >= CHIP_RV770)
 			radeon_gart_size = 1024;
 		else
 			radeon_gart_size = 512;
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2015-07-02  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02  9:41 [PATCH 1/3] drm/radeon: use RCU query for GEM_BUSY syscall Grigori Goronzy
2015-07-02  9:41 ` [PATCH 2/3] drm/radeon: fix HDP flushing Grigori Goronzy
2015-07-02 13:08   ` Greg KH
2015-07-02  9:41 ` Grigori Goronzy [this message]
2015-07-02 14:28 ` [PATCH 1/3] drm/radeon: use RCU query for GEM_BUSY syscall Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435830072-21835-3-git-send-email-greg@chown.ath.cx \
    --to=greg@chown.ath.cx \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox