* PMAC_ZILOG serial driver locks up.
@ 2011-05-30 20:00 Rob Landley
0 siblings, 0 replies; only message in thread
From: Rob Landley @ 2011-05-30 20:00 UTC (permalink / raw)
To: linuxppc-dev
The powerpc systems I emulate under qemu use the "mac99" board
emulation, which routes the serial console through a PMAC_ZILOG serial
chip.
It got screwed up by Alan Cox's refactoring of the tty layer in 2.6.28:
http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-December/078700.html
And then partially fixed here:
http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg40477.html
However, if significant input and output traffic overlaps, the serial
port locks up. Here's a test for that. Grab this tarball:
http://landley.net/aboriginal/downloads/binaries/system-image-powerpc.tar.bz2
And do this:
echo -e " \necho hello world" | ./run-emulator.sh
That's echo a line of 20 spaces, a newline, and a command to see
if it makes it through to the comand prompt.
Data makes it out the serial console right up until init launches
(and interrupts are enabled), then it locks hard.
if you just ./run-emulator.sh directly and don't type anything until
you get a shell prompt, it works fine. It's the data crossing in
both directions at once that screws the driver up.
Trivially reproducible. I've tested back to 2.6.32 and it was doing
it back then. (2.6.31 was a build break.)
Rob
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-30 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30 20:00 PMAC_ZILOG serial driver locks up Rob Landley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox