Skip to contentSkip to conversation

regression with gammu on 2.6.21-rc7

DISCUSSION Wolfgang Erig 3 participants 6 messages Apr 20, 2007 – Apr 25, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I have a regression with 2.6.21-rc7-g80d74d51.
The utility "gammu" to talk to my mobile does not work anymore. With 2.6.20 gammu runs fine.

Distribution is the latest Debian/testing

Wolfgang

$ gammu --backup backup
Press Ctrl+C to break...
I/O possible
$ uname -a
Linux max 2.6.21-rc7-g80d74d51 #9 SMP Wed Apr 18 21:41:41 CEST 2007 i686 GNU/Linux
$ tail messages 
Apr 20 08:04:36 max kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
Apr 20 08:04:36 max kernel: extern: link up, 100Mbps, full-duplex, lpa 0x45E1
Apr 20 08:04:36 max kernel: intern:  setting half-duplex.
Apr 20 08:09:02 max kernel: usb 2-2: USB disconnect, address 3
Apr 20 08:09:02 max kernel: pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Apr 20 08:09:02 max kernel: pl2303 2-2:1.0: device disconnected
Apr 20 08:10:24 max kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
Apr 20 08:10:25 max kernel: usb 2-2: configuration #1 chosen from 1 choice
Apr 20 08:10:25 max kernel: pl2303 2-2:1.0: pl2303 converter detected
Apr 20 08:10:25 max kernel: usb 2-2: pl2303 converter now attached to ttyUSB0
$ strace -o strace.gammu gammu --backup backup
Press Ctrl+C to break...
$ tail strace.gammu
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B0 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B0 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B0 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B0 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCMBIC, [TIOCM_DTR])         = 0
ioctl(3, TIOCMBIC, [TIOCM_RTS])         = 0
ioctl(3, TIOCMGET, [0])                 = 0
nanosleep({1, 0}, 0)                    = ? ERESTART_RESTARTBLOCK (To be restarted)
--- SIGIO (I/O possible) @ 0 (0) ---
+++ killed by SIGIO +++
$ grep open strace.gammu 
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libGammu.so.1", O_RDONLY) = 3
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/usr/lib/libmysqlclient.so.15", O_RDONLY) = 3
open("/usr/lib/libbluetooth.so.2", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/lib/tls/libcrypt.so.1", O_RDONLY) = 3
open("/lib/tls/libnsl.so.1", O_RDONLY)  = 3
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
open("/usr/lib/libz.so.1", O_RDONLY)    = 3
open("/home/erig/.gammurc", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/etc/gammurc", O_RDONLY)          = 3
open("/usr//gammu_c", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("/usr//gammu_c", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("/usr//gammu_c", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("/dev/ttyUSB0", O_RDWR|O_NONBLOCK|O_NOCTTY) = 3
#1 lore raw
Quoted 10 lines · Wolfgang Erig

Hello,

I have a regression with 2.6.21-rc7-g80d74d51.
The utility "gammu" to talk to my mobile does not work anymore. With 2.6.20 gammu runs fine.

Distribution is the latest Debian/testing

Wolfgang

Quoted 16 lines
$ gammu --backup backup
Press Ctrl+C to break...
I/O possible
$ uname -a
Linux max 2.6.21-rc7-g80d74d51 #9 SMP Wed Apr 18 21:41:41 CEST 2007 i686 GNU/Linux
$ tail messages 
Apr 20 08:04:36 max kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
Apr 20 08:04:36 max kernel: extern: link up, 100Mbps, full-duplex, lpa 0x45E1
Apr 20 08:04:36 max kernel: intern:  setting half-duplex.
Apr 20 08:09:02 max kernel: usb 2-2: USB disconnect, address 3
Apr 20 08:09:02 max kernel: pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Apr 20 08:09:02 max kernel: pl2303 2-2:1.0: device disconnected
Apr 20 08:10:24 max kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
Apr 20 08:10:25 max kernel: usb 2-2: configuration #1 chosen from 1 choice
Apr 20 08:10:25 max kernel: pl2303 2-2:1.0: pl2303 converter detected
Apr 20 08:10:25 max kernel: usb 2-2: pl2303 converter now attached to ttyUSB0

That looks ok, I'm guessing you yanked it out and then back in?

Or is the problem that the device was removed?

thanks,

greg k-h

#2 lore raw

Hello Greg,

Quoted 7 lines · Greg KH
Quoted 6 lines · Wolfgang Erig

Hello,

I have a regression with 2.6.21-rc7-g80d74d51.
The utility "gammu" to talk to my mobile does not work anymore. With 2.6.20 gammu runs fine.

Quoted 7 lines
Quoted 7 lines

Distribution is the latest Debian/testing

Wolfgang

$ gammu --backup backup
Press Ctrl+C to break...
I/O possible

the problem is here because gammu stops working. Maybe a problem in gammu, but with 2.6.20 gammu works fine.

Quoted 14 lines
Quoted 5 lines
$ uname -a
Linux max 2.6.21-rc7-g80d74d51 #9 SMP Wed Apr 18 21:41:41 CEST 2007 i686 GNU/Linux
$ tail messages 
Apr 20 08:04:36 max kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
Apr 20 08:04:36 max kernel: extern: link up, 100Mbps, full-duplex, lpa 0x45E1
Quoted 8 lines
Apr 20 08:04:36 max kernel: intern:  setting half-duplex.
Apr 20 08:09:02 max kernel: usb 2-2: USB disconnect, address 3
Apr 20 08:09:02 max kernel: pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Apr 20 08:09:02 max kernel: pl2303 2-2:1.0: device disconnected
Apr 20 08:10:24 max kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
Apr 20 08:10:25 max kernel: usb 2-2: configuration #1 chosen from 1 choice
Apr 20 08:10:25 max kernel: pl2303 2-2:1.0: pl2303 converter detected
Apr 20 08:10:25 max kernel: usb 2-2: pl2303 converter now attached to ttyUSB0
Quoted 1 line

That looks ok, I'm guessing you yanked it out and then back in?

Yes.
This is included only to see which device is connected.

Quoted 1 line

Or is the problem that the device was removed?

No, no problem with removal.
I see no hint for a problem in the usb-layer.

Thanks,
Wolfgang

#3 lore raw
Quoted 1 line · Wolfgang Erig

Hello Greg,

Please don't take me out of the cc:, otherwise I might mist this (as I did...)

Quoted 31 lines · Greg KH
Quoted 7 lines · Wolfgang Erig
Quoted 6 lines

Hello,

I have a regression with 2.6.21-rc7-g80d74d51.
The utility "gammu" to talk to my mobile does not work anymore. With 2.6.20 gammu runs fine.

Quoted 7 lines
Quoted 7 lines

Distribution is the latest Debian/testing

Wolfgang

$ gammu --backup backup
Press Ctrl+C to break...
I/O possible

the problem is here because gammu stops working. Maybe a problem in gammu, but with 2.6.20 gammu works fine.

Quoted 14 lines
Quoted 13 lines
$ uname -a
Linux max 2.6.21-rc7-g80d74d51 #9 SMP Wed Apr 18 21:41:41 CEST 2007 i686 GNU/Linux
$ tail messages 
Apr 20 08:04:36 max kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
Apr 20 08:04:36 max kernel: extern: link up, 100Mbps, full-duplex, lpa 0x45E1
Apr 20 08:04:36 max kernel: intern:  setting half-duplex.
Apr 20 08:09:02 max kernel: usb 2-2: USB disconnect, address 3
Apr 20 08:09:02 max kernel: pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Apr 20 08:09:02 max kernel: pl2303 2-2:1.0: device disconnected
Apr 20 08:10:24 max kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
Apr 20 08:10:25 max kernel: usb 2-2: configuration #1 chosen from 1 choice
Apr 20 08:10:25 max kernel: pl2303 2-2:1.0: pl2303 converter detected
Apr 20 08:10:25 max kernel: usb 2-2: pl2303 converter now attached to ttyUSB0
Quoted 6 lines
Quoted 1 line

That looks ok, I'm guessing you yanked it out and then back in?

Yes.
This is included only to see which device is connected.

Quoted 1 line

Or is the problem that the device was removed?

No, no problem with removal.
I see no hint for a problem in the usb-layer.

I don't see any problems here.

If you enable debugging in the pl2303 driver, do you get any errors? You can do this by:

	modprobe pl2303 debug=1

or if the module is built in or already loaded:
echo 1 > /sys/modules/pl2303/parameters/debug

Also, if you know how to use git, doing a 'git bisect' to try to track down the problem commit would be very helpful.

thanks,

greg k-h

#5 lore raw
Quoted 7 lines · Ray Lee
Quoted 2 lines · Greg KH

Also, if you know how to use git, doing a 'git bisect' to try to track down the problem commit would be very helpful.

Has to do with SIGIO, see this blog post:

http://blog.cihar.com/archives/2007/04/24/kernel_2_6_21_hits_gammu/

Ah, thank you very much, that makes more sense as nothing changed in that usb-serial driver and I was starting to get a bit worried...

thanks,

greg k-h