linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: 8250, increase PASS_LIMIT
@ 2011-06-05 20:51 Jiri Slaby
  2011-06-06 12:09 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2011-06-05 20:51 UTC (permalink / raw)
  To: gregkh; +Cc: jirislaby, linux-kernel, Alan Cox

From: Jiri Slaby <jirislaby@gmail.com>

With virtual machines like qemu, it's pretty common to see "too much
work for irq4" messages nowadays. This happens when a bunch of output
is printed on the emulated serial console. This is caused by too low
PASS_LIMIT. When ISR loops more than the limit, it spits the message.

I've been using a kernel with doubled the limit and I couldn't see no
problems. Maybe it's time to get rid of the message now?

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/tty/serial/8250.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c
index 54482d7..ae477c8 100644
--- a/drivers/tty/serial/8250.c
+++ b/drivers/tty/serial/8250.c
@@ -81,7 +81,7 @@ static unsigned int skip_txen_test; /* force skip of txen test at init time */
 #define DEBUG_INTR(fmt...)	do { } while (0)
 #endif
 
-#define PASS_LIMIT	256
+#define PASS_LIMIT	512
 
 #define BOTH_EMPTY 	(UART_LSR_TEMT | UART_LSR_THRE)
 
-- 
1.7.5.3



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

* Re: [PATCH] serial: 8250, increase PASS_LIMIT
  2011-06-05 20:51 [PATCH] serial: 8250, increase PASS_LIMIT Jiri Slaby
@ 2011-06-06 12:09 ` Alan Cox
  2011-06-06 13:49   ` Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2011-06-06 12:09 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: gregkh, jirislaby, linux-kernel

On Sun,  5 Jun 2011 22:51:49 +0200
Jiri Slaby <jslaby@suse.cz> wrote:

> From: Jiri Slaby <jirislaby@gmail.com>
> 
> With virtual machines like qemu, it's pretty common to see "too much
> work for irq4" messages nowadays. This happens when a bunch of output
> is printed on the emulated serial console. This is caused by too low
> PASS_LIMIT. When ISR loops more than the limit, it spits the message.
> 
> I've been using a kernel with doubled the limit and I couldn't see no
> problems. Maybe it's time to get rid of the message now?

We need a limit to deal with hangs caused by misconfiguration /
mis-detection on ISA ports in particular but we can certainly bump the
limit to handle poor emulations.

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

* Re: [PATCH] serial: 8250, increase PASS_LIMIT
  2011-06-06 12:09 ` Alan Cox
@ 2011-06-06 13:49   ` Jiri Slaby
  0 siblings, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2011-06-06 13:49 UTC (permalink / raw)
  To: Alan Cox; +Cc: gregkh, jirislaby, linux-kernel

On 06/06/2011 02:09 PM, Alan Cox wrote:
> On Sun,  5 Jun 2011 22:51:49 +0200
> Jiri Slaby <jslaby@suse.cz> wrote:
> 
>> From: Jiri Slaby <jirislaby@gmail.com>
>>
>> With virtual machines like qemu, it's pretty common to see "too much
>> work for irq4" messages nowadays. This happens when a bunch of output
>> is printed on the emulated serial console. This is caused by too low
>> PASS_LIMIT. When ISR loops more than the limit, it spits the message.
>>
>> I've been using a kernel with doubled the limit and I couldn't see no
>> problems. Maybe it's time to get rid of the message now?
> 
> We need a limit to deal with hangs caused by misconfiguration /
> mis-detection on ISA ports in particular but we can certainly bump the
> limit to handle poor emulations.

Yeah, I meant it that way (get rid of the message by bumping the limit
-- this patch).

thanks,
-- 
js
suse labs

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

end of thread, other threads:[~2011-06-06 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-05 20:51 [PATCH] serial: 8250, increase PASS_LIMIT Jiri Slaby
2011-06-06 12:09 ` Alan Cox
2011-06-06 13:49   ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).