mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Dave Jones <davej@redhat.com>,
	Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Paul Dickson <paul@permanentmail.com>,
	linux-kernel@vger.kernel.org, jeremy@goop.org
Subject: Re: Bisects that are neither good nor bad
Date: Fri, 9 Jun 2006 10:38:33 +0200	[thread overview]
Message-ID: <20060609083833.GD18084@elf.ucw.cz> (raw)
In-Reply-To: <20060603091133.GA24271@flint.arm.linux.org.uk>

Hi!

> > > With the resume failure I'm seeing, we don't get back to userspace
> > > to run anything like this. It goes bang long before that.
> > > 
> > > The SATA fix Mark proposed also didn't improve the situation for me :-/
> > 
> > If setserial -a is needed.. it means that someone really needs to fix
> > suspend/resume support for serial... do it on working machine to
> > enable debugging of broken ones...
> 
> I've explained why this occurs in bugzilla - but for the sake of
> repeating repeating repeating myself at great length, let's repeat
> it again here.
> 
> The serial layer does _not_ have access to the "current" termios
> settings due to the layering by the tty subsystem.  If the serial
> port being used by serial console has been opened once by the user,
> but is closed at the moment when a suspend/resume cycle occurs,
> the serial layer and lower level drivers do not have access to the
> baud rate.

Could serial layer just cache "last baud rate" in some kind of
software shadow register? Yes, it is slightly ugly, but should do the trick.

> Hence, it is impossible for the serial layer to do a proper resume
> in this scenario.  Either always suspend with the console port open
> or never open the console port before suspend.  Alternatively, we
> need the tty layer to mature, so that there is some way for drivers
> to get the termios structures for the console from the upper layer.
> Or maybe we need the tty layer to be responsible for implementing
> suspend/resume support for tty devices.

								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2006-06-09  8:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-28 21:02 Resume stops working between 2.6.16 and 2.6.17-rc1 on Dell Inspiron 6000 Paul Dickson
2006-05-28 21:08 ` Bisects that are neither good nor bad Paul Dickson
2006-05-28 21:24   ` Rafael J. Wysocki
2006-05-28 21:34     ` Dave Jones
2006-05-29 11:37       ` Sanjoy Mahajan
2006-05-29 14:52         ` Dave Jones
2006-05-30 15:29           ` Pavel Machek
2006-06-03  8:58             ` Rafael J. Wysocki
2006-06-03  9:11             ` Russell King
2006-06-09  8:38               ` Pavel Machek [this message]
2006-06-09  8:42                 ` Russell King
2006-06-09  8:46                   ` fixing serial console over suspend [was Re: Bisects that are neither good nor bad] Pavel Machek
2006-06-09  8:51                     ` Russell King
2006-06-11 14:08                   ` Bisects that are neither good nor bad Russell King
2006-05-31  2:45           ` Paul Dickson
2006-05-28 22:02     ` Paul Dickson
2006-05-29  0:12       ` Paul Dickson
2006-05-28 21:11 ` Resume stops working between 2.6.16 and 2.6.17-rc1 on Dell Inspiron 6000 Arjan van de Ven
2006-05-28 21:29   ` Paul Dickson
2006-05-28 21:49     ` Mark Lord
2006-05-29  0:21       ` Paul Dickson
2006-05-29  0:40         ` Andrew Morton
2006-05-29  1:47           ` Paul Dickson
2006-05-29  3:02         ` Mark Lord
2006-05-29 15:12           ` Pavel Machek
2006-05-31  2:38             ` Paul Dickson
2006-05-29  3:03         ` Mark Lord
2006-05-29 22:56 Bisects that are neither good nor bad linux
2006-05-30  0:46 ` Linus Torvalds

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=20060609083833.GD18084@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=davej@redhat.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@permanentmail.com \
    --cc=rjw@sisk.pl \
    --cc=sanjoy@mrao.cam.ac.uk \
    /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

Powered by JetHome