All of lore.kernel.org
 help / color / mirror / Atom feed
* Serial stdio overwhelming interrupts
@ 2008-08-13  7:27 Liu Yu
  2008-08-13 12:46 ` Christian Ehrhardt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Liu Yu @ 2008-08-13  7:27 UTC (permalink / raw)
  To: kvm-ppc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 1105 bytes --]


Hi guys,

In my kvm machine, I use serial as its default stdio.
But when display a number of characters, e.g. cat a big ascii file, 
the serial always hangs as encount overwhelming interrupts, and then output a kernel log "serial8250: too much work for irq 42".

I found that the serial in qemu is primitive so that it generate a interrupt on every single character. 
This make it easier to reach the threshold of reporting "too much work".

I had to use the patch below to get this issue walked arroud.

Have you guys ever met the serial hanging problem before?

---
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index be95e55..af3e569 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -70,7 +70,7 @@ static unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS;
 #define DEBUG_INTR(fmt...)	do { } while (0)
 #endif
 
-#define PASS_LIMIT	256
+#define PASS_LIMIT	65535
 
 /*
  * We default to IRQ0 for the "no irq" hack.   Some

Best Regards.
 
Yu
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¤¾oé¥ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-19 10:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13  7:27 Serial stdio overwhelming interrupts Liu Yu
2008-08-13 12:46 ` Christian Ehrhardt
2008-08-15  2:08 ` Liu Yu
2008-08-18 16:07 ` Hollis Blanchard
2008-08-19 10:12 ` Liu Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.