Hi list,

Please CC: me since I am not subscribed to the list.

I am using Linux (uptodate Debian sid) on an 12" iBook (mid 2005
model). I am having some problems with usb moduleswhen I resume from
suspend-to-disk.

If the usb modules are loaded, I get a kernel oops and the system is
frozen. However, when I unload the usb modules before suspending, the
system resumes normally. But when I try to reload the modules
(ehci_hcd or ohci_hcd), I get again a kernel oops,and a "Bus error"
message.

I am using Debian kernel 2.6.18-4, but I get the same behaviour with
debian kernel 2.6.20 from experimental, and various self-compiled
kernels (2.6.21-rc5, 2.6.20, 2.6.18). In all of these kernels all
selected options for USB are compiled as modules when possible.

What is strange is that I cannot remove usbcore with these kernels
(module in use), although this was possible with 2.6.16.

I attach here an piece of my syslog showing a suspend process,
followed by a resume terminating by an oops.

Do you known how to solve that ? Do you need any more information ?

you can also find a picture of my screen after (another) oops here
http://cedric.boutillier.free.fr/uswsusp_oops.jpg

here is the output of
# lspci -v
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
       Flags: bus master, 66MHz, medium devsel, latency 16
       Capabilities: [80] AGP version 1.0

0000:00:10.0 VGA compatible controller: ATI Technologies Inc M11 NV
[FireGL Mobility T2e] (rev 80) (prog-if 00 [VGA])
       Subsystem: ATI Technologies Inc M11 NV [FireGL Mobility T2e]
       Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 48
       Memory at 98000000 (32-bit, prefetchable) [size=128M]
       I/O ports at f0000400 [size=256]
       Memory at 90000000 (32-bit, non-prefetchable) [size=64K]
       Expansion ROM at f1000000 [size=128K]
       Capabilities: [58] AGP version 2.0
       Capabilities: [50] Power Management version 2

0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
       Flags: bus master, 66MHz, medium devsel, latency 16

0001:10:12.0 Network controller: Broadcom Corporation BCM4318
[AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
       Subsystem: Apple Computer Inc. Unknown device 4318
       Flags: bus master, fast devsel, latency 16, IRQ 52
       Memory at 80084000 (32-bit, non-prefetchable) [size=8K]

0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
       Flags: bus master, medium devsel, latency 16
       Memory at 80000000 (32-bit, non-prefetchable) [size=512K]

0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
(prog-if 10 [OHCI])
       Flags: medium devsel, IRQ 27

0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
(prog-if 10 [OHCI])
       Flags: medium devsel, IRQ 28

0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
(prog-if 10 [OHCI])
       Flags: bus master, medium devsel, latency 16, IRQ 29
       Memory at 80083000 (32-bit, non-prefetchable) [size=4K]

0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
       Subsystem: NEC Corporation Hama USB 2.0 CardBus
       Flags: bus master, medium devsel, latency 16, IRQ 63
       Memory at 80082000 (32-bit, non-prefetchable) [size=4K]
       Capabilities: [40] Power Management version 2

0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10 [OHCI])
       Subsystem: NEC Corporation Hama USB 2.0 CardBus
       Flags: bus master, medium devsel, latency 16, IRQ 63
       Memory at 80081000 (32-bit, non-prefetchable) [size=4K]
       Capabilities: [40] Power Management version 2

0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if
20 [EHCI])
       Subsystem: NEC Corporation USB 2.0
       Flags: bus master, medium devsel, latency 16, IRQ 63
       Memory at 80080000 (32-bit, non-prefetchable) [size=256]
       Capabilities: [40] Power Management version 2

0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
       Flags: bus master, 66MHz, medium devsel, latency 16

0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
       Flags: bus master, medium devsel, latency 32, IRQ 39
       Memory at f5004000 (32-bit, non-prefetchable) [size=16K]

0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2
FireWire (rev 81) (prog-if 10 [OHCI])
       Subsystem: Apple Computer Inc. iBook G4 2004
       Flags: bus master, medium devsel, latency 64, IRQ 40
       Memory at f5000000 (32-bit, non-prefetchable) [size=4K]
       Capabilities: [44] Power Management version 2

0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC
(Sun GEM) (rev 80)
       Flags: bus master, 66MHz, slow devsel, latency 16, IRQ 41
       Memory at f5200000 (32-bit, non-prefetchable) [size=2M]
       Expansion ROM at f5100000 [disabled] [size=1M]


Thanks in advance

Cédric
Mar 30 18:17:19 localhost kernel: usbcore: deregistering driver usbhid
Mar 30 18:17:19 localhost kernel: usbcore: deregistering driver hiddev
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1b.1: remove, state 4
Mar 30 18:17:26 localhost kernel: usb usb3: USB disconnect, address 1
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1b.1: USB bus 3 deregistered
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1b.0: remove, state 4
Mar 30 18:17:26 localhost kernel: usb usb2: USB disconnect, address 1
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1b.0: USB bus 2 deregistered
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1a.0: remove, state 1
Mar 30 18:17:26 localhost kernel: usb usb1: USB disconnect, address 1
Mar 30 18:17:26 localhost kernel: usb 1-1: USB disconnect, address 2
Mar 30 18:17:26 localhost kernel: usb 1-2: USB disconnect, address 3
Mar 30 18:17:26 localhost kernel: input: appletouch disconnected
Mar 30 18:17:26 localhost kernel: ohci_hcd 0001:10:1a.0: USB bus 1 deregistered
Mar 30 18:17:47 localhost kernel: ehci_hcd 0001:10:1b.2: remove, state 1
Mar 30 18:17:47 localhost kernel: usb usb4: USB disconnect, address 1
Mar 30 18:17:47 localhost kernel: ehci_hcd 0001:10:1b.2: USB bus 4 deregistered
Mar 30 18:17:52 localhost kernel: usbcore: deregistering driver appletouch
Mar 30 18:18:16 localhost avahi-daemon[2602]: Got SIGTERM, quitting.
Mar 30 18:20:10 localhost kernel: Stopping tasks: =============================|
Mar 30 18:20:10 localhost kernel: Shrinking memory...  ^H-^Hdone (0 pages freed)
Mar 30 18:20:10 localhost kernel: aoa_fabric_layout_suspend()
Mar 30 18:20:10 localhost kernel: eth0: suspending, WakeOnLan disabled
Mar 30 18:20:10 localhost kernel: bcm43xx: Suspending...
Mar 30 18:20:10 localhost kernel: bcm43xx: Device suspended.
Mar 30 18:20:10 localhost kernel: radeonfb (0000:00:10.0): suspending to state: 
1...
Mar 30 18:20:10 localhost kernel: .......
Mar 30 18:20:10 localhost kernel: swsusp: Need to copy 16883 pages
Mar 30 18:20:10 localhost kernel: swsusp: Restoring Highmem
Mar 30 18:20:10 localhost kernel: radeonfb (0000:00:10.0): resuming from state: 
1...
Mar 30 18:20:10 localhost kernel: bcm43xx: Resuming...
Mar 30 18:20:10 localhost kernel: PCI: Enabling device 0001:10:12.0 (0004 -> 
0006)
Mar 30 18:20:10 localhost kernel: bcm43xx: Device resumed.
Mar 30 18:20:10 localhost kernel: eth0: resuming
Mar 30 18:20:10 localhost kernel: PHY ID: 4061e4, addr: 0
Mar 30 18:20:10 localhost kernel: hda: Enabling Ultra DMA 5
Mar 30 18:20:10 localhost kernel: hdc: Enabling MultiWord DMA 2
Mar 30 18:20:10 localhost kernel: aoa_fabric_layout_resume()
Mar 30 18:20:10 localhost kernel: Restarting tasks... done
Mar 30 18:20:12 localhost kernel: eth0: Link is up at 100 Mbps, full-duplex.
Mar 30 18:23:43 localhost kernel: ehci_hcd 0001:10:1b.2: EHCI Host Controller
Mar 30 18:23:43 localhost kernel: ehci_hcd 0001:10:1b.2: new USB bus 
registered, assigned bus number 1
Mar 30 18:23:43 localhost kernel: Machine check in kernel mode.
Mar 30 18:23:43 localhost kernel: Caused by (from SRR1=149030): Transfer error 
ack signal
Mar 30 18:23:43 localhost kernel: Oops: Machine check, sig: 7 [#1]
Mar 30 18:23:43 localhost kernel: 
Mar 30 18:23:43 localhost kernel: Modules linked in: ehci_hcd ipv6 snd_powermac 
fuse dm_snapshot dm_mirror dm_mod cpufreq_userspace therm_adt746x 
snd_aoa_codec_tas snd_aoa_fabric_layout snd_aoa joydev snd_aoa_i2sbus 
snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd soundcore 
bcm43xx firmware_class ieee80211softmac snd_aoa_soundbus ieee80211 
ieee80211_crypt uninorth_agp agpgart tsdev evdev ext3 jbd mbcache ide_cd cdrom 
ide_disk ohci1394 sungem sungem_phy ieee1394 usbcore i2c_powermac
Mar 30 18:23:43 localhost kernel: NIP: F21D7378 LR: F20B170C CTR: F21D7340
Mar 30 18:23:43 localhost kernel: REGS: c0dcfc80 TRAP: 0200   Not tainted  
(2.6.18-4-powerpc)
Mar 30 18:23:43 localhost kernel: MSR: 00149030 <EE,ME,IR,DR>  CR: 48022428  
XER: 20000000
Mar 30 18:23:43 localhost kernel: TASK = c2133990[3314] 'modprobe' THREAD: 
c0dce000
Mar 30 18:23:43 localhost kernel: GPR00: 6400004C C0DCFD30 C2133990 C2146E00 
0000000A 00000000 00000001 0000000A 
Mar 30 18:23:43 localhost kernel: GPR08: FFFFFFFC F1028000 00000001 C1EC4048 
48022428 1001EC04 0000000F F1071F9C 
Mar 30 18:23:43 localhost kernel: GPR16: 0000001B F10705E8 C1F25800 F10705C0 
000000A6 00000014 C02E1AA0 0000001D 
Mar 30 18:23:43 localhost kernel: GPR24: 00000080 0000003F C02BA000 F20CF8E8 
C1EC4000 C2146ED0 C2146E00 F20CF8E8 
Mar 30 18:23:43 localhost kernel: NIP [F21D7378] ehci_pci_setup+0x38/0x5f8 
[ehci_hcd]
Mar 30 18:23:43 localhost kernel: LR [F20B170C] usb_add_hcd+0x234/0x59c 
[usbcore]
Mar 30 18:23:43 localhost kernel: Call Trace:
Mar 30 18:23:43 localhost kernel: [C0DCFD30] [C02BA000] mem_init+0xa4/0x1f0 
(unreliable)
Mar 30 18:23:43 localhost kernel: [C0DCFD60] [F20B170C] usb_add_hcd+0x234/0x59c 
[usbcore]
Mar 30 18:23:43 localhost kernel: [C0DCFD90] [F20BAF2C] 
usb_hcd_pci_probe+0x1ec/0x28c [usbcore]
Mar 30 18:23:43 localhost kernel: [C0DCFDB0] [C0101A14] 
pci_device_probe+0x6c/0xa0
Mar 30 18:23:43 localhost kernel: [C0DCFDD0] [C01A7B44] 
driver_probe_device+0x60/0xf4
Mar 30 18:23:43 localhost kernel: [C0DCFDF0] [C01A7D04] 
__driver_attach+0x80/0xe4
Mar 30 18:23:43 localhost kernel: [C0DCFE10] [C01A7488] 
bus_for_each_dev+0x50/0x94
Mar 30 18:23:43 localhost kernel: [C0DCFE40] [C01A7A58] driver_attach+0x24/0x34
Mar 30 18:23:43 localhost kernel: [C0DCFE50] [C01A7070] 
bus_add_driver+0x78/0x128
Mar 30 18:23:43 localhost kernel: [C0DCFE70] [C01A7FF4] 
driver_register+0xa0/0xb4
Mar 30 18:23:43 localhost kernel: [C0DCFE80] [C0101840] 
__pci_register_driver+0x4c/0x8c
Mar 30 18:23:43 localhost kernel: [C0DCFE90] [F101D020] ehci_hcd_init+0x20/0x60 
[ehci_hcd]
Mar 30 18:23:43 localhost kernel: [C0DCFEA0] [C0049A6C] 
sys_init_module+0x12ec/0x147c
Mar 30 18:23:43 localhost kernel: [C0DCFF40] [C0011F08] 
ret_from_syscall+0x0/0x40
Mar 30 18:23:43 localhost kernel: --- Exception: c01 at 0xff6d048
Mar 30 18:23:43 localhost kernel:     LR = 0x10003c50
Mar 30 18:23:43 localhost kernel: Instruction dump:
Mar 30 18:23:43 localhost kernel: 7d800026 bf61001c 7c7e1b78 3ba300d0 90010034 
91810018 81630000 812300a4 
Mar 30 18:23:43 localhost kernel: 3b8bffb8 912300d0 7c0004ac 7c004c2c 
<0c000000> 4c00012c 5400063e 7d290214 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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