From: Daniel Vetter Subject: Re: [PATCH 8/9] drm/i915: Set the SR01 "screen off" bit in i915_redisable_vga() too Date: Thu, 31 Jan 2013 11:24:32 +0100 Message-ID: <20130131102432.GF5885@phenom.ffwll.local> References: <1359143089-14284-1-git-send-email-ville.syrjala@linux.intel.com> <1359143089-14284-9-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-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id EE728E5D37 for ; Thu, 31 Jan 2013 02:22:23 -0800 (PST) Received: by mail-wg0-f45.google.com with SMTP id dq12so1957563wgb.24 for ; Thu, 31 Jan 2013 02:22:23 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359143089-14284-9-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 Fri, Jan 25, 2013 at 09:44:48PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > From BSpec / SR01 - Clocking Mode: > "The following sequence must be used when disabling the VGA plane. > Write SR01 to set bit 5 =3D 1 to disable video output. > Wait for 100us. > Disable the VGA plane via Bit 31 of the MMIO VGA control." > = > So simply call i915_disable_vga() from i915_redisable_vga(). > = > Signed-off-by: Ville Syrj=E4l=E4 Ok, merged the last 3 pieces of this series now, thanks for the patches. I've punted on the don't touch VGA0, ... on gen5+ patch, since that's now only relevant for ums (and I've been too lazy to dig out the docs). -Daniel > --- > drivers/gpu/drm/i915/intel_display.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/= intel_display.c > index e96ac19..6cc5700 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -8934,8 +8934,7 @@ void i915_redisable_vga(struct drm_device *dev) > = > if (I915_READ(vga_reg) !=3D VGA_DISP_DISABLE) { > DRM_DEBUG_KMS("Something enabled VGA plane, disabling it\n"); > - I915_WRITE(vga_reg, VGA_DISP_DISABLE); > - POSTING_READ(vga_reg); > + i915_disable_vga(dev); > } > } > = > -- = > 1.7.12.4 > = > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch