From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Delay disabling of VGA memory until vgacon->fbcon handoff is done Date: Fri, 6 Sep 2013 10:44:42 +0200 Message-ID: <20130906084436.GP27291@phenom.ffwll.local> References: <1378402852-7523-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D464E602C for ; Fri, 6 Sep 2013 01:44:31 -0700 (PDT) Received: by mail-ea0-f180.google.com with SMTP id h10so1418422eaj.39 for ; Fri, 06 Sep 2013 01:44:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1378402852-7523-1-git-send-email-ville.syrjala@linux.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: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Sep 05, 2013 at 08:40:52PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > When transitioning away from vgacon the system tries to save the > current contents of the VGA memory, so that it can be cleanly handed > off to fbcon (or whatever comes afterwards). > = > The recent change > = > commit 81b5c7bc8de3e6f63419139c2fc91bf81dea8a7d > Author: Alex Williamson > Date: Wed Aug 28 09:39:08 2013 -0600 > = > i915: Update VGA arbiter support for newer devices > = > caused i915 to disable VGA memory decode for the IGD when i915 is > initializing. Unfortunately that happens before the vgacon->fbcon > handoff so vgacon_save_screen() will read out all ones from the > VGA memory. > = > After the handoff fbcon will inherit the bogus state from vgacon, > and pre-fills the fb with matching contents. The end result is > a white rectangle in the top left corner of the screen, the size > of which matches the now inactive VGA console. > = > To remedy the situation delay the disabling of VGA memory until > the vgacon->fbcon handoff has happened. > = > Also rename i915_enable_vga to i915_enable_vga_mem to make > the relationship between these functions clearer. > = > Cc: Alex Williamson > Signed-off-by: Ville Syrj=E4l=E4 Picked up for -fixes, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch