Re: PROBLEM: Problem with wireless PCMCIA card insertion on 2.6.0-test2

From: Russell King (rmk@arm.linux.org.uk)
Date: Mon Aug 04 2003 - 13:01:33 EST


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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:24 EST