Subject: port-alpha/15388: OHCI scheduling errors very noisy on alpha
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/27/2002 15:23:16
>Number:         15388
>Category:       port-alpha
>Synopsis:       OHCI scheduling overrun notification very noisy on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 26 22:24:00 PST 2002
>Originator:     Christopher SEKIYA
>Release:        NetBSD 1.5ZA
System: NetBSD inasa 1.5ZA NetBSD 1.5ZA (INASA) #1: Tue Jan 22 21:25:51 JST 2002 wileyc@inasa:/usr/local/local_source/builder/sys/arch/alpha/compile/INASA alpha
Architecture: alpha
Machine: alpha

	OHCI adapter seems quite prone to scheduling overruns in alpha
	machines.  Reporting the overrun results in degraded system performance
	when the machine is on a serial console.
	Drop a PCI OHCI adapter in any PCI alpha, plug in a ZIP drive, and
	access it.
	The following patch disables the overrun report.

diff -urNbB ../netbsd-current/sys/dev/usb/ohci.c sys/dev/usb/ohci.c
--- ../netbsd-current/sys/dev/usb/ohci.c        Sat Dec 29 06:02:49 2001
+++ sys/dev/usb/ohci.c  Sun Dec 30 12:06:49 2001
@@ -1136,8 +1136,10 @@
        if (eintrs & OHCI_SO) {
                if (usbd_ratecheck(&sc->sc_overrun_ntc)) {
+#if !defined(__alpha__) /* very, very noisy on alpha */
                        printf("%s: %u scheduling overruns\n",
                            USBDEVNAME(sc->sc_bus.bdev), sc->sc_overrun_cnt);
                        sc->sc_overrun_cnt = 0;
                /* XXX do what */