FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-26-2012, 04:35 PM
Maik Zumstrull
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Sun, Feb 26, 2012 at 18:07, Greg KH <greg@kroah.com> wrote:
> On Sun, Feb 26, 2012 at 05:38:46PM +0100, Maik Zumstrull wrote:

> I don't see any long delay in your kernel log messages.

The problem isn't visible in dmesg AFAIK. I was asked to include this
output in the report just in case. It's visible in strace (attached to
Bugzilla, can take a fresh trace if you'd like), and to the user
because the whole system ignores user input during the freeze.

> What exactly is stalling so long?

When someone previously looked at the issue with me, the delay seemed
to be in acquiring the big TTY lock.

> Is the device stuck doing something?

Not as far as I know.

> If you enable debugging for usb and/or the driver, what does the kernel
> log show?

I don't think we've done that yet. Quick pointer on how to do this?
I'm reasonably experienced, but not a kernel developer. Just pass
debug=1 to certain modules?

> What driver is bound to this device, the option one?

Yes. The drivers symlink points to bus/usb/drivers/option, anyway, I
hope that's what you meant.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAO=zWDLH3fy0Hmi-N1TTQc1K2e44aDq2N__6y0_wqtXEXyx71g@mail.gmail.com" >http://lists.debian.org/CAO=zWDLH3fy0Hmi-N1TTQc1K2e44aDq2N__6y0_wqtXEXyx71g@mail.gmail.com
 
Old 02-26-2012, 04:57 PM
Greg KH
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Sun, Feb 26, 2012 at 06:35:43PM +0100, Maik Zumstrull wrote:
> On Sun, Feb 26, 2012 at 18:07, Greg KH <greg@kroah.com> wrote:
> > On Sun, Feb 26, 2012 at 05:38:46PM +0100, Maik Zumstrull wrote:
>
> > I don't see any long delay in your kernel log messages.
>
> The problem isn't visible in dmesg AFAIK. I was asked to include this
> output in the report just in case. It's visible in strace (attached to
> Bugzilla, can take a fresh trace if you'd like), and to the user
> because the whole system ignores user input during the freeze.
>
> > What exactly is stalling so long?
>
> When someone previously looked at the issue with me, the delay seemed
> to be in acquiring the big TTY lock.

There is no more "big" tty lock in the 3.2 kernel. Well, there's a
small one, but this all should be fixed now.

> > Is the device stuck doing something?
>
> Not as far as I know.

Are two userspace programs trying to access the device at the same time?
What could be causing the lock to hold things up here?

> > If you enable debugging for usb and/or the driver, what does the kernel
> > log show?
>
> I don't think we've done that yet. Quick pointer on how to do this?
> I'm reasonably experienced, but not a kernel developer. Just pass
> debug=1 to certain modules?

That can work if it's the option module.

> > What driver is bound to this device, the option one?
>
> Yes. The drivers symlink points to bus/usb/drivers/option, anyway, I
> hope that's what you meant.

Yes. Please try loading the module with:
modprobe option debug=1
and seeing what happens in the kernel log when you open the device.

thanks,

greg k-h



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120226175748.GA3715@kroah.com">http://lists.debian.org/20120226175748.GA3715@kroah.com
 
Old 02-26-2012, 05:48 PM
Maik Zumstrull
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Sun, Feb 26, 2012 at 18:57, Greg KH <greg@kroah.com> wrote:
> On Sun, Feb 26, 2012 at 06:35:43PM +0100, Maik Zumstrull wrote:

>> > Is the device stuck doing something?
>>
>> Not as far as I know.
>
> Are two userspace programs trying to access the device at the same time?

The device exports three virtual serial ports. ModemManager accesses
more than one. On the other hand, we were able to reproduce the freeze
accessing only one port from one process, see Bugzilla.

I've attached a fresh strace of opening the device on 3.2.6. The
open() takes 10s, the close takes 5s. Nothing else was accessing any
ttyUSB*; I killed ModemManager and double checked with lsof.

> Yes. *Please try loading the module with:
> * * * *modprobe option debug=1
> and seeing what happens in the kernel log when you open the device.

Output attached. I think it's three "option_send_setup" for one
open()/close(). At least, that's what happens with the C snippet.
 
Old 02-27-2012, 02:15 PM
Dan Williams
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Sun, 2012-02-26 at 19:48 +0100, Maik Zumstrull wrote:
> On Sun, Feb 26, 2012 at 18:57, Greg KH <greg@kroah.com> wrote:
> > On Sun, Feb 26, 2012 at 06:35:43PM +0100, Maik Zumstrull wrote:
>
> >> > Is the device stuck doing something?
> >>
> >> Not as far as I know.
> >
> > Are two userspace programs trying to access the device at the same time?
>
> The device exports three virtual serial ports. ModemManager accesses
> more than one. On the other hand, we were able to reproduce the freeze
> accessing only one port from one process, see Bugzilla.
>
> I've attached a fresh strace of opening the device on 3.2.6. The
> open() takes 10s, the close takes 5s. Nothing else was accessing any
> ttyUSB*; I killed ModemManager and double checked with lsof.
>
> > Yes. Please try loading the module with:
> > modprobe option debug=1
> > and seeing what happens in the kernel log when you open the device.
>
> Output attached. I think it's three "option_send_setup" for one
> open()/close(). At least, that's what happens with the C snippet.

There's a few issues going on here that I've seen before. First is the
SENDSETUP quirk in option.ko that is required for some devices where the
interface is claimed by option but really isn't supposed to be, because
it's not actually speaking USB serial. Thus it doesn't respond to the
sendsetup command and the option driver just blocks for a bit.

Second is "closing_wait", which ModemManager sets to
ASYNC_CLOSING_WAIT_NONE to prevent a 5 or 10 second freeze on close()
where if the port has not responded to any request, the buffer is still
full, and close() blocks (even if O_NONBLOCK) until the buffer is
flushed. Setting ASYNC_CLOSING_WAIT_NONE appeared to fix that.

What device is this?

Dan




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1330355725.1941.7.camel@dcbw.foobar.com">http://lists.debian.org/1330355725.1941.7.camel@dcbw.foobar.com
 
Old 02-27-2012, 02:22 PM
Maik Zumstrull
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Mon, Feb 27, 2012 at 16:15, Dan Williams <dcbw@redhat.com> wrote:

> What device is this?

Some kind of embedded Huawei USB thing. lsusb was in my first mail to
the list, don't have the netbook next to me right now.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAO=zWDLKoxt6zwwzy6i2685At9M6OVH7R74eKzha+Ew6MspQf Q@mail.gmail.com">http://lists.debian.org/CAO=zWDLKoxt6zwwzy6i2685At9M6OVH7R74eKzha+Ew6MspQf Q@mail.gmail.com
 
Old 02-27-2012, 02:33 PM
Dan Williams
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Sun, 2012-02-26 at 19:48 +0100, Maik Zumstrull wrote:
> On Sun, Feb 26, 2012 at 18:57, Greg KH <greg@kroah.com> wrote:
> > On Sun, Feb 26, 2012 at 06:35:43PM +0100, Maik Zumstrull wrote:
>
> >> > Is the device stuck doing something?
> >>
> >> Not as far as I know.
> >
> > Are two userspace programs trying to access the device at the same time?
>
> The device exports three virtual serial ports. ModemManager accesses
> more than one. On the other hand, we were able to reproduce the freeze
> accessing only one port from one process, see Bugzilla.
>
> I've attached a fresh strace of opening the device on 3.2.6. The
> open() takes 10s, the close takes 5s. Nothing else was accessing any
> ttyUSB*; I killed ModemManager and double checked with lsof.
>
> > Yes. Please try loading the module with:
> > modprobe option debug=1
> > and seeing what happens in the kernel log when you open the device.
>
> Output attached. I think it's three "option_send_setup" for one
> open()/close(). At least, that's what happens with the C snippet.

Ah, yeah, that would make sense. Does this happen for *all* ports on
the modem, or only a few ports? I'd expect option_send_setup() to work
for any AT-capable ports, but possibly fail for others that aren't full
serial ports, like DIAG/DM ports or other protocols. There's a
blacklist in option specifically for sendsetup that we can use to ensure
that ports that don't like sendsetup don't use it. But we need to
figure out which ports those are, since it's very unlikely to be all of
them.

Dan




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1330356797.1941.14.camel@dcbw.foobar.com">http://lists.debian.org/1330356797.1941.14.camel@dcbw.foobar.com
 
Old 02-27-2012, 02:44 PM
Maik Zumstrull
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Mon, Feb 27, 2012 at 16:33, Dan Williams <dcbw@redhat.com> wrote:

> Ah, yeah, that would make sense. *Does this happen for *all* ports on
> the modem, or only a few ports?

Patched the C snippet to open/close all three. Looks like ttyUSB0 is
fine, 1 and 2 hang.
 
Old 02-27-2012, 03:19 PM
Dan Williams
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Mon, 2012-02-27 at 16:44 +0100, Maik Zumstrull wrote:
> On Mon, Feb 27, 2012 at 16:33, Dan Williams <dcbw@redhat.com> wrote:
>
> > Ah, yeah, that would make sense. Does this happen for *all* ports on
> > the modem, or only a few ports?
>
> Patched the C snippet to open/close all three. Looks like ttyUSB0 is
> fine, 1 and 2 hang.

Any chance you can get the Windows driver installer for this device?
Looking at the INF files gives us clues as to what the ports are used
for. Also, I'd expect at least *two* AT capable ports on a GSM/UMTS
device, but perhaps only one on a CDMA/EVDO device. Is this an EM770
(CDMA/EVDO) or a GSM/UMTS device? Also, again is there any way you can
get the device model name and firmware version from ATI/AT+GMM/AT+GMR ?

Here's the problem we have. 12d1:1001 is an ID used by a *lot* of
Huawei devices. Most of them don't have this problem. Yours does.
Because Huawei use the same VID/PID for many devices, we can't identify
your device specifically and quirk it without quirking all of them.

Dan





--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1330359557.1941.24.camel@dcbw.foobar.com">http://lists.debian.org/1330359557.1941.24.camel@dcbw.foobar.com
 
Old 02-27-2012, 03:28 PM
Maik Zumstrull
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Mon, Feb 27, 2012 at 17:19, Dan Williams <dcbw@redhat.com> wrote:

> Any chance you can get the Windows driver installer for this device?

Weirdly, ASUS doesn't offer it for download. I wiped the included
Windows first thing.

> Looking at the INF files gives us clues as to what the ports are used
> for. *Also, I'd expect at least *two* AT capable ports on a GSM/UMTS
> device, but perhaps only one on a CDMA/EVDO device. *Is this an EM770
> (CDMA/EVDO) or a GSM/UMTS device?

GSM/UMTS

> *Also, again is there any way you can
> get the device model name and firmware version from ATI/AT+GMM/AT+GMR ?

Manufacturer: huawei
Model: EM770
Revision: 11.108.04.01.40
IMEI: [Removed]
+GCAP: +CGSM,+DS,+ES

OK

EM770

OK

11.108.04.01.40



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAO=zWDJ0spQzQmxUQ+aBpirKDqWgphKwr85HoRK=Uy81YcESD w@mail.gmail.com">http://lists.debian.org/CAO=zWDJ0spQzQmxUQ+aBpirKDqWgphKwr85HoRK=Uy81YcESD w@mail.gmail.com
 
Old 02-28-2012, 04:09 AM
Dan Williams
 
Default Bug#605275: EeePC 1005HAG still freezes when probing the builtin 3G modem

On Mon, 2012-02-27 at 17:28 +0100, Maik Zumstrull wrote:
> On Mon, Feb 27, 2012 at 17:19, Dan Williams <dcbw@redhat.com> wrote:
>
> > Any chance you can get the Windows driver installer for this device?
>
> Weirdly, ASUS doesn't offer it for download. I wiped the included
> Windows first thing.
>
> > Looking at the INF files gives us clues as to what the ports are used
> > for. Also, I'd expect at least *two* AT capable ports on a GSM/UMTS
> > device, but perhaps only one on a CDMA/EVDO device. Is this an EM770
> > (CDMA/EVDO) or a GSM/UMTS device?
>
> GSM/UMTS
>
> > Also, again is there any way you can
> > get the device model name and firmware version from ATI/AT+GMM/AT+GMR ?
>
> Manufacturer: huawei
> Model: EM770
> Revision: 11.108.04.01.40
> IMEI: [Removed]
> +GCAP: +CGSM,+DS,+ES
>
> OK
>
> EM770
>
> OK
>
> 11.108.04.01.40

Notes I'd seen from another driver indicate that it's got a modem/PPP
port (intf 0), a DIAG/DM port (intf 1 or 2) and the PCUI port (intf 1 or
2). At least the PCUI port should be able to respond to AT commands
too. Can you talk on ttyUSB1 or ttyUSB2 with AT commands?

Try "AT^GETPORTMODE" on any port that takes AT commands and see what you
get.

Dan




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1330405758.14474.4.camel@dcbw.foobar.com">http://lists.debian.org/1330405758.14474.4.camel@dcbw.foobar.com
 

Thread Tools




All times are GMT. The time now is 10:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org