[Nouveau] [PATCH 4/4] drm/nouveau: fix ring buffer wrap-around

Maarten Maathuis madman2003 at gmail.com
Fri Aug 21 03:38:40 PDT 2009


On Fri, Aug 21, 2009 at 6:58 AM, Pekka Paalanen<pq at iki.fi> wrote:
> On Thu, 20 Aug 2009 20:27:49 +0200
> Maarten Maathuis <madman2003 at gmail.com> wrote:
>
>> I think the -1 on chan->dma.free is unnecessary.
>
> Maybe it is for the wrap-around jump command, the OUT_RING?
> I don't any other way of reserving memory for writing that.

The initial pushbuf size is deducted by 2, because nv50 needs it for
some reason.
Originally it was 1, to accommodate the jump.

>
> --
> Pekka Paalanen
> http://www.iki.fi/pq/
>


More information about the Nouveau mailing list