From: Daniel Vetter Subject: Re: [PATCH 5/7] drm/i915: Initialize the aliasing ppgtt as part of global gtt Date: Mon, 4 Aug 2014 17:38:43 +0200 Message-ID: <20140804153843.GB8727@phenom.ffwll.local> References: <1406749324-2156-1-git-send-email-daniel.vetter@ffwll.ch> <1406749324-2156-5-git-send-email-daniel.vetter@ffwll.ch> <20140731161552.GR4193@intel.com> <40F8A24546556F4F886C42CCE2ED59E51B2BA950@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 334B86E3CF for ; Mon, 4 Aug 2014 08:38:34 -0700 (PDT) Received: by mail-wg0-f45.google.com with SMTP id x12so7703531wgg.4 for ; Mon, 04 Aug 2014 08:38:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <40F8A24546556F4F886C42CCE2ED59E51B2BA950@IRSMSX103.ger.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Thierry, Michel" Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Fri, Aug 01, 2014 at 09:54:09AM +0000, Thierry, Michel wrote: > > > @@ -1766,6 +1771,20 @@ int i915_gem_setup_global_gtt(struct > > drm_device *dev, > > > /* And finally clear the reserved guard page */ > > > ggtt_vm->clear_range(ggtt_vm, end - PAGE_SIZE, PAGE_SIZE, true); > > > > > > + if (HAS_ALIASING_PPGTT(dev) && USES_FULL_PPGTT(dev)) { > > > > Should that be !USES_FULL_PPGTT ? > I think we need this for aliasing & full ppgtt (the global default ctx)... > so it should be USES_PPGTT. We want to setup the aliasing ppgtt _only_ when required, so we don't actually need it for USES_FULL_PPGTT. So Ville's right here. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch