From: Beezly <beezly@beezly.org.uk>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Sun GEM card looses TX on x86 32bit PCI
Date: 12 Mar 2002 20:34:29 +0000 [thread overview]
Message-ID: <1015965269.1937.22.camel@monkey> (raw)
In-Reply-To: <20020312.093134.35196670.davem@redhat.com>
In-Reply-To: <1015881102.4312.10.camel@monkey> <1015881814.4315.12.camel@monkey> <1015887102.2051.4.camel@monkey> <20020312.093134.35196670.davem@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2630 bytes --]
Hi David,
This looks like it's working!
eth0 Link encap:Ethernet HWaddr 00:03:BA:04:5B:D7
inet addr:10.0.0.12 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::203:baff:fe04:5bd7/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:623264 errors:0 dropped:4 overruns:4 frame:4
TX packets:501679 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:864388119 (824.3 MiB) TX bytes:719041874 (685.7 MiB)
Interrupt:5 Base address:0x8400
There are a few dropped packets, and the card misses a few incoming
immediatly after a dropped packet although I guess this is it picking
itself up off the ground after RX has hung.
Also, regarding the missing MAC address on most architectures, I have it
on good authority that the last six digits of the MAC address are stored
in the Vital Product Data area on the PCI boards (presumably because the
first 6 are the "standard" SUN MAC prefix).
I had a quick fiddle around with pci_find_capability(<blah>,
PCI_CAP_ID_VPD), but it always returns NULL (i.e. no VPD). However, I've
also noticed that no-one appears to use that macro in any of the kernel
source. Is there another way to look at the VPD?
Many Thanks,
Beezly
On Tue, 2002-03-12 at 17:31, David S. Miller wrote:
> From: Beezly <beezly@beezly.org.uk>
> Date: 11 Mar 2002 22:51:42 +0000
>
> Ok, I've been fiddling around with the driver tonight and have managed
> to get a little further by forcing the driver to do a full reset of the
> chip when the RX buffer over flows. I achieved this by sticking a return
> 1; at the top of gem_rxmac_reset().
>
> I'm guessing this isn't an "optimal" reset for the situation but so far
> it's having /reasonable/ results (i.e. I don't have to bring the
> interface up and down every 30 seconds!).
> ...
> Hope this helps,
>
> I'll follow up on this and figure out why my RX reset code
> isn't working after I finish up some 2.5.x work.
>
> But looking quickly I think I see what is wrong. Please give
> this a try (and remember to remove your hacks before testing
> this :-):
>
> --- drivers/net/sungem.c.~1~ Mon Mar 11 04:24:13 2002
> +++ drivers/net/sungem.c Tue Mar 12 09:30:38 2002
> @@ -357,6 +357,7 @@ static int gem_rxmac_reset(struct gem *g
>
> rxd->status_word = cpu_to_le64(RXDCTRL_FRESH(gp));
> }
> + gp->rx_new = gp->rx_old = 0;
>
> /* Now we must reprogram the rest of RX unit. */
> desc_dma = (u64) gp->gblock_dvma;
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2002-03-12 20:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-10 20:36 Sun GEM card looses TX on x86 32bit PCI Beezly
2002-03-11 0:43 ` David S. Miller
2002-03-11 8:19 ` Beezly
2002-03-11 12:19 ` Beezly
2002-03-11 12:21 ` David S. Miller
2002-03-11 18:35 ` Beezly
2002-03-11 19:02 ` David S. Miller
2002-03-11 21:11 ` Beezly
2002-03-11 21:23 ` Beezly
2002-03-11 22:51 ` Beezly
2002-03-12 17:31 ` David S. Miller
2002-03-12 20:34 ` Beezly [this message]
2002-03-12 20:39 ` David S. Miller
2002-03-14 20:43 ` Aaron Sethman
2002-03-14 21:21 ` Aaron Sethman
2002-03-11 1:39 ` David S. Miller
2002-03-11 1:58 ` David S. Miller
2002-03-11 8:29 ` Beezly
2002-03-11 8:42 ` 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=1015965269.1937.22.camel@monkey \
--to=beezly@beezly.org.uk \
--cc=davem@redhat.com \
--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