From: Colin Leroy <colin@colino.net>
To: David Brownell <david-b@pacbell.net>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] [2.6.12-rc4] network wlan connection goes down
Date: Tue, 10 May 2005 10:43:49 +0200 [thread overview]
Message-ID: <20050510104349.7aca4227@colin.toulouse> (raw)
In-Reply-To: <200505090812.49090.david-b@pacbell.net>
On Mon, 9 May 2005 08:12:48 -0700
David Brownell <david-b@pacbell.net> wrote:
> On Monday 09 May 2005 7:24 am, Colin Leroy wrote:
> > Hi,
> >
> > I upgraded to 2.6.12-rc4, and noticed something strange after that.
> > After a few hours, the network connection goes down. The network
> > connectivity is done via a USB wifi stick driven by zd1201.
> >
> > After that, nothing gets through, not even a ping. ...
> >
> > Would anyone have any hint about what could have changed in the usb
> > subsystem (ohci driver) or in the network subsystem, that might
> > cause that?
>
> The OHCI code shouldn't have changed either, unless you're
> maybe using an old Compaq-brand chipset.
Nope, it's the ohci controller in the iBook g4 (Nec, I believe).
> However, if you enable CONFIG_USB_DEBUG and send the "async" and
> "registers" files from the relevant /sys/class/usb_host/usbN
> directory, it should be easy to tell whether there's an issue at that
> particular level.
ok, I reproduced it. I've put in place a crontab that checks if my
router is pingable, and if not, dumps async and registers, resets the
zd1201 (the iwconfig command is the one that puts it back into a
functioning state), and dumps async and registers.
Here's the result:
before resetting (when nothing gets through):
async:
ed/e1f8b040 fs dev3 ep1in max 64 00401083 DATA0
td e6f44040 in 3000 cc=0 urb ddf17120 (00140000)
registers:
bus pci, device 0001:10:1b.0
NEC Corporation USB
ohci_hcd version 2004 Nov 08
OHCI 1.0, NO legacy support registers
control 0x0a3 HCFS=operational BLE CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000064 RHSC FNO SF
intrenable 0x8000001a MIE UE RD WDH
ed_controlhead 21f8b000
ed_bulkhead 21f8b040
ed_bulkcurrent 21f8b040
hcca frame 0x5468
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x8000227a FRT FR=0x227a
periodicstart 0x2a2f
lsthresh 0x0628
roothub.a 0a000203 POTPGT=10 NPS NDP=3
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000103 PPS PES CCS
roothub.portstatus [1] 0x00000100 PPS
roothub.portstatus [2] 0x00000100 PPS
#iwconfig essid ...
#ping works now
async:
ed/e1f8b040 fs dev3 ep1in max 64 00401083 DATA0
td e6f44040 in 3000 cc=0 urb ddf17120 (00140000)
registers:
bus pci, device 0001:10:1b.0
NEC Corporation USB
ohci_hcd version 2004 Nov 08
OHCI 1.0, NO legacy support registers
control 0x0a3 HCFS=operational BLE CBSR=3
cmdstatus 0x00004 SOC=0 BLF
intrstatus 0x00000064 RHSC FNO SF
intrenable 0x8000001a MIE UE RD WDH
ed_controlhead 21f8b000
ed_bulkhead 21f8b040
ed_bulkcurrent 21f8b040
hcca frame 0x667b
fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf
fmremaining 0x8000258e FRT FR=0x258e
periodicstart 0x2a2f
lsthresh 0x0628
roothub.a 0a000203 POTPGT=10 NPS NDP=3
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000103 PPS PES CCS
roothub.portstatus [1] 0x00000100 PPS
roothub.portstatus [2] 0x00000100 PPS
The registers file changes while everything works, too. For example
"BLF" isn't always present on the cmdstatus line.
Also, I saw these lines in dmesg. Sadly enough they don't appear in
syslog so I can't tell whether it happened at the same time the network
went down.
ohci_hcd 0001:10:1b.0: fminterval a7782edf
ohci_hcd 0001:10:1b.0: fminterval a7782edf
ohci_hcd 0001:10:1b.0: fminterval a7782edf
ohci_hcd 0001:10:1b.0: fminterval a7782edf
Hope this helps,
--
Colin
next prev parent reply other threads:[~2005-05-10 8:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 14:24 Colin Leroy
2005-05-09 15:12 ` [linux-usb-devel] " David Brownell
2005-05-10 8:43 ` Colin Leroy [this message]
2005-05-10 14:07 ` David Brownell
2005-05-11 7:09 ` Colin Leroy
2005-05-11 11:59 ` Jeroen Vreeken
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=20050510104349.7aca4227@colin.toulouse \
--to=colin@colino.net \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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
all inboxes | Powered by JetHome®