* USB oops Linux 2.4.2ac6
2001-02-28 0:21 Alan Cox
@ 2001-02-28 19:15 ` Thomas Dodd
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Dodd @ 2001-02-28 19:15 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-usb-devel
2.4.2-ac3 was fine.
These are the only USB changes I see since then.
> 2.4.2-ac6
> o USB hub kmalloc wrong size corruption fix (Peter Zaitcev)
>
> 2.4.2-ac5
> o Fix busy loop in usb storage (Arjan van de Ven)
> o Fix USB thread wakeup scheduling (Arjan van de Ven)
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
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF c14aabc0, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB OHCI Root Hub
SerialNumber: d3874000
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: TT requires at most 8 FS bit times
hub.c: Port indicators are not supported
hub.c: power on to power good time: 0ms
hub.c: hub controller current requirement: 255mA
hub.c: port removable status: RRRR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c14aabc0
usb.c: kusbd: /sbin/hotplug add 1
--------------
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
-----
Every thing continued OK, but I wasn't using the mouse.
I rebooted with the new kernel and got an oops when the init scripts
started looking for usb devices.
In 2.4.2-ac3 booting with the mouse shows this in the old log
-----------------
Feb 20 12:34:05 tedpc kernel: usb.c: registered new driver usbdevfs
Feb 20 12:34:05 tedpc kernel: usb.c: registered new driver hub
Feb 20 12:34:05 tedpc kernel: usb-ohci.c: USB OHCI at membase
0xd3874000, IRQ 11
Feb 20 12:34:05 tedpc kernel: usb-ohci.c: usb-00:07.4, Advanced Micro
Devices [AMD] AMD-756 [Viper] USB
Feb 20 12:34:05 tedpc kernel: usb.c: new USB bus registered, assigned
bus number 1
Feb 20 12:34:05 tedpc kernel: Product: USB OHCI Root Hub
Feb 20 12:34:05 tedpc kernel: SerialNumber: d3874000
Feb 20 12:34:05 tedpc kernel: hub.c: USB hub found
Feb 20 12:34:05 tedpc kernel: hub.c: 4 ports detected
Feb 20 12:34:05 tedpc kernel: hub.c: USB new device connect on bus1/2,
assigned device number 2
Feb 20 12:34:05 tedpc kernel: usb.c: USB device 2 (vend/prod 0x4b4/0x1)
is not claimed by any active driver.
Feb 20 12:34:05 tedpc kernel: Length = 18
Feb 20 12:34:05 tedpc kernel: DescriptorType = 01
Feb 20 12:34:05 tedpc kernel: USB version = 1.00
Feb 20 12:34:05 tedpc kernel: Vendor:Product = 04b4:0001
Feb 20 12:34:05 tedpc kernel: MaxPacketSize0 = 8
Feb 20 12:34:05 tedpc kernel: NumConfigurations = 1
Feb 20 12:34:05 tedpc kernel: Device version = 0.00
Feb 20 12:34:05 tedpc kernel: Device Class:SubClass:Protocol =
00:00:00
Feb 20 12:34:05 tedpc kernel: Per-interface classes
Feb 20 12:34:05 tedpc kernel: Configuration:
Feb 20 12:34:05 tedpc kernel: bLength = 9
Feb 20 12:34:05 tedpc kernel: bDescriptorType = 02
Feb 20 12:34:05 tedpc kernel: wTotalLength = 0022
Feb 20 12:34:05 tedpc kernel: bNumInterfaces = 01
Feb 20 12:34:05 tedpc kernel: bConfigurationValue = 01
Feb 20 12:34:05 tedpc kernel: iConfiguration = 00
Feb 20 12:34:06 tedpc kernel: bmAttributes = 80
Feb 20 12:34:06 tedpc kernel: MaxPower = 100mA
Feb 20 12:34:06 tedpc kernel:
Feb 20 12:34:06 tedpc kernel: Interface: 0
Feb 20 12:34:06 tedpc kernel: Alternate Setting: 0
Feb 20 12:34:06 tedpc kernel: bLength = 9
Feb 20 12:34:06 tedpc kernel: bDescriptorType = 04
Feb 20 12:34:06 tedpc kernel: bInterfaceNumber = 00
Feb 20 12:34:06 tedpc kernel: bAlternateSetting = 00
Feb 20 12:34:06 tedpc kernel: bNumEndpoints = 01
Feb 20 12:34:06 tedpc kernel: bInterface Class:SubClass:Protocol =
03:01:02
Feb 20 12:34:06 tedpc kernel: iInterface = 00
Feb 20 12:34:06 tedpc kernel: Endpoint:
Feb 20 12:34:06 tedpc kernel: bLength = 7
Feb 20 12:34:06 tedpc kernel: bDescriptorType = 05
Feb 20 12:34:06 tedpc kernel: bEndpointAddress = 81 (in)
Feb 20 12:34:06 tedpc kernel: bmAttributes = 03
(Interrupt)
Feb 20 12:34:06 tedpc kernel: wMaxPacketSize = 0003
Feb 20 12:34:06 tedpc kernel: bInterval = 0a
Feb 20 12:34:06 tedpc kernel: usb.c: registered new driver hid
Feb 20 12:34:06 tedpc kernel: input0: USB HID v1.00 Mouse [04b4:0001] on
usb1:2.0
Feb 20 12:34:06 tedpc kernel: mouse0: PS/2 mouse device for input0
Feb 20 12:34:06 tedpc kernel: mice: PS/2 mouse device common for all
mice
-----------------------
I don't have a serial console, so getting the oops takes a while.
I'll send it if needed.
I just loaded the mousedev and input modules. Plugging in
the mouse oopsed again.
The first line of the oops is
----
kernel BUG at slab.c:1398!
----
Any other ideas to try?
-Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: USB oops Linux 2.4.2ac6
@ 2001-02-28 22:50 Peter Zaitcev
2001-03-22 23:13 ` Thomas Dodd
0 siblings, 1 reply; 4+ messages in thread
From: Peter Zaitcev @ 2001-02-28 22:50 UTC (permalink / raw)
To: ted; +Cc: linux-kernel
> > 2.4.2-ac6
> > o USB hub kmalloc wrong size corruption fix (Peter Zaitcev)
> The first line of the oops is
>
> ----
> kernel BUG at slab.c:1398!
> ----
> Any other ideas to try?
> -Thomas
I did not break it, honest! I will be looking in a USB mouse
problem though. If you need an immediate resolution, nice
folks at linux-usb@lists.sourceforge.net may be able to help.
Or may be not :)
-- Pete
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: USB oops Linux 2.4.2ac6
2001-02-28 22:50 USB oops Linux 2.4.2ac6 Peter Zaitcev
@ 2001-03-22 23:13 ` Thomas Dodd
2001-03-22 23:53 ` [linux-usb-devel] " David Brownell
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Dodd @ 2001-03-22 23:13 UTC (permalink / raw)
To: linux-kernel, linux-usb-devel
Peter Zaitcev wrote:
>
> > > 2.4.2-ac6
> > > o USB hub kmalloc wrong size corruption fix (Peter Zaitcev)
>
> > The first line of the oops is
> >
> > ----
> > kernel BUG at slab.c:1398!
> > ----
> > Any other ideas to try?
> > -Thomas
>
> I did not break it, honest! I will be looking in a USB mouse
> problem though. If you need an immediate resolution, nice
> folks at linux-usb@lists.sourceforge.net may be able to help.
> Or may be not :)
I found the problem.
CONFIG_DEBUG_SLAB "Debug memory allocation"
in the 2.4.2-ac series doesn't work with USB.
2.4.2-ac5 just booted and found the mouse correctly.
On to ac-21 now...
Did David Brownell's patch to disable OHCI loading
on the AMD-756 make it into the source trees?
-Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-usb-devel] Re: USB oops Linux 2.4.2ac6
2001-03-22 23:13 ` Thomas Dodd
@ 2001-03-22 23:53 ` David Brownell
0 siblings, 0 replies; 4+ messages in thread
From: David Brownell @ 2001-03-22 23:53 UTC (permalink / raw)
To: linux-kernel, linux-usb-devel
> I found the problem.
> CONFIG_DEBUG_SLAB "Debug memory allocation"
> in the 2.4.2-ac series doesn't work with USB.
>
> 2.4.2-ac5 just booted and found the mouse correctly.
> On to ac-21 now...
I just glanced at Alan's change list, it didn't have patches
that seemed to cover that (vs ac20).
You might see what sort of luck you have with the patches
I posted to linux-usb-devel earlier today. At least both
usb-ohci and usb-uhci enumerated even after configuring
in slab debugging ... but there are bugs yet to be found.
Maybe it deserves a CONFIG_DEBUG_PCI_POOL to
decouple autopoisoning from CONFIG_DEBUG_SLAB.
> Did David Brownell's patch to disable OHCI loading
> on the AMD-756 make it into the source trees?
It's been sent to Linus. Unless/until someone learns the
vendor fix and implements it, it seems to be the best way
to prevent the 756-specific USB problems (happening
most with lowspeed devices like mice).
- Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-03-22 23:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-28 22:50 USB oops Linux 2.4.2ac6 Peter Zaitcev
2001-03-22 23:13 ` Thomas Dodd
2001-03-22 23:53 ` [linux-usb-devel] " David Brownell
-- strict thread matches above, loose matches on Subject: below --
2001-02-28 0:21 Alan Cox
2001-02-28 19:15 ` USB oops " Thomas Dodd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox