Skip to contentSkip to conversation

PMAC_ZILOG serial driver locks up.

DISCUSSION Rob Landley 1 participant 1 message May 30, 2011

lore
Share & tools
lore
#0 lore raw

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/[email protected]/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