LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] serial: remove "too much work for irq" printk
@ 2008-01-12 20:15 Benjamin LaHaise
2008-01-12 20:21 ` Christoph Hellwig
2008-01-12 21:24 ` Alan Cox
0 siblings, 2 replies; 7+ messages in thread
From: Benjamin LaHaise @ 2008-01-12 20:15 UTC (permalink / raw)
To: akpm; +Cc: linux-serial, linux-kernel
When using kvm with a serial console, the serial driver will print out
"too much work for irq4" on any heavy activity (ie vi on a file repainting
the terminal). This message is entirely spurious, as output continues to
work fine. Remove the message as it corrupts screen output and is far too
easy to trigger.
-ben
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index f94109c..030b8b5 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -1493,12 +1493,8 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id)
l = l->next;
- if (l == i->head && pass_counter++ > PASS_LIMIT) {
- /* If we hit this, we're dead. */
- printk(KERN_ERR "serial8250: too much work for "
- "irq%d\n", irq);
+ if (l == i->head && pass_counter++ > PASS_LIMIT)
break;
- }
} while (l != end);
spin_unlock(&i->lock);
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 20:15 [PATCH] serial: remove "too much work for irq" printk Benjamin LaHaise
@ 2008-01-12 20:21 ` Christoph Hellwig
2008-01-12 21:24 ` Alan Cox
1 sibling, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2008-01-12 20:21 UTC (permalink / raw)
To: Benjamin LaHaise; +Cc: akpm, linux-serial, linux-kernel
On Sat, Jan 12, 2008 at 03:15:43PM -0500, Benjamin LaHaise wrote:
> When using kvm with a serial console, the serial driver will print out
> "too much work for irq4" on any heavy activity (ie vi on a file repainting
> the terminal). This message is entirely spurious, as output continues to
> work fine. Remove the message as it corrupts screen output and is far too
> easy to trigger.
Yeah, this message has been annoying me too. Thanks for sending the
patch.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 20:15 [PATCH] serial: remove "too much work for irq" printk Benjamin LaHaise
2008-01-12 20:21 ` Christoph Hellwig
@ 2008-01-12 21:24 ` Alan Cox
2008-01-12 21:39 ` H. Peter Anvin
2008-01-13 22:03 ` Pavel Machek
1 sibling, 2 replies; 7+ messages in thread
From: Alan Cox @ 2008-01-12 21:24 UTC (permalink / raw)
To: Benjamin LaHaise; +Cc: akpm, linux-serial, linux-kernel
On Sat, 12 Jan 2008 15:15:43 -0500
Benjamin LaHaise <bcrl@kvack.org> wrote:
> When using kvm with a serial console, the serial driver will print out
> "too much work for irq4" on any heavy activity (ie vi on a file repainting
> the terminal). This message is entirely spurious, as output continues to
> work fine. Remove the message as it corrupts screen output and is far too
> easy to trigger.
NAK. This is a qemu/kvm emulation bug. The real check is there to catched
jammed IRQs and combined with the IRQ bug handling nowdays does actually
do the intended job.
Our serial port code (correctly) interprets a continuous stream of bytes
at an impossible bit rate as an error. KVM should be emulating to some
extent at least the timing on serial interfaces or using a virtualised
interface.
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 21:24 ` Alan Cox
@ 2008-01-12 21:39 ` H. Peter Anvin
2008-01-12 21:42 ` Alan Cox
2008-01-13 22:03 ` Pavel Machek
1 sibling, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2008-01-12 21:39 UTC (permalink / raw)
To: Alan Cox; +Cc: Benjamin LaHaise, akpm, linux-serial, linux-kernel
Alan Cox wrote:
> On Sat, 12 Jan 2008 15:15:43 -0500
> Benjamin LaHaise <bcrl@kvack.org> wrote:
>
>> When using kvm with a serial console, the serial driver will print out
>> "too much work for irq4" on any heavy activity (ie vi on a file repainting
>> the terminal). This message is entirely spurious, as output continues to
>> work fine. Remove the message as it corrupts screen output and is far too
>> easy to trigger.
>
> NAK. This is a qemu/kvm emulation bug. The real check is there to catched
> jammed IRQs and combined with the IRQ bug handling nowdays does actually
> do the intended job.
>
> Our serial port code (correctly) interprets a continuous stream of bytes
> at an impossible bit rate as an error. KVM should be emulating to some
> extent at least the timing on serial interfaces or using a virtualised
> interface.
>
This is going to put trouble in other places unless, at least, it can be
turned off. The UART serial interface is heavily emulated as a console
interface without an actual serial port behind it, both in hardware and
software. Rates will typically vastly exceed real serial port rates,
especially emulating 16450 or 16550 (which is typical) which are limited
to 115200 bps.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 21:39 ` H. Peter Anvin
@ 2008-01-12 21:42 ` Alan Cox
2008-01-12 21:58 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2008-01-12 21:42 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Benjamin LaHaise, akpm, linux-serial, linux-kernel
> This is going to put trouble in other places unless, at least, it can be
> turned off. The UART serial interface is heavily emulated as a console
> interface without an actual serial port behind it, both in hardware and
> software. Rates will typically vastly exceed real serial port rates,
Yes Dell do it, HP do it, IBM do it. Have done for years, never caused us
a problem. Its only KVM tripping it.
As to bit rate we support up to about 1 to 1.5 Mbit.
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 21:42 ` Alan Cox
@ 2008-01-12 21:58 ` H. Peter Anvin
0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2008-01-12 21:58 UTC (permalink / raw)
To: Alan Cox; +Cc: Benjamin LaHaise, akpm, linux-serial, linux-kernel
Alan Cox wrote:
>> This is going to put trouble in other places unless, at least, it can be
>> turned off. The UART serial interface is heavily emulated as a console
>> interface without an actual serial port behind it, both in hardware and
>> software. Rates will typically vastly exceed real serial port rates,
>
> Yes Dell do it, HP do it, IBM do it. Have done for years, never caused us
> a problem. Its only KVM tripping it.
>
> As to bit rate we support up to about 1 to 1.5 Mbit.
>
FWIW, the highest rate I've seen in hardware is a FIFO about 4K deep
that can be polled at about 25 MHz when all the overhead is accounted for.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] serial: remove "too much work for irq" printk
2008-01-12 21:24 ` Alan Cox
2008-01-12 21:39 ` H. Peter Anvin
@ 2008-01-13 22:03 ` Pavel Machek
1 sibling, 0 replies; 7+ messages in thread
From: Pavel Machek @ 2008-01-13 22:03 UTC (permalink / raw)
To: Alan Cox; +Cc: Benjamin LaHaise, akpm, linux-serial, linux-kernel
On Sat 2008-01-12 21:24:57, Alan Cox wrote:
> On Sat, 12 Jan 2008 15:15:43 -0500
> Benjamin LaHaise <bcrl@kvack.org> wrote:
>
> > When using kvm with a serial console, the serial driver will print out
> > "too much work for irq4" on any heavy activity (ie vi on a file repainting
> > the terminal). This message is entirely spurious, as output continues to
> > work fine. Remove the message as it corrupts screen output and is far too
> > easy to trigger.
>
> NAK. This is a qemu/kvm emulation bug. The real check is there to catched
> jammed IRQs and combined with the IRQ bug handling nowdays does actually
> do the intended job.
>
> Our serial port code (correctly) interprets a continuous stream of bytes
> at an impossible bit rate as an error. KVM should be emulating to some
> extent at least the timing on serial interfaces or using a virtualised
> interface.
How can you tell apart impossible bit rate from really slow CPU, or
maybe just an SMI storm, or heavy busmaster DMA?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-13 22:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12 20:15 [PATCH] serial: remove "too much work for irq" printk Benjamin LaHaise
2008-01-12 20:21 ` Christoph Hellwig
2008-01-12 21:24 ` Alan Cox
2008-01-12 21:39 ` H. Peter Anvin
2008-01-12 21:42 ` Alan Cox
2008-01-12 21:58 ` H. Peter Anvin
2008-01-13 22:03 ` Pavel Machek
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).