Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1622656

Re: [PATCH] drm/vc4: Allow using more than 256MB of CMA memory.

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Eric Anholt <eric@anholt.net>
Newsgroups linux.kernel
Subject Re: [PATCH] drm/vc4: Allow using more than 256MB of CMA memory.
Date Thu, 13 Apr 2017 03:20:01 +0200
Message-ID <tvBAt-42S-5@gated-at.bofh.it> (permalink)
References <tpM5A-7a3-11@gated-at.bofh.it>
User-Agent Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org
X-Original-Date Wed, 12 Apr 2017 18:11:16 -0700
X-Original-Message-ID <87shldglhn.fsf@eliezer.anholt.net>
X-Original-References <20170327231025.19391-1-eric@anholt.net>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1622656

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Eric Anholt <eric@anholt.net> writes:

> Until now, we've had to limit Raspberry Pi to 256MB of CMA memory to
> keep from triggering the hardware addressing bug between of the tile
> binner of the tile alloc memory (where the top 4 bits come from the
> tile state data array's address).
>
> To work around that and allow more memory to be reserved for graphics,
> allocate a single BO to store tile state data arrays and tile
> alloc/overflow memory while the GPU is active, and make sure that that
> one BO doesn't happen to cross a 256MB boundary.  With that in place,
> we can allocate textures and shaders anywhere in system memory (still
> contiguous, of course).

Ping for reviewers on this one -- it's a pretty big usability win.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] drm/vc4: Allow using more than 256MB of CMA memory. Eric Anholt <eric@anholt.net> - 2017-04-13 03:20 +0200

csiph-web