I just managed to permanently toast my testbox by setting
CONFIG_TASK_SIZE=0xC0000000. Now the box gets either a machine check or
it floods serial console as soon as usb traffic happens.


...
uhci_hcd 0000:00:12.0: host controller process error, something bad happened!
uhci_hcd 0000:00:12.0: host controller halted, very bad!
uhci_hcd 0000:00:12.0: host system error, PCI problems?
uhci_hcd 0000:00:12.0: host controller process error, something bad happened!
...

Can someone add a simple ratelimit to uhci_irq()? :)

--- ./drivers/usb/host/uhci-hcd.c~      2005-02-02 14:33:54.000000000 +0100
+++ ./drivers/usb/host/uhci-hcd.c       2005-02-02 18:42:49.000000000 +0100
@@ -1655,6 +1655,7 @@ static irqreturn_t uhci_irq(struct usb_h
        unsigned short status;
        struct urb_priv *urbp, *tmp;
        unsigned int age;
+       static unsigned short ratelimit = 0;
 
        /*
         * Read the interrupt status, and write it back to clear the
@@ -1666,7 +1667,7 @@ static irqreturn_t uhci_irq(struct usb_h
                return IRQ_NONE;
        outw(status, io_addr + USBSTS);         /* Clear it */
 
-       if (status & ~(USBSTS_USBINT | USBSTS_ERROR | USBSTS_RD)) {
+       if (!ratelimit++ && status & ~(USBSTS_USBINT | USBSTS_ERROR | 
USBSTS_RD)) {
                if (status & USBSTS_HSE)
                        dev_err(uhci_dev(uhci), "host system error, "
                                        "PCI problems?\n");



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to