From: Pavel Machek <pavel@ucw.cz>
To: Tony Lindgren <tony@atomide.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
Alan Cox <alan@llwyncelyn.cymru>, Dan Williams <dcbw@redhat.com>,
Jiri Prchal <jiri.prchal@aksignal.cz>,
Jiri Slaby <jslaby@suse.cz>, Marcel Partap <mpartap@gmx.net>,
Merlijn Wajer <merlijn@wizzup.org>,
Michael Nazzareno Trimarchi <michael@amarulasolutions.com>,
Michael Scott <michael.scott@linaro.org>,
Peter Hurley <peter@hurleysoftware.com>,
Russ Gorby <russ.gorby@intel.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Sebastian Reichel <sre@kernel.org>
Subject: Re: [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode
Date: Thu, 12 Apr 2018 23:24:12 +0200 [thread overview]
Message-ID: <20180412212412.GA29243@amd> (raw)
In-Reply-To: <20180409134259.GO5700@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 3735 bytes --]
On Mon 2018-04-09 06:42:59, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [180409 10:56]:
> > Ok, I should have all that enabled. But droid4-ngsm still fails:
> >
> > user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm
> > Starting ngsm..
> > Testing ngsm..
> > Could not open /dev/gsmtty1: Level 2 halted
> > Trying to start ngsm again: Level 2 halted
> > Starting ngsm..
>
> I guess you must have phy-mapphone-mdm6600 enabled as you a have
> working modem over USB. What do you see in dmesg if you enable n_gsm
> debug with modprobe n_gsm debug=0xff or on kernel cmdline?
Ok, let me try... Got some debugging output, hopefully you can see
what is going on there?
Thanks,
Pavel
sudo insmod /tmp/n_gsm.ko debug=0xff
user@devuan:/my/droid4-ngsm$ sudo ./droid4-ngsm
Starting ngsm..
Testing ngsm..
Could not open /dev/gsmtty1: Level 2 halted
Trying to start ngsm again: Level 2 halted
Starting ngsm..
Testing ngsm..
Could not open /dev/gsmtty1: Level 2 halted
Trying to start ngsm again: Level 2 halted
Starting ngsm..
^CCould not set conf: Interrupted system call
Could not start ngsm: Interrupted system call
[ 3378.381134] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host
[ 3408.460937] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host
[ 3413.633239] Q> 0) R: UIH(F)
[ 3413.639190] C3
[ 3413.642761] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3413.653564] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3413.978942] Q> 0) R: UIH(F)
[ 3413.984924] C3
[ 3413.988586] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3413.999114] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3414.328247] Q> 0) R: UIH(F)
[ 3414.333068] C3
[ 3414.336608] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3414.346984] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3414.679870] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3414.690979] --> 0) C: SABM(P)
[ 3414.798370] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3414.809570] --> 0) C: SABM(P)
[ 3414.918243] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3414.928588] --> 0) C: SABM(P)
[ 3416.743682] Q> 0) R: UIH(F)
[ 3416.748352] C3
[ 3416.751800] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3416.762145] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3417.088256] Q> 0) R: UIH(F)
[ 3417.093078] C3
[ 3417.096679] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3417.107208] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3417.438201] Q> 0) R: UIH(F)
[ 3417.443206] C3
[ 3417.446990] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3417.457733] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3417.788330] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3417.799163] --> 0) C: SABM(P)
[ 3417.918243] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3417.929107] --> 0) C: SABM(P)
[ 3418.038208] gsmld_output: 00000000: f9 03 3f 01 1c f9
..?...
[ 3418.049102] --> 0) C: SABM(P)
[ 3419.854248] Q> 0) R: UIH(F)
[ 3419.859527] C3
[ 3419.863555] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3419.874481] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3420.208221] Q> 0) R: UIH(F)
[ 3420.213500] C3
[ 3420.217498] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3420.228393] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3420.598205] Q> 0) R: UIH(F)
[ 3420.603515] C3
[ 3420.607513] gsm_data_kick: 00000000: 7e 01 ef c3 aa 7e
~....~
[ 3420.618377] gsmld_output: 00000000: 7e 01 ef c3 aa 7e
~....~
user@devuan:/my/droid4-ngsm$
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2018-04-12 21:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-07 17:19 [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode Tony Lindgren
2018-04-07 17:19 ` [PATCH 2/2] tty: n_gsm: Fix DLCI handling for ADM mode if debug & 2 is not set Tony Lindgren
2018-04-08 9:02 ` [PATCH 1/2] tty: n_gsm: Fix long delays with control frame timeouts in ADM mode Pavel Machek
2018-04-08 16:50 ` Tony Lindgren
2018-04-08 19:06 ` Pavel Machek
2018-04-08 23:57 ` Tony Lindgren
2018-04-09 10:54 ` Pavel Machek
2018-04-09 13:42 ` Tony Lindgren
2018-04-10 11:09 ` Pavel Machek
2018-04-10 13:43 ` Tony Lindgren
2018-04-12 21:24 ` Pavel Machek [this message]
2018-04-13 0:24 ` Tony Lindgren
2018-04-16 8:44 ` Pavel Machek
2018-04-16 14:47 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180412212412.GA29243@amd \
--to=pavel@ucw.cz \
--cc=alan@llwyncelyn.cymru \
--cc=dcbw@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jiri.prchal@aksignal.cz \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=merlijn@wizzup.org \
--cc=michael.scott@linaro.org \
--cc=michael@amarulasolutions.com \
--cc=mpartap@gmx.net \
--cc=peter@hurleysoftware.com \
--cc=russ.gorby@intel.com \
--cc=s.hauer@pengutronix.de \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).