Problem of concurrency in arch/ppc/8260_io/uart.c
Jean-Denis Boyer
jdboyer at mediatrix.com
Fri Mar 7 08:39:10 EST 2003
I have a problem of concurrency on my 8250 based custom board.
I'm using kernel 2.4.19, and the output on the serial port goes crappy.
It seems to appear when printk is called from interrupt context,
while a user mode process is writing to stdout.
I wrote a user mode program + a kernel module to reproduce the problem.
The kernel module starts a timer that calls printk (34 chars) each 100ms.
The user mode program performs a while(1) printf(...);
That combination almost immediatly mess the serial driver,
that begins to output characters in an unpredictable order, until we reboot.
It never crashes, however, but it is annoying.
Has anyone encoutered that problem?
or has any suggestion before I go further?
or wish to have the test program to give it a try?
Thanks,
--------------------------------------------
Jean-Denis Boyer, B.Eng., Technical Leader
Mediatrix Telecom Inc.
4229 Garlock Street
Sherbrooke (Québec)
J1L 2C8 CANADA
(819)829-8749 x241
--------------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list