From: Andrew Morton <akpm@digeo.com>
To: trelane@digitasaru.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.68 oopses
Date: Mon, 21 Apr 2003 20:13:20 -0700 [thread overview]
Message-ID: <20030421201320.59f28288.akpm@digeo.com> (raw)
In-Reply-To: <20030422015612.GB599@digitasaru.net>
Joseph Pingenot <trelane@digitasaru.net> wrote:
>
> I get the following when booting 2.5.68:
>
> Apr 21 00:41:37 paulus kernel: airo: Doing fast bap_reads
> Apr 21 00:41:37 paulus kernel: airo: MAC enabled eth1 0:7:e:b8:d6:7d
> Apr 21 00:41:37 paulus kernel: eth1: index 0x05: Vcc 5.0, Vpp 5.0, irq 4, io 0x0100-0x013f
> Apr 21 00:41:37 paulus kernel: bad: scheduling while atomic!
It's not really an oops - but it's trying hard to become one.
Could you please run with this patch for a while, and let me know
what it puts in the logs?
drivers/net/wireless/airo.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff -puN drivers/net/wireless/airo.c~airo-schedule-fix drivers/net/wireless/airo.c
--- 25/drivers/net/wireless/airo.c~airo-schedule-fix 2003-04-21 20:09:39.000000000 -0700
+++ 25-akpm/drivers/net/wireless/airo.c 2003-04-21 20:11:43.000000000 -0700
@@ -44,6 +44,7 @@
#include <linux/ioport.h>
#include <linux/config.h>
#include <linux/pci.h>
+#include <linux/delay.h>
#include <asm/uaccess.h>
#ifdef CONFIG_PCI
@@ -2376,20 +2377,26 @@ static u16 setup_card(struct airo_info *
static u16 issuecommand(struct airo_info *ai, Cmd *pCmd, Resp *pRsp) {
// Im really paranoid about letting it run forever!
int max_tries = 600000;
+ static int max = 0;
+ int count = 0;
if (sendcommand(ai, pCmd) == (u16)ERROR)
return ERROR;
while (max_tries-- && (IN4500(ai, EVSTAT) & EV_CMD) == 0) {
- if (!in_interrupt() && (max_tries & 255) == 0)
- schedule();
+ udelay(1);
+ count++;
}
- if ( max_tries == -1 ) {
+ if (max_tries == -1) {
printk( KERN_ERR
"airo: Max tries exceeded waiting for command\n" );
return ERROR;
}
completecommand(ai, pRsp);
+ if (count > max) {
+ max = count;
+ printk("%s: max delay = %d usec\n", __FUNCTION__, max);
+ }
return SUCCESS;
}
_
prev parent reply other threads:[~2003-04-22 3:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 1:56 Joseph Pingenot
2003-04-22 3:13 ` Andrew Morton [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=20030421201320.59f28288.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trelane@digitasaru.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®