From: Ion Badulescu <ionut@moisil.cs.columbia.edu>
To: CaT <cat@zip.com.au>
Cc: linux-kernel@vger.kernel.org,
Dragan Stancevic <visitor@valinux.com>,
Andrey Savochkin <saw@saw.sw.com.sg>
Subject: Re: eepro100 + 2.2.18 + laptop problems
Date: Mon, 19 Feb 2001 16:18:40 -0800 [thread overview]
Message-ID: <200102200018.f1K0IeC32394@moisil.dev.hydraweb.com> (raw)
In-Reply-To: <20010219144935.D21425@saw.sw.com.sg>
On Mon, 19 Feb 2001 14:49:35 -0800, Andrey Savochkin <saw@saw.sw.com.sg> wrote:
> On Tue, Feb 20, 2001 at 09:21:06AM +1100, CaT wrote:
>>
>> It happened again. Same deal. Once was after a reboot and this time
>> was after a resume. :/
>
> In my experiments wait_for_cmd timeouts almost always were related to
> DumpStats command.
> I think, we need to investigate what time constraints are related to this
> command.
Nothing documented...
CaT, can you apply this debugging patch and let us know what you get in the
logs? It should allow us to pinpoint the error a bit more precisely.
Thanks,
Ion
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
------------------------------------------
--- /mnt/3/linux-2.2.19pre/drivers/net/eepro100.c Thu Feb 15 16:09:19 2001
+++ linux-2.2.18/drivers/net/eepro100.c Mon Feb 19 16:13:45 2001
@@ -368,9 +368,16 @@
#define outl writel
#endif
+static char *cmdwait_string = "wait_for_cmd_done timed out at %s:%d\n";
+#define wait_for_cmd_done(ioaddr) \
+ do { \
+ if (do_wait_for_cmd_done(ioaddr)) \
+ printk(cmdwait_string, __FUNCTION__, __LINE__); \
+ } while (0)
+
/* How to wait for the command unit to accept a command.
Typically this takes 0 ticks. */
-static inline void wait_for_cmd_done(long cmd_ioaddr)
+static inline int do_wait_for_cmd_done(long cmd_ioaddr)
{
int wait = 20000;
char cmd_reg1, cmd_reg2;
@@ -383,10 +390,10 @@
if(cmd_reg2){
printk(KERN_ALERT "eepro100: cmd_wait for(%#2.2x) timedout with(%#2.2x)!\n",
cmd_reg1, cmd_reg2);
-
+ return 1;
}
}
-
+ return 0;
}
/* Offsets to the various registers.
next prev parent reply other threads:[~2001-02-20 0:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-11 11:40 eepro100 + 2.2.18 + laptop problems CaT
2001-02-13 1:26 ` Andrey Savochkin
2001-02-13 4:14 ` CaT
2001-02-19 22:21 ` CaT
2001-02-19 22:49 ` Andrey Savochkin
2001-02-20 0:18 ` Ion Badulescu [this message]
2001-02-20 0:31 ` CaT
2001-02-20 7:40 ` CaT
2001-02-20 10:00 ` Ion Badulescu
2001-02-20 10:18 ` CaT
2001-02-19 23:37 ` Dragan Stancevic
2001-02-19 22:33 ` CaT
2001-02-19 23:44 ` Dragan Stancevic
2001-02-19 22:42 ` CaT
2001-03-04 22:23 ` CaT
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=200102200018.f1K0IeC32394@moisil.dev.hydraweb.com \
--to=ionut@moisil.cs.columbia.edu \
--cc=cat@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=saw@saw.sw.com.sg \
--cc=visitor@valinux.com \
/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).