Skip to contentSkip to conversation

2.6.15-rc2-git5 continues to fail suspending (USB issue)

DISCUSSION Patrizio Bassi 2 participants 7 messages Nov 25, 2005 – Dec 2, 2005

lore
Share & tools
lore
#0 lore raw

i tried today's git due to Greg's usb patches,
but they don't work.

i wrote already twice the problem:

Stopping tasks: ==========================|
Freeing memory... done (13146 pages freed)
usbfs 2-2:1.0: no suspend?
Could not suspend device 2-2: error -16
Some devices failed to suspend
Restarting tasks... done

If needed i'll reattach the patch i have (against 2.6.14-rc2 iirc)

lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0915:8000 GlobeSpan, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:04.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02) 00:04.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) 00:04.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) 00:04.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02) 00:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
00:0a.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50)
00:0a.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50)
00:0a.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51) 00:0b.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI] (rev 01) 00:0d.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 RF/SG AGP

#1 lore raw
Quoted 4 lines · Patrizio Bassi

i tried today's git due to Greg's usb patches,
but they don't work.

i wrote already twice the problem:

You wrote about it on lkml, not linux-usb-devel. So it might not have been noticed by the USB developers.

Quoted 7 lines

Stopping tasks: ==========================|
Freeing memory... done (13146 pages freed)
usbfs 2-2:1.0: no suspend?
Could not suspend device 2-2: error -16
Some devices failed to suspend
Restarting tasks... done

Quoted 8 lines

If needed i'll reattach the patch i have (against 2.6.14-rc2 iirc)

lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0915:8000 GlobeSpan, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Looks like the vanilla kernel needs to add suspend/resume methods for usbfs bindings. What is that GlobeSpan device? Are you running a userspace program that controls it? If you are, you can try quitting that program before suspending.

Also, if you haven't tried it, you might want to apply this patch:

http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-all-2.6.15-rc2-git3.patch

or whatever is the most current version when you download it.

Alan Stern

#2 lore raw

Alan Stern ha scritto:

Quoted 7 lines · Patrizio Bassi
Quoted 6 lines

i tried today's git due to Greg's usb patches,
but they don't work.

Quoted 9 lines
Quoted 3 lines

i wrote already twice the problem:

You wrote about it on lkml, not linux-usb-devel. So it might not have been noticed by the USB developers.

o sorry you're right. i tought usb team followed the main ml too.

Quoted 23 lines
Quoted 7 lines

Stopping tasks: ==========================|
Freeing memory... done (13146 pages freed)
usbfs 2-2:1.0: no suspend?
Could not suspend device 2-2: error -16
Some devices failed to suspend
Restarting tasks... done

Quoted 10 lines

If needed i'll reattach the patch i have (against 2.6.14-rc2 iirc)

lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0915:8000 GlobeSpan, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Looks like the vanilla kernel needs to add suspend/resume methods for usbfs bindings. What is that GlobeSpan device? Are you running a userspace program that controls it? If you are, you can try quitting that program before suspending.

Quoted 11 lines

Also, if you haven't tried it, you might want to apply this patch:

http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-all-2.6.15-rc2-git3.patch

or whatever is the most current version when you download it.

Alan Stern

globespan device is a zyxel prestige 630 adsl modem using eciadsl userspace drivers.
after killing the driver it suspended and resumed.

but i got a problem, trying to restart driver.

[EciAdsl 3/5] Synchronization...

ERROR reading interrupts
*** glibc detected *** double free or corruption (fasttop): 0x0804f158 *** /usr/bin/eciadsl-start: line 517: 11399 Abortito "$BIN_DIR/eciadsl-synch" $synch_options
ERROR: failed to get synchronization

usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd eciadsl-synch rqt 192 rq 222 len 13 ret -110

tried 3 times, always the same.
so i manually unplugged modem and replugged.
works perfectly (as usual).

seems a problem on suspending and resuming attached device.

i've access to eciadsl cvs so i can patch it.
the first problem (no suspend) i think can be fixed binding some signals in userspace, which?

the second seems an init problem, that i leave to you :)

Patrizio

#3 lore raw
Quoted 6 lines · Patrizio Bassi
Quoted 5 lines

You wrote about it on lkml, not linux-usb-devel. So it might not have been noticed by the USB developers.

o sorry you're right. i tought usb team followed the main ml too.

Some do and some don't.

Quoted 14 lines

globespan device is a zyxel prestige 630 adsl modem using eciadsl userspace drivers.
after killing the driver it suspended and resumed.

but i got a problem, trying to restart driver.

[EciAdsl 3/5] Synchronization...

ERROR reading interrupts
*** glibc detected *** double free or corruption (fasttop): 0x0804f158 *** /usr/bin/eciadsl-start: line 517: 11399 Abortito "$BIN_DIR/eciadsl-synch" $synch_options
ERROR: failed to get synchronization

Quoted 8 lines

usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd eciadsl-synch rqt 192 rq 222 len 13 ret -110

tried 3 times, always the same.
so i manually unplugged modem and replugged.
works perfectly (as usual).

seems a problem on suspending and resuming attached device.

Maybe it's a problem in the device.

Quoted 3 lines

i've access to eciadsl cvs so i can patch it.
the first problem (no suspend) i think can be fixed binding some signals in userspace, which?

There are no signals sent to userspace on suspend. It's too late to send signals, because all tasks have already been frozen.

Instead the usbfs code has to be changed to handle suspend/resume events on behalf of userspace drivers. Or you could use that patch I mentioned before; it unbinds drivers that don't have suspend methods.

Quoted 1 line

the second seems an init problem, that i leave to you :)

I can't do anything about it, since I don't have one of those modems.

Alan Stern

#4 lore raw

Alan Stern ha scritto:

Quoted 40 lines · Patrizio Bassi
Quoted 13 lines
Quoted 10 lines

You wrote about it on lkml, not linux-usb-devel. So it might not have been noticed by the USB developers.

o sorry you're right. i tought usb team followed the main ml too.

Some do and some don't.

Quoted 21 lines

globespan device is a zyxel prestige 630 adsl modem using eciadsl userspace drivers.
after killing the driver it suspended and resumed.

but i got a problem, trying to restart driver.

[EciAdsl 3/5] Synchronization...

ERROR reading interrupts
*** glibc detected *** double free or corruption (fasttop): 0x0804f158 *** /usr/bin/eciadsl-start: line 517: 11399 Abortito "$BIN_DIR/eciadsl-synch" $synch_options
ERROR: failed to get synchronization

usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd eciadsl-synch rqt 192 rq 222 len 13 ret -110

tried 3 times, always the same.
so i manually unplugged modem and replugged.
works perfectly (as usual).

Quoted 8 lines
Quoted 3 lines

seems a problem on suspending and resuming attached device.

Maybe it's a problem in the device.

no..why should after resume?
however i remember some kernels ago (.13/.14) it worked after resume hotplug restarted my driver, now not.

Quoted 6 lines
Quoted 5 lines

i've access to eciadsl cvs so i can patch it.
the first problem (no suspend) i think can be fixed binding some signals in userspace, which?

Quoted 9 lines

There are no signals sent to userspace on suspend. It's too late to send signals, because all tasks have already been frozen.

Instead the usbfs code has to be changed to handle suspend/resume events on behalf of userspace drivers. Or you could use that patch I mentioned before; it unbinds drivers that don't have suspend methods.

i don't like to use such big patches, i'm sure Greg will merge fast ;)

Quoted 11 lines
Quoted 3 lines

the second seems an init problem, that i leave to you :)

I can't do anything about it, since I don't have one of those modems.

Alan Stern

i understand, i appreciate your help.

#5 lore raw
Quoted 5 lines · Patrizio Bassi
Quoted 4 lines

Maybe it's a problem in the device.

no..why should after resume?

How should I know? It's _your_ device. :-)

Quoted 2 lines

however i remember some kernels ago (.13/.14) it worked after resume hotplug restarted my driver, now not.

To get some more useful information in the system log, turn on USB debugging (CONFIG_USB_DEBUG) and enable usbcore's usbfs_snoop=Y module parameter.

Alan Stern

#6 lore raw

Alan Stern ha scritto:

Quoted 23 lines · Patrizio Bassi
Quoted 12 lines
Quoted 9 lines

Maybe it's a problem in the device.

no..why should after resume?

How should I know? It's _your_ device. :-)

Quoted 4 lines

however i remember some kernels ago (.13/.14) it worked after resume hotplug restarted my driver, now not.

Quoted 9 lines

To get some more useful information in the system log, turn on USB debugging (CONFIG_USB_DEBUG) and enable usbcore's usbfs_snoop=Y module parameter.

Alan Stern

Alan, i just upgrated to 2.6.15-rc3 and it works after suspend. hotplug starts driver lovely.

so it was a kernel bug, as i suspected.

now only userspace driver shutdown needed.
waiting next kernel versions :)