linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: "Jeremy T. Bouse" <Jeremy.Bouse@UnderGrid.net>
Cc: linux-kernel@vger.kernel.org, breed@users.sourceforge.net
Subject: Re: PROBLEM: Problem with wireless PCMCIA card insertion on 2.6.0-test2
Date: Mon, 4 Aug 2003 19:01:33 +0100	[thread overview]
Message-ID: <20030804190133.D25847@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20030804171858.GA3215@UnderGrid.net>; from Jeremy.Bouse@UnderGrid.net on Mon, Aug 04, 2003 at 10:18:59AM -0700

On Mon, Aug 04, 2003 at 10:18:59AM -0700, Jeremy T. Bouse wrote:
> [1.]
> Problem with Wireless PCMCIA card insertion.

PCMCIA or CardBus?

> [5.]
> Jul 28 18:02:10 vaio kernel: airo:  Probing for PCI adapters
> Jul 28 18:02:10 vaio kernel: kobject_register failed for airo (-17)

This looks like an error in airo.  For starters, it doesn't unregister
its PCI driver structure when the module removed, so when it is
inserted the next time, you get this complaint.

(You can only have one driver called "airo" registered with the device
model.)

> Jul 28 18:09:25 vaio kernel: bad: scheduling while atomic!
> Jul 28 18:09:25 vaio kernel: Call Trace:
> Jul 28 18:09:25 vaio kernel:  [schedule+951/960] schedule+0x3b7/0x3c0
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2038071/2456049] 
> sendcommand+0xaa/0xe0 [airo]
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2037849/2456049] 
> issuecommand+0x5c/0x90 [airo]
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2039319/2456049] 
> PC4500_accessrid+0x4a/0x90 [airo]
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2039486/2456049] 
> PC4500_readrid+0x61/0x130 [airo]
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2028126/2456049] 
> readStatsRid+0x31/0x50 [airo]
> Jul 28 18:09:25 vaio kernel:  [__crc_snd_card_proc_new+2029844/2456049] 
> airo_read_stats+0x67/0x150 [airo]
> Jul 28 18:09:25 vaio kernel:  [update_wall_time+22/64] 
> update_wall_time+0x16/0x40
> Jul 28 18:09:25 vaio kernel:  [do_timer+224/240] do_timer+0xe0/0xf0

Oops, it seems to be scheduling from timer context.  That's pretty bad.
I guess this is the culpret:

static u16 issuecommand(struct airo_info *ai, Cmd *pCmd, Resp *pRsp) {
...
                if (!in_interrupt() && (max_tries & 255) == 0)
                        schedule();
...
}

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


  reply	other threads:[~2003-08-04 18:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 17:18 PROBLEM: Problem with wireless PCMCIA card insertion on 2.6.0-test2 Jeremy T. Bouse
2003-08-04 18:01 ` Russell King [this message]
2003-08-04 18:12   ` Jeremy T. Bouse
2003-08-04 22:05   ` Jeremy T. Bouse

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=20030804190133.D25847@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=Jeremy.Bouse@UnderGrid.net \
    --cc=breed@users.sourceforge.net \
    --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;
as well as URLs for NNTP newsgroup(s).