From: "Volkin, Bradley D" Subject: Re: [RFC 00/22] Gen7 batch buffer command parser Date: Wed, 5 Feb 2014 11:55:39 -0800 Message-ID: <20140205195539.GA30835@bdvolkin-ubuntu-desktop> References: <1385484699-51596-1-git-send-email-bradley.d.volkin@intel.com> <20140205102829.GL11603@nuc-i3427.alporthouse.com> <20140205181844.GB30478@bdvolkin-ubuntu-desktop> <20140205190000.GA30637@bdvolkin-ubuntu-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FA0F4369B for ; Wed, 5 Feb 2014 11:56:11 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Daniel Vetter Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Wed, Feb 05, 2014 at 11:17:25AM -0800, Daniel Vetter wrote: > On Wed, Feb 5, 2014 at 8:00 PM, Volkin, Bradley D > wrote: > > To test/merge, we'd have to change the series to take out the part where > > patch 02/13 sets I915_DISPATCH_SECURE to avoid a BUG_ON() when i915.enable_cmd_parser=1. > > But yes, otherwise the parsing works and I think should be sufficient for > > what Chris indicated he wants to test. > > Oh, I didn't spot this but this needs to be moved way back in the > series - we can only set the bit once we have the batchbuffer copy > logic in place. Otherwise there's a security hole open since userspace > is free to frob the batch residing in the ppgtt, which we just can't > prevent. Good point. I'll take it out and we can add it as part of the batch copy work. > -Daniel > -- > Daniel Vetter > Software Engineer, Intel Corporation > +41 (0) 79 365 57 48 - http://blog.ffwll.ch