From: James Simmons Subject: Re: KMS and TTM questions Date: Tue, 4 Oct 2011 15:43:07 +0100 (BST) Message-ID: References: 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 0932E9E74E for ; Tue, 4 Oct 2011 07:43:09 -0700 (PDT) In-Reply-To: Content-ID: 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: Jerome Glisse Cc: DRI development list List-Id: dri-devel@lists.freedesktop.org > >> Without code to look at we all can start guessing :) my guess is either > >> you are not using the proper offset field or you are allocating from > >> different memory pool. > > > > http://cgit.freedesktop.org/~jsimmons/drm-openchrome > > > > >From quick glimpse ttm_bo_allocate in via/init_ttm.c loose the > TTM_PL_FLAG_NO_EVICT so you vq buffer is not allocated with the no > evict flags, then i guess it got evicted on first bo allocation which > is strange, maybe first bo has some lpfn constraint. Tried it and it didn't help. Its the ttm_buffer_object offset that should vary for each buffer object created from some memory pool. That offset is set from bo->mem.mm_node if it is present. Looking at the code ttm_bo_init should end up calling ttm_bo_move_buffer which should in turn set up the bo->mem.mm_node. I guess I really need to debug the code to see what is going on.