Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1279329

Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading

Path csiph.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Daniel Vetter <daniel@ffwll.ch>
Newsgroups linux.kernel
Subject Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading
Date Sun, 29 Nov 2015 13:50:01 +0100
Message-ID <qA9At-6e2-3@gated-at.bofh.it> (permalink)
References <qzsYy-4AQ-25@gated-at.bofh.it> <qzsYy-4AQ-23@gated-at.bofh.it> <qztrA-4LC-9@gated-at.bofh.it> <qzBIt-1tZ-5@gated-at.bofh.it>
X-Original-To Ilia Mirkin <imirkin@alum.mit.edu>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=0I/HxCrYTJiSh5gPploSckGFouuoGbPf95vNF36QyqU=; b=OMhRUwY9d2eW1vXfVDOz32m/XWBTYPyrf8bNhyKE1T018sRXznBcuY+Y/9UavZJpbB J3E2+ZqsninXwjCy49Xp7GuniuuiBCVK05QzcIju5rl7VrNgXaLa9wxPHWY95oExeKSP 1Bnz/W/W9Zpz5tBhIcyOLbuGytwh1kMsAk59w=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=0I/HxCrYTJiSh5gPploSckGFouuoGbPf95vNF36QyqU=; b=LyqgBq1V0WQYcrRIFsLjWE40glyH5NfCCNsgwHaTju4ULTXoZxv+uqEUAwtgebNWf3 3kMCH9WScC6mJn2NYOJ1e9AeCsjaQ3CHydqTxxHc8egf6p20fFuPyGZOweZEmOOFWBJw FVxjG8Rh/vhU3HjH9usEivoHzQH31RW4noTz/4Ux+t2DhPW0knupY1aKS12QXTj3EcFY nEwsN8rtZma4aV0MuubjbT3S2EkC59NSIJfaGgJ/+SNsrKSK/AauyyqHnGzo8ndsyDSP HR5gdd7q+5KbwFlXYuapgj/2EGghGLIlyRNIm3TntKBg4RLsVxpOBGa0sxeW6ftq6J2E qwGg==
X-Gm-Message-State ALoCoQntgqywKiA3Tw+Y3TccYqMxgdWxNA7y6Fo+NWwzMyzIqCrdh46YMiHQIKyBfWCvKCzRyCwr
X-Received by 10.28.173.21 with SMTP id w21mr22846374wme.102.1448801265132; Sun, 29 Nov 2015 04:47:45 -0800 (PST)
Mail-Followup-To Ilia Mirkin <imirkin@alum.mit.edu>, Emil Velikov <emil.l.velikov@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Intel Graphics Development <intel-gfx@lists.freedesktop.org>, LKML <linux-kernel@vger.kernel.org>, DRI Development <dri-devel@lists.freedesktop.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Operating-System Linux phenom 4.1.0-2-amd64
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 54
Organization linux.* mail to news gateway
X-Original-Cc Emil Velikov <emil.l.velikov@gmail.com>, Daniel Vetter <daniel.vetter@ffwll.ch>, Andrew Morton <akpm@linux-foundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Intel Graphics Development <intel-gfx@lists.freedesktop.org>, LKML <linux-kernel@vger.kernel.org>, DRI Development <dri-devel@lists.freedesktop.org>
X-Original-Date Sun, 29 Nov 2015 13:47:42 +0100
X-Original-Message-ID <20151129124742.GA17050@phenom.ffwll.local>
X-Original-References <1448637005-3847-1-git-send-email-daniel.vetter@ffwll.ch> <1448637005-3847-2-git-send-email-daniel.vetter@ffwll.ch> <CACvgo51RokrUwiE+7xj1p0jNrJ8293cqJrnjsamiswkAqOiEZw@mail.gmail.com> <CAKb7UvgfCkP7LG-wNCbRxQaQT8iL9YveVghQrYvKO-3bCE8uNg@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1279329

Show key headers only | View raw


On Fri, Nov 27, 2015 at 07:37:53PM -0500, Ilia Mirkin wrote:
> On Fri, Nov 27, 2015 at 10:40 AM, Emil Velikov <emil.l.velikov@gmail.com> wrote:
> > On 27 November 2015 at 15:10, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> >> It only leads to bloodshed and tears - we don't bother to restore a
> >> working legacy vga hw setup.
> >>
> >> On haswell with the new dynamic power well code this leads to even
> >> more hilarity since for some configurations the hardware is simply no
> >> longer there.
> >>
> >> The actual implementation is a bit a hack - we realy on fbcon to kick
> >> out the vgacon. To make this also work with I915_FBDEV=n (or FBCON=n)
> >> and VGA_CONSOLE=y i915 already unregisters the vga console manually
> >> early in the driver load sequence.
> >>
> > Interesting... nv50 and later GPUs are in a roughly similar shame
> > afaict. They lack the dedicated hardware and no one really bothered
> > figuring out how to restore things to a working shape [1].
> >
> > Then again, upon sequential load of the nouveau module the GPU gets
> > initialised properly, where you can get X (weston?) up and running
> > without issues. Am I thinking about a different thing ?
> >
> > I take it that you guys do less of the (re)initialisation dance, to
> > ensure faster boot times ?
> >
> > Thanks,
> > Emil
> >
> > [1] http://nouveau.freedesktop.org/wiki/KernelModeSetting/#deactivatingkmsandunloadingnouveau
> 
> FWIW it's possible to unload nouveau, at which point your screen turns
> off (because we can't restore the vga emulation junk... haven't the
> faintest clue how it works), and then reload it, at which point fbcon
> gets rebound and is completely happy. I can't tell what this patch is
> doing, but for your own sanity, you should support unloading/reloading
> i915 as well.

We do of course support unloading/reloading. And we do the same "shut
everything down" like nouveau seems to do. The problem though on some hw
is that if vgacon then tries to access the registers the hw dies. So the
problem we have with not restoring VGA functionality isn't that the screen
is black when i915.ko is unloaded, but that the machine dies. This patch
fixes that.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading Daniel Vetter <daniel.vetter@ffwll.ch> - 2015-11-27 16:20 +0100
  Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading Emil Velikov <emil.l.velikov@gmail.com> - 2015-11-27 16:50 +0100
    Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading Ilia Mirkin <imirkin@alum.mit.edu> - 2015-11-28 01:40 +0100
      Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever  reloading Daniel Vetter <daniel@ffwll.ch> - 2015-11-29 13:50 +0100
        Re: [PATCH RESEND 2/2] drm/i915: prevent the vgacon from ever reloading Emil Velikov <emil.l.velikov@gmail.com> - 2015-11-29 15:20 +0100

csiph-web