From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: HSW always use GGTT selector for secure batches Date: Wed, 10 Sep 2014 14:16:32 +0200 Message-ID: <20140910121632.GR15520@phenom.ffwll.local> References: <20140910103045.GQ4193@intel.com> <1410347907-1020-1-git-send-email-chris@chris-wilson.co.uk> <20140910112143.GB31074@nuc-i3427.alporthouse.com> <20140910120003.GR4193@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DE226E445 for ; Wed, 10 Sep 2014 05:16:07 -0700 (PDT) Received: by mail-wi0-f174.google.com with SMTP id n3so2611250wiv.1 for ; Wed, 10 Sep 2014 05:16:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140910120003.GR4193@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Sep 10, 2014 at 03:00:03PM +0300, Ville Syrj=E4l=E4 wrote: > On Wed, Sep 10, 2014 at 12:21:43PM +0100, Chris Wilson wrote: > > On Wed, Sep 10, 2014 at 12:18:27PM +0100, Chris Wilson wrote: > > > gen6 and earlier conflate address space selection (ppgtt vs ggtt) with > > > the security bit (i.e. only privileged batches were allowed to run fr= om > > > ggtt). From Haswell onwards, you are able to select the security bit > > = > > ggtt). For Haswell only, you are able to select the security bit Rectified. > > > separate from the address space - and we always requested to use ppgt= t. > > > This breaks the golden render state batch execution with full-ppgtt as > > > that is only present in the global GTT and more generally any secure > > > batch that is not colocated in the ppgtt and ggtt. So we need to > > > disable the use of the ppgtt selector bit for secure batches, or else= we > > > hang immediately upon boot and thence after every GPU reset... > > > = > > > v2: Only HSW differentiates between secure dispatch and ggtt, so simp= ly > > > ignore the differentiation and always use secure=3D=3Dggtt. > > > = > > > Signed-off-by: Chris Wilson > > > Cc: Ville Syrj=E4l=E4 > = > Reviewed-by: Ville Syrj=E4l=E4 Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch