Commit f4f653e9 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

serial: 8250, disable "too much work" messages

The 8250 driver now reports many of these:
  serial8250: too much work for irq4
These messages turned out to be common these days with a use of
virtualization. I tried to increase the limit of processed characters
in commit e7328ae1 (serial: 8250,
increase PASS_LIMIT) in 2011. It was raised from 256 to 512, but it is
still not enough, apparently.

So disable the warning unless somebody turns on DEBUG (or
DYNAMIC_DEBUG _and_ the message).
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Reported-by: default avatarMartin Pluskal <mpluskal@suse.com>
Reported-by: default avatarTakashi Iwai <tiwai@suse.com>
Tested-by: default avatarTakashi Iwai <tiwai@suse.de>
References: https://bugzilla.novell.com/show_bug.cgi?id=868394Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3053075c
...@@ -1601,8 +1601,7 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id) ...@@ -1601,8 +1601,7 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id)
l = l->next; l = l->next;
if (l == i->head && pass_counter++ > PASS_LIMIT) { if (l == i->head && pass_counter++ > PASS_LIMIT) {
/* If we hit this, we're dead. */ pr_debug_ratelimited(
printk_ratelimited(KERN_ERR
"serial8250: too much work for irq%d\n", irq); "serial8250: too much work for irq%d\n", irq);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment