From: James Simmons Subject: Re: KMS and TTM questions Date: Tue, 4 Oct 2011 15:08:37 +0100 (BST) Message-ID: References: <20111003201416.405754d9@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by gabe.freedesktop.org (Postfix) with ESMTP id B172E9E793 for ; Tue, 4 Oct 2011 07:08:39 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dave Airlie Cc: DRI development list List-Id: dri-devel@lists.freedesktop.org > On Mon, Oct 3, 2011 at 8:14 PM, Alan Cox wrote: > >> the front buffer. The problem was the buffer offset for the second > >> allocation was the same as the VQ buffer. I'm stump to what I'm doing > >> wrong, so does anyone have a idea? > > > > I gave up trying to understand TTM (they don't make happy pills that big) > > and used GEM and a simple allocator. The private allocator GEM change > > means you can now use GEM to magic up objects that are in on card or > > stolen memory where applicable not just backed in system memory. I did both as I like my cake and to eat it too :-) > Thats fine as long as you don't want to do acceleration or object > migration between GTT > and VRAM type memory. Now I expect when you give out this advice you > should also state the limitations your advice leads to. The accelerated moves is what made me implement an TTM layer. I wanted to try out using ttm_bo_move for the fbcon copyarea and imageblit functions as a experiment. Also in the future I like totry out tiling support for fbcon with my dri driver. Yes fbcon supports tiles. All thats down the road. For now I just need to get a working driver.