From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org,
Benjamin Reed <breed@almaden.ibm.com>,
Javier Achirica <achirica@ttd.net>
Subject: Re: [BUG] Oopsen with pcmcia aironet wireless (2.5.47)
Date: Tue, 12 Nov 2002 10:02:34 -0800 [thread overview]
Message-ID: <20021112180234.GB10986@bougret.hpl.hp.com> (raw)
In-Reply-To: <3DD07FF4.2E1BC593@digeo.com>
On Mon, Nov 11, 2002 at 08:13:40PM -0800, Andrew Morton wrote:
> Andrew McGregor wrote:
> >
> > I see lots of oopsen when I insert an Aironet PC4800 802.11 card.
>
> They are debug warnings, not oopses.
>
> > ...
> > Nov 12 15:40:39 localhost kernel: end_request: I/O error, dev hdb, sector 0
> > Nov 12 15:40:39 localhost last message repeated 3 times
> > Nov 12 15:40:39 localhost kernel: end_request: I/O error, dev hdc, sector 0
> > Nov 12 15:40:39 localhost last message repeated 2 times
>
> hm. IDE sick?
>
> > Nov 12 15:40:39 localhost kernel: Debug: sleeping function called from
> > illegal context at include/asm/semaphore.h:145
> > Nov 12 15:40:39 localhost kernel: Call Trace:
> > Nov 12 15:40:39 localhost kernel: [<e1a59215>] PC4500_readrid+0x55/0x160
>
> airo_get_stats is called under the read_lock(&dev_base_lock); which was
> taken in dev_get_info. So it may not call sleeping functions (ie:
> down_interruptible()).
>
> It would appear that no netdevice->get_stats() method is allowed to sleep,
> which seems pretty dumb, IMVHO.
Forwarded to airo maintainer.
Javier :
Most drivers collect stats based on Tx/Rx packets (they just
increment counters). Look at other driver for details. If you really
want to get stats out of the firmware, you may use the techinique I
used in orinoco for wireless stats, which is to use previous stats and
only call async the stat function.
Have fun...
Jean
prev parent reply other threads:[~2002-11-12 17:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-12 2:47 Andrew McGregor
2002-11-12 4:13 ` Andrew Morton
2002-11-12 18:02 ` Jean Tourrilhes [this message]
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=20021112180234.GB10986@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=achirica@ttd.net \
--cc=akpm@digeo.com \
--cc=breed@almaden.ibm.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
/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®