tmatsuya / linux-2.6

Mirror of Linus Torvald's Kernel Tree

Home Page:http://kernel.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial driver lockup

opened this issue · comments

This command sequence locks up the serial driver:

echo test > /dev/ttyS0 # works fine
echo test > /dev/ttyS0 # lockup!

Which config file did you use ?

ml401 vga defconfig, and an inittab that does not put a getty on the serial port.

Problem is still present as of today.

I could not confirm the problem.
Could you show me the results of following commands?

stty 115200 </dev/ttyS0
echo hello >/dev/ttyS0
cat /etc/inittab

lekernel wrote:
Problem only appears at lower speeds (9600 bps for example) and not in QEMU. This suggests a race condition.

stty 9600 < /dev/ttyS0
echo test > /dev/ttyS0
echo test > /dev/ttyS0

causes the problem on the board with apparently 100% reproducibility.

Also, when you send a long string at 115200bps, the serial driver crashes with "huh, entered softirq 6 TASKLET 40030150 preempt_count 00000100, exited with 4381fd50? BUG: scheduling while atomic"

( I have deleted this comment by mistake. )