From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/4] drm/i915: preserve swizzle settings if necessary v4 Date: Tue, 21 Oct 2014 16:49:12 +0200 Message-ID: <20141021144912.GK26941@phenom.ffwll.local> References: <1412884665-16766-1-git-send-email-jbarnes@virtuousgeek.org> <1412884665-16766-2-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A5E06E1F0 for ; Tue, 21 Oct 2014 07:49:08 -0700 (PDT) Received: by mail-wi0-f181.google.com with SMTP id hi2so2058308wib.8 for ; Tue, 21 Oct 2014 07:49:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1412884665-16766-2-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org, shuang.he@linux.intel.com List-Id: intel-gfx@lists.freedesktop.org On Thu, Oct 09, 2014 at 12:57:43PM -0700, Jesse Barnes wrote: > Some machines (like MBAs) might use a tiled framebuffer but not enable > display swizzling at boot time. We want to preserve that configuration > if possible to prevent a boot time mode set. On IVB+ it shouldn't > affect performance anyway since the memory controller does internal > swizzling anyway. > = > For most other configs we'll be able to enable swizzling at boot time, > since the initial framebuffer won't be tiled, thus we won't see any > corruption when we enable it. > = > v2: preserve swizzling if BIOS had it set (Daniel) > v3: preserve swizzling only if we inherited a tiled framebuffer (Daniel) > check display swizzle setting in detect_bit_6_swizzle (Daniel) > use gen6 as cutoff point (Daniel) > v4: fixup swizzle preserve again, had wrong init order (Daniel) > = > Reported-by: Kristian H=F8gsberg > Signed-off-by: Jesse Barnes lgtm. Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch