From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Fix secure dispatch with full ppgtt Date: Mon, 11 Aug 2014 13:22:19 +0200 Message-ID: <20140811112219.GJ8727@phenom.ffwll.local> References: <1407751557-5167-1-git-send-email-daniel.vetter@ffwll.ch> <1407751738-19895-1-git-send-email-daniel.vetter@ffwll.ch> <20140811101740.GF6666@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by gabe.freedesktop.org (Postfix) with ESMTP id E69A96E3BA for ; Mon, 11 Aug 2014 04:22:07 -0700 (PDT) Received: by mail-we0-f181.google.com with SMTP id k48so8378761wev.40 for ; Mon, 11 Aug 2014 04:22:07 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140811101740.GF6666@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Daniel Vetter , Intel Graphics Development , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Mon, Aug 11, 2014 at 11:17:40AM +0100, Chris Wilson wrote: > On Mon, Aug 11, 2014 at 12:08:58PM +0200, Daniel Vetter wrote: > > Based upon a hunk from a patch from Chris Wilson, but augmented to: > > - Process the batch in the full ppgtt vm so that self-relocations > > match again with userspace's expectations.. > > - Add a comment why plain pin for the global gtt binding is safe at > > that point. > > > > v2: Drop local bind_vm variable (Chris). > > > > Cc: Chris Wilson > > Cc: Ben Widawsky > > Signed-off-by: Daniel Vetter > > /me jaw drops > > Oh nice, yes you are right that does fix the issue with the relocations > being in one address space whilst the exec needs to be done from gGTT. > > Reviewed-by: Chris Wilson Actually it's not that simple - with this patch we don't add the ggtt vma for the batch to the active list, which we probably should. So needs to be revised a bit more I think ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch