fixing serial console over suspend [was Re: Bisects that are neither good nor bad]



On Pá 09-06-06 09:42:34, Russell King wrote:
On Fri, Jun 09, 2006 at 10:38:33AM +0200, Pavel Machek wrote:
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.

That's not a new suggestion. How do you deal with the case where
you have console on two or more different serial ports? That's
the problem with this approach.

Well, each of serial ports has hardware baud_rate register. I'll need
software baud_rate_shadow for every serial port, setting
baud_rate_shadow each time baud_rate is set. During resume, I restore
baud_rate from baud_rate_shadow for each serial port.

What am I missing?

The only sane solution is for the tty layer to be adjusted to allow
suspend/resume support for consoles.

Well, solution above is likely to be ugly, but even ugly patch would
help people debug s-to-RAM.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: trendmicro isa and https on port 4343
    ... making these settings on a workstation allows access to the console from that workstation. ... The specified Secure Sockets Layer port ... Most Web browsers use port 443 for SSL requests. ...
    (microsoft.public.windows.server.sbs)
  • Re: [PATCH] virtio_console: Add support for multiple ports for generic guest and host communication
    ... Each port is to be assigned a unique function, for example, the ... port 0 has to be reserved for a console (and then we might need ... If a host is a console port, the host has to indicate that by ... * page-sized buffers and then individual buffers are pushed to Host. ...
    (Linux-Kernel)
  • Re: [opensuse] Remote upgrade problem
    ... All my remote sites have serial console servers connected. ... CCM840 8 port, dedicated local console ...
    (SuSE)
  • Re: GSP lan access
    ... a lan port, ... console, or a W/M cable to break out the 3 ports into 9-pin RS422 ... Disabling the modem port prevents remote diagnostic dial-in. ... lan access to the console port - again not a big deal if it is not ...
    (comp.sys.hp.hpux)
  • Re: Strange BUG CHECK crash on a VAXstation 4000-90
    ... the port you've been using, ... Chloor) has the S3 switch in the serial console mode. ... the procedure was repeated on OPA0 of Chloor and the system ...
    (comp.sys.dec)

Loading