From: "David S. Miller" <davem@redhat.com>
To: linux-kernel@vger.kernel.org, tlan@stud.ntnu.no
Cc: jgarzik@mandrakesoft.com, linux-net@vger.kernel.org
Subject: Re: [BETA] First test release of Tigon3 driver
Date: Tue, 26 Feb 2002 18:56:30 -0800 (PST) [thread overview]
Message-ID: <20020226.185630.104030430.davem@redhat.com> (raw)
In-Reply-To: <20020226164044.A7726@stud.ntnu.no>
In-Reply-To: <20020226145730.A20268@stud.ntnu.no> <20020226.065941.39167730.davem@redhat.com> <20020226164044.A7726@stud.ntnu.no>
From: Thomas Langås <tlan@stud.ntnu.no>
Date: Tue, 26 Feb 2002 16:40:44 +0100
tg3.c:v0.90 (Feb 25, 2002)
DEBUG: read_partno returns -19
tg3: Problem fetching invariants of chip, aborting.
Great, now add the following patch below and let me know what it does
and prints out now.
If the module still fails to load because of the -EBUSY error (ie. the
"read_partno returns -19" thing happens again), bring
drivers/net/tg3.c into an editor and go to around line 4185 and change
the line that reads:
while (--limit) {
into:
while (1) {
And see if it works then. PLEASE type sync a few times before trying
to load the module in this case as it could very well hang your
machine.
Thanks again for all the testing so far:
--- drivers/net/tg3.c.~2~ Mon Feb 25 17:51:41 2002
+++ drivers/net/tg3.c Tue Feb 26 18:51:33 2002
@@ -4168,16 +4168,18 @@
static int __devinit tg3_read_partno(struct tg3 *tp)
{
unsigned char vpd_data[256];
+ unsigned int smallest_limit = ~0U;
int i;
/* Enable seeprom accesses. */
- tw32(GRC_LOCAL_CTRL, GRC_LCLCTRL_AUTO_SEEPROM);
+ tw32(GRC_LOCAL_CTRL,
+ tr32(GRC_LOCAL_CTRL) | GRC_LCLCTRL_AUTO_SEEPROM);
udelay(100);
for (i = 0; i < 256; i += 4) {
u32 tmp;
u16 stat;
- int limit = 5000;
+ unsigned int limit = 100000;
pci_write_config_word(tp->pdev, TG3PCI_VPD_ADDR_FLAG, i);
while (--limit) {
@@ -4188,6 +4190,8 @@
}
if (!limit)
return -EBUSY;
+ if (limit < smallest_limit)
+ smallest_limit = limit;
pci_read_config_dword(tp->pdev, TG3PCI_VPD_DATA, &tmp);
@@ -4196,6 +4200,8 @@
vpd_data[i + 2] = ((tmp >> 16) & 0xff);
vpd_data[i + 3] = ((tmp >> 24) & 0xff);
}
+
+ printk("DEBUG: smallest_limit is %u\n", smallest_limit);
/* Now parse and find the part number. */
for (i = 0; i < 256; ) {
next prev parent reply other threads:[~2002-02-27 2:58 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-26 0:59 [BETA] First test release of Tigon3 driver David S. Miller
2002-02-26 3:43 ` nick
2002-02-26 4:40 ` David S. Miller
2002-02-26 11:22 ` Sebastian Heidl
2002-02-26 11:24 ` David S. Miller
2002-02-26 11:39 ` Sebastian Heidl
2002-02-26 13:13 ` David S. Miller
2002-02-26 13:57 ` Thomas Langås
2002-02-26 14:59 ` David S. Miller
2002-02-26 15:40 ` Thomas Langås
2002-02-26 16:09 ` __skb_dequeue irq race ? Bjorn Wesen
2002-02-27 2:56 ` David S. Miller [this message]
[not found] ` <20020227102450.B23121@stud.ntnu.no>
2002-02-27 9:31 ` [BETA] First test release of Tigon3 driver David S. Miller
2002-02-27 11:05 ` Thomas Langås
2002-02-27 11:34 ` David S. Miller
2002-02-27 11:56 ` Thomas Langås
2002-02-27 12:06 ` David S. Miller
2002-02-27 12:24 ` Thomas Langås
2002-02-27 12:28 ` David S. Miller
2002-02-27 16:03 ` Thomas Langås
2002-02-27 16:10 ` Arjan van de Ven
2002-02-27 17:25 ` Thomas Langås
2002-02-27 18:37 ` Zach Brown
2002-02-27 18:46 ` Zach Brown
2002-02-27 19:42 ` Thomas Langås
2002-02-27 16:30 ` Chris Friesen
2002-02-26 17:22 ` Greg KH
2002-02-27 4:13 ` David S. Miller
2002-02-26 18:08 ` Pasi Kärkkäinen
2002-02-27 2:12 ` David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2002-03-12 0:57 Timothy Ngo
2002-03-12 1:21 ` Alan Cox
2002-03-12 6:47 ` David S. Miller
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=20020226.185630.104030430.davem@redhat.com \
--to=davem@redhat.com \
--cc=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=tlan@stud.ntnu.no \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.