From: Daniel Vetter Subject: Re: [PATCH] drm/i915: swizzling support for snb/ivb Date: Wed, 8 Feb 2012 23:17:38 +0100 Message-ID: <20120208221738.GA22687@phenom.ffwll.local> References: <20120202053057.GA13722@seagal.kumite> <1328173092-2234-1-git-send-email-daniel.vetter@ffwll.ch> <874nv6xqk2.fsf@eliezer.anholt.net> <20120206154500.GA4066@phenom.ffwll.local> <87zkcu4du3.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id E0FC4A0986 for ; Wed, 8 Feb 2012 14:17:34 -0800 (PST) Received: by wico1 with SMTP id o1so869474wic.36 for ; Wed, 08 Feb 2012 14:17:34 -0800 (PST) Content-Disposition: inline In-Reply-To: <87zkcu4du3.fsf@eliezer.anholt.net> 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: Eric Anholt Cc: Daniel Vetter , Intel Graphics Development , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Tue, Feb 07, 2012 at 11:56:36AM -0800, Eric Anholt wrote: > On Mon, 6 Feb 2012 16:45:00 +0100, Daniel Vetter wrote: > > On Sat, Feb 04, 2012 at 09:59:57PM +0100, Eric Anholt wrote: > > > On Thu, 2 Feb 2012 09:58:12 +0100, Daniel Vetter wrote: > > > It looks to me like you're making the HW always swizzle bit 6 according > > > to 9 or 9/10 in i915_gem_init_swizzling, but you're not performing the > > > software side of swizzling in the !dual channel case. My guess would be > > > that when you take your other DIMM the swizzling for pread/pwrite/swap > > > goes wrong, and that the answer would be to just not look at dimm sizes. > > > > Hm, I'm a bit confused here ... So let me explain how swizzling on gen6+ > > works with this patch: > > Nah, I was the one confused. I missed the early return in init. Makes > sense to me now, and I agree that it should be safe to turn on > regardless, so the only issue might be that we should set swizzles on > more of the time than we actually manage to, which you already noted. > > Reviewed-by: Eric Anholt Queued for -next, thanks for the review. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48