From: "David S. Miller" <davem@redhat.com>
To: jmorris@intercode.com.au
Cc: greearb@candelatech.com, linux-kernel@vger.kernel.org
Subject: Re: tg3 and Netgear GA302T x 2 locks machine
Date: Fri, 04 Oct 2002 18:15:37 -0700 (PDT) [thread overview]
Message-ID: <20021004.181537.104336257.davem@redhat.com> (raw)
In-Reply-To: <Mutt.LNX.4.44.0210051117240.23965-100000@blackbird.intercode.com.au>
From: James Morris <jmorris@intercode.com.au>
Date: Sat, 5 Oct 2002 11:20:06 +1000 (EST)
On Fri, 4 Oct 2002, David S. Miller wrote:
> You reported the other week problems with two Acenic's in
> this same machine right? The second Acenic wouldn't even probe
> properly. And the two Acenic's were identical.
FWIW, my GA302T seems fine with the kernel he originally reported
(2.4.20-pre8).
Yes but are you running parallel pktgen streams on two
tg3's? :-)
Ben, by chance, does reverting the patch below cure your problems?
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.670 -> 1.671
# drivers/net/tg3.c 1.35 -> 1.36
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/17 davem@nuts.ninka.net 1.671
# [TIGON3]: Optimize NAPI irq masking a bit.
# --------------------------------------------
#
diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c
--- a/drivers/net/tg3.c Fri Oct 4 18:18:26 2002
+++ b/drivers/net/tg3.c Fri Oct 4 18:18:26 2002
@@ -234,9 +234,23 @@
tw32(GRC_LOCAL_CTRL,
tp->grc_local_ctrl | GRC_LCLCTRL_SETINT);
}
-#if 0
tr32(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW);
-#endif
+}
+
+static inline void tg3_mask_ints(struct tg3 *tp)
+{
+ tw32(TG3PCI_MISC_HOST_CTRL,
+ (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT));
+}
+
+static inline void tg3_unmask_ints(struct tg3 *tp)
+{
+ tw32(TG3PCI_MISC_HOST_CTRL,
+ (tp->misc_host_ctrl & ~MISC_HOST_CTRL_MASK_PCI_INT));
+ if (tp->hw_status->status & SD_STATUS_UPDATED) {
+ tw32(GRC_LOCAL_CTRL,
+ tp->grc_local_ctrl | GRC_LCLCTRL_SETINT);
+ }
}
static void tg3_switch_clocks(struct tg3 *tp)
@@ -2093,7 +2107,7 @@
if (done) {
netif_rx_complete(netdev);
- tg3_enable_ints(tp);
+ tg3_unmask_ints(tp);
}
spin_unlock_irq(&tp->lock);
@@ -2120,11 +2134,10 @@
return;
if (netif_rx_schedule_prep(dev)) {
- /* NOTE: This write is posted by the readback of
+ /* NOTE: These writes are posted by the readback of
* the mailbox register done by our caller.
*/
- tw32(TG3PCI_MISC_HOST_CTRL,
- (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT));
+ tg3_mask_ints(tp);
__netif_rx_schedule(dev);
} else {
printk(KERN_ERR PFX "%s: Error, poll already scheduled\n",
next prev parent reply other threads:[~2002-10-05 1:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-04 4:19 tg3 and Netgear GA302T x 2 locks machine Ben Greear
2002-10-04 5:06 ` Ben Greear
2002-10-04 15:52 ` James Morris
2002-10-05 5:50 ` Ben Greear
2002-10-04 21:24 ` David S. Miller
2002-10-05 1:20 ` James Morris
2002-10-05 1:15 ` David S. Miller [this message]
2002-10-05 6:03 ` Ben Greear
2002-10-05 20:08 ` Ben Greear
2002-10-06 4:23 ` David S. Miller
2002-10-06 4:58 ` Ben Greear
2002-10-05 2:01 ` Matthew N. Andrews
2002-10-05 5:47 ` Ben Greear
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=20021004.181537.104336257.davem@redhat.com \
--to=davem@redhat.com \
--cc=greearb@candelatech.com \
--cc=jmorris@intercode.com.au \
--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