On Tue, 31 Jul 2007 16:27:51 -0400 (EDT)
Alan Stern <[EMAIL PROTECTED]> wrote:

> 
> Here's a diagnotic patch to try under 2.6.22.  It should add some
> interesting information to the kernel log, starting from the point
> where the modem gets plugged in.
> 

The kernel 2.6.22 was patched and recompiled.

It shouldn't make a difference but the problem occurs
only if I load the modules _before_ plugging in the external
modem.  If I load the modules _after_ plugging in the modem,
the problem disappears.  (At least this is what happens with
the patched kernel.  I'll revert back to the unpatched and
see if this is still the case.)

Here is the kernel log when the modules are loaded first
and then the modem is plugged in (the machine has just been
rebooted):

usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 20 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 20, io base 0x00006000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.1: irq 17, io base 0x00006400
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
hub 2-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.2: irq 18, io base 0x00006800
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
hub 3-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.3: irq 19, io base 0x00007000
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
hub 4-0:1.0: Create sysfs intf files
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB 
modems and ISDN adapters
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #2 chosen from 2 choices
cdc_acm 2-2:2.0: ttyACM0: USB ACM device
cdc_acm 2-2:2.0: Create sysfs intf files
cdc_acm 2-2:2.1: Create sysfs intf files
usbcore: deregistering interface driver cdc_acm
cdc_acm 2-2:2.1: Remove sysfs intf files
cdc_acm 2-2:2.1: Create sysfs intf files
cdc_acm 2-2:2.0: Remove sysfs intf files
cdc_acm 2-2:2.0: Create sysfs intf files
uhci_hcd 0000:00:1d.3: remove, state 1
usb usb4: USB disconnect, address 1
hub 4-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.3: USB bus 4 deregistered
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
uhci_hcd 0000:00:1d.2: remove, state 1
usb usb3: USB disconnect, address 1
hub 3-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.2: USB bus 3 deregistered
ACPI: PCI interrupt for device 0000:00:1d.2 disabled
uhci_hcd 0000:00:1d.1: remove, state 1
usb usb2: USB disconnect, address 1
usb 2-2: USB disconnect, address 2
usb 2-2:2.0: Remove sysfs intf files
Unable to handle kernel paging request at ffffffff8802a440 RIP: 
 [sysfs_get_name+46/65] sysfs_get_name+0x2e/0x41
PGD 203067 PUD 205063 PMD 7a6c6067 PTE 0
Oops: 0000 [1] SMP 
CPU 1 
Modules linked in: uhci_hcd usbcore
Pid: 730, comm: rmmod Not tainted 2.6.22 #4
RIP: 0010:[sysfs_get_name+46/65]  [sysfs_get_name+46/65] 
sysfs_get_name+0x2e/0x41
RSP: 0000:ffff810079b69ce0  EFLAGS: 00010246
RAX: ffffffff8802a440 RBX: ffff810079abf780 RCX: 0000000000000000
RDX: 0000000000000004 RSI: ffffffff80423b38 RDI: ffff810079abf4a8
RBP: ffff810079abf4a8 R08: 0000000000000000 R09: 8000000000000000
R10: ffff81007f611ac0 R11: ffffffff80330606 R12: ffff810079abf4b0
R13: ffff81007f741250 R14: ffffffff80423b38 R15: ffffffff88025940
FS:  00002af84fbca6f0(0000) GS:ffff810002f4d140(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffff8802a440 CR3: 0000000079b53000 CR4: 00000000000006e0
Process rmmod (pid: 730, threadinfo ffff810079b68000, task ffff810002f8d100)
Stack:  ffffffff8029b6dd ffff81007cfe4020 ffff81007cfe41a0 ffff810079e1f800
 ffff81007cfe4110 ffff810079e1f888 ffffffff80330987 ffff81007cfe4000
 ffff81007cfe4000 ffff81007cfe4020 ffffffff80330b96 ffff81007cfe4000
Call Trace:
 [sysfs_hash_and_remove+104/295] sysfs_hash_and_remove+0x68/0x127
 [device_remove_file+37/58] device_remove_file+0x25/0x3a
 [device_del+375/704] device_del+0x177/0x2c0
 [_end+128974510/2131730856] :usbcore:usb_disable_device+0x8b/0xfa
 [_end+128958961/2131730856] :usbcore:usb_disconnect+0x98/0xee
 [_end+128958941/2131730856] :usbcore:usb_disconnect+0x84/0xee
 [_end+128966909/2131730856] :usbcore:usb_remove_hcd+0x85/0xe1
 [_end+129007794/2131730856] :usbcore:usb_hcd_pci_remove+0x1d/0x89
 [pci_device_remove+36/77] pci_device_remove+0x24/0x4d
 [__device_release_driver+130/184] __device_release_driver+0x82/0xb8
 [driver_detach+252/261] driver_detach+0xfc/0x105
 [bus_remove_driver+122/157] bus_remove_driver+0x7a/0x9d
 [pci_unregister_driver+16/129] pci_unregister_driver+0x10/0x81
 [_end+129096572/2131730856] :uhci_hcd:uhci_hcd_cleanup+0x10/0x2c
 [sys_delete_module+319/444] sys_delete_module+0x13f/0x1bc
 [__up_write+29/318] __up_write+0x1d/0x13e
 [system_call+126/131] system_call+0x7e/0x83


Code: 48 8b 00 c3 83 fa 20 74 f7 31 c0 0f 1f 00 c3 0f 0b eb fe 41 
RIP  [sysfs_get_name+46/65] sysfs_get_name+0x2e/0x41
 RSP <ffff810079b69ce0>
CR2: ffffffff8802a440


Now, here is the kernel log when the modem is plugged in first
and then the modules are loaded (the machine has just been rebooted):

usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 20 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 20, io base 0x00006000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.1: irq 17, io base 0x00006400
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
hub 2-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.2: irq 18, io base 0x00006800
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
hub 3-0:1.0: Create sysfs intf files
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.3: irq 19, io base 0x00007000
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
hub 4-0:1.0: Create sysfs intf files
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: configuration #2 chosen from 2 choices
usb 2-2:2.0: Create sysfs intf files
usb 2-2:2.1: Create sysfs intf files
cdc_acm 2-2:2.0: ttyACM0: USB ACM device
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB 
modems and ISDN adapters
usbcore: deregistering interface driver cdc_acm
cdc_acm 2-2:2.1: Remove sysfs intf files
cdc_acm 2-2:2.1: Create sysfs intf files
cdc_acm 2-2:2.0: Remove sysfs intf files
cdc_acm 2-2:2.0: Create sysfs intf files
uhci_hcd 0000:00:1d.3: remove, state 1
usb usb4: USB disconnect, address 1
hub 4-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.3: USB bus 4 deregistered
ACPI: PCI interrupt for device 0000:00:1d.3 disabled
uhci_hcd 0000:00:1d.2: remove, state 1
usb usb3: USB disconnect, address 1
hub 3-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.2: USB bus 3 deregistered
ACPI: PCI interrupt for device 0000:00:1d.2 disabled
uhci_hcd 0000:00:1d.1: remove, state 1
usb usb2: USB disconnect, address 1
usb 2-2: USB disconnect, address 2
usb 2-2:2.0: Remove sysfs intf files
usb 2-2:2.1: Remove sysfs intf files
hub 2-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.1: USB bus 2 deregistered
uhci_hcd 0000:00:1d.1: dma_pool_destroy buffer-128, ffff810079aef000 busy
ACPI: PCI interrupt for device 0000:00:1d.1 disabled
uhci_hcd 0000:00:1d.0: remove, state 1
usb usb1: USB disconnect, address 1
hub 1-0:1.0: Remove sysfs intf files
uhci_hcd 0000:00:1d.0: USB bus 1 deregistered
ACPI: PCI interrupt for device 0000:00:1d.0 disabled
usbcore: deregistering device driver usb
usbcore: deregistering interface driver usbfs
usbcore: deregistering interface driver hub

AK


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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