Re: [linux-usb-devel] USB oops Linux 2.4.2ac6

David Brownell (david-b@pacbell.net)
Wed, 28 Feb 2001 18:48:21 -0800


> Tbird-700 on MSI-6167 (Viper based) board.
> from dmesg
> -------------
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> usb-ohci.c: USB OHCI at membase 0xd3874000, IRQ 11
> usb-ohci.c: usb-00:07.4, Advanced Micro Devices [AMD] AMD-756 [Viper]
> USB

Note that there's a chip erratum (#4 I think) on the AMD-756 that
makes it handle lowspeed devices wrong ... AMD told me I'd need
an NDA to learn their workaround, and I've not pursued it. (Does
anyone already know what kind of NDA they use?)

> --------------
> If I boot with my mouse plugged in, or plug it in after the system
> is up, I get an oops.
> While I was buildong the kernel I got a message from the kernel
> --------
> Feb 28 10:03:07 tedpc kernel: usb-ohci.c: bogus NDP=242 for OHCI
> usb-00:07.4
> Feb 28 10:03:07 tedpc kernel: usb-ohci.c: rereads as NDP=4
> -----

These are symptoms of that erratum. Don't plug lowspeed devices
(like, probably, your mouse) into the root hub ... something about
that makes some of the registers read wrong. Like telling you
that you've got 242 downstream ports. At least this time it was
a clearly bogus value.

Since the second register read was correct, I've sometimes thought
maybe it'd work better if you just redefined readl() to do each read
twice ... might be worth the experiment, since you have the hardware.

> ----
> kernel BUG at slab.c:1398!
> ----

Something went wrong ... :-) Hard to say who without
at least a stacktrace.

- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/