From: Damien Lespiau Subject: Re: [PATCH] tests: add gem_reset_stats Date: Wed, 13 Nov 2013 14:20:10 +0000 Message-ID: <20131113142010.GA1355@strange.amr.corp.intel.com> References: <1383143813-14147-1-git-send-email-mika.kuoppala@intel.com> <1384279096-10886-1-git-send-email-mika.kuoppala@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id BE47F105849 for ; Wed, 13 Nov 2013 06:20:14 -0800 (PST) Content-Disposition: inline In-Reply-To: <1384279096-10886-1-git-send-email-mika.kuoppala@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Mika Kuoppala Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Nov 12, 2013 at 07:58:16PM +0200, Mika Kuoppala wrote: > + buf[roff] = MI_BATCH_BUFFER_START; > + buf[roff + 1] = gtt_off + (roff << 2); I was thinking that this probably need to be adapted for BDW if we want to loop at the right address (MI_BATCH_BUFFER_START has an extra dword, and I believe one needs to set the right command length. The high bits should be 0 as the batch is filled with nops, but it's still unclear to me if the correct lengh is needed). -- Damien