changeset 370:3901990724c5

Prevent Linux kernel from getting all confused by qemu 0.9.1 serial behavior.
author Rob Landley <rob@landley.net>
date Sat, 19 Jul 2008 01:41:49 -0500
parents 943e01ae5603
children b59c2561166e
files sources/patches/linux-2.6.25-shutup.patch
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/linux-2.6.25-shutup.patch	Sat Jul 19 01:41:49 2008 -0500
@@ -0,0 +1,19 @@
+QEMU 0.9.1 keeps a constant stream of data coming into the IRQ as long as
+there's serial input.  (Current svn has a rate limiter, but there hasn't
+been a release yet.)  This makes Linux think the device has gone nuts, and
+it prints lots of spurious warnings.  Make it shut up.
+
+diff -r 1ec969ad38de drivers/serial/8250.c
+--- a/drivers/serial/8250.c	Wed Jul 02 19:29:16 2008 -0700
++++ b/drivers/serial/8250.c	Sun Jul 06 18:12:09 2008 -0500
+@@ -1494,8 +1494,8 @@
+ 
+ 		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);
++//			printk(KERN_ERR "serial8250: too much work for "
++//				"irq%d\n", irq);
+ 			break;
+ 		}
+ 	} while (l != end);