From: Daniel Vetter Subject: Re: [PATCH 3/3] drm/i915: disable wc gtt pte mappings on gen2 Date: Thu, 11 Oct 2012 11:05:27 +0200 Message-ID: <20121011090526.GB5799@phenom.ffwll.local> References: <1349903641-18378-1-git-send-email-daniel.vetter@ffwll.ch> <1349903641-18378-3-git-send-email-daniel.vetter@ffwll.ch> <453bf0$61is0t@azsmga001.ch.intel.com> <20121011083754.GA5799@phenom.ffwll.local> <275ffc$6uip11@fmsmga002.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 3259C9E75F for ; Thu, 11 Oct 2012 02:04:28 -0700 (PDT) Received: by mail-wi0-f171.google.com with SMTP id hj13so6791887wib.12 for ; Thu, 11 Oct 2012 02:04:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <275ffc$6uip11@fmsmga002.fm.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: Chris Wilson Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Oct 11, 2012 at 09:45:56AM +0100, Chris Wilson wrote: > On Thu, 11 Oct 2012 10:37:54 +0200, Daniel Vetter wrote: > > On Wed, Oct 10, 2012 at 11:37:36PM +0100, Chris Wilson wrote: > > > On Wed, 10 Oct 2012 23:14:01 +0200, Daniel Vetter wrote: > > > > It doesn't work since the gtt pte range sits in the middle of the mmio > > > > bar. We didn't notice that since both my and Chris' gen2 machines > > > > don't support PAT and hence all wc io mapping request will > > > > automatically be demoted to uc. > > > > > > > > This regression has been introduce in > > > > > > > > commit edef7e685da05c13cce50c0126189c80fe2c8f71 > > > > Author: Chris Wilson > > > > Date: Fri Sep 14 11:57:47 2012 +0100 > > > > > > > > agp/intel: Use a write-combining map for updating PTEs > > > > > > > > Reported-by: Egbert Eich > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55834 > > > > Signed-off-by: Daniel Vetter > > > > > > Thanks for the explanation, > > > Acked-by: Chris Wilson > > Patch merged to -fixes. > > -Daniel > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > +41 (0) 79 365 57 48 - http://blog.ffwll.ch > From: Chris Wilson > Subject: Re: [Intel-gfx] [PATCH 2/3] drm/i915: fixup the plane->pipe fixup code > To: Daniel Vetter , Intel Graphics Development > Cc: Daniel Vetter > In-Reply-To: <1349903641-18378-2-git-send-email-daniel.vetter@ffwll.ch> > References: <1349903641-18378-1-git-send-email-daniel.vetter@ffwll.ch> <1349903641-18378-2-git-send-email-daniel.vetter@ffwll.ch> > > On Wed, 10 Oct 2012 23:14:00 +0200, Daniel Vetter wrote: > > We need to check whether the _other plane is on our pipe, not whether > > our plane is on the other pipe. Otherwise if not both pipes/planes are > > active, we won't properly clean up the mess and set up our desired > > plane->pipe mapping. > > > > v2: Fixup the logic, I've totally fumbled it. Noticed by Chris Wilson. > > > > v3: I've checked Bspec, and the flexible plane->pipe mapping is a > > gen2/3 feature, so test for that instead of PCH_SPLIT > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51265 > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49838 > > Tested-by: Dave Airlie > > Signed-off-by: Daniel Vetter > > Ok, looks good. I would move the gen check into > intel_check_plane_mapping() itself with a short note that gen4+ has a > fixed mapping. > > Reviewed-by: Chris Wilson Applied them both, although I did not move the gen < 4 check, only added a comment - that way it's clear that the fixup code only ever runs on hw with at most 2 pipes. And all the !plane tricks it does depend upon that. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch