From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
rjw@sisk.pl
Subject: Re: [PATCH 1/2] PM: make VT switching to the suspend console optional
Date: Sat, 3 Nov 2012 00:42:05 +0000 [thread overview]
Message-ID: <20121103004205.4ba8b6b7@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <5094636A.9050000@virtuousgeek.org>
> that, but how would I even configure a VT split across two adapters
> today? For vgacon we just route VGA to a single adapter, but I'm not
con2fb /dev/fb1 /dev/tty1
> Dunno about suspend vs unload, how do we deal that in other drivers like
> the disk driver for suspend for example? Overall that case seems pretty
> esoteric...
>
> What do you mean about hand over to multiple frame buffers?
You have a global but I can insmod i915 move the consoles off it and
unload it (at least in theory - last time I tried it crashed at
least on gma500 which I need to fix 8))
So you've got a global you can't just set back but need to adjust on
unload.
And you've got races like suspend as we are changing framebuffer which
your code doesn't consider as you have no locking.
If we push the logic into the vt layer we can pretty easily dump it under
the vt locks. It's not the whole story as there are all sorts of things
it doesn't handle but it does mean we can handle the case of
"if we are switching from a vt which is on a device that doesn't need it
for suspend then do nothing"
properly, and we can make any future features work right
I think all we need is consw to have a con_sw_suspend/con_sw_resume
method and the framebuffer layer to let kms get at it.
Alan
next prev parent reply other threads:[~2012-11-03 0:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 21:43 [RFC] Suspend/resume without VT switches Jesse Barnes
2012-11-02 21:43 ` [PATCH 1/2] PM: make VT switching to the suspend console optional Jesse Barnes
2012-11-02 23:43 ` Alan Cox
2012-11-03 0:20 ` Jesse Barnes
2012-11-03 0:42 ` Alan Cox [this message]
2012-11-03 0:40 ` Jesse Barnes
2012-11-02 21:43 ` [PATCH 2/2] drm/i915: support resume without VT switch Jesse Barnes
2012-11-02 21:51 ` [RFC] Suspend/resume without VT switches Rafael J. Wysocki
2012-11-02 23:29 ` Jesse Barnes
2012-11-02 23:38 ` Rafael J. Wysocki
2012-11-03 0:22 ` Jesse Barnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121103004205.4ba8b6b7@pyramind.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®