Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 3c503 problems with 2.0.27
@ 1997-04-17 21:21 SubGenius
  0 siblings, 0 replies; 3+ messages in thread
From: SubGenius @ 1997-04-17 21:21 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----

I'm having some trouble getting a 3c503/16 card working with my
alpha (more complete system information below).

Initially, networking appears to function fine:  I can telnet/ftp/ssh
in and out of the machine without any noticable problems.  However,
whenever I attempt to transfer large files, the machine locks up.
Once it gets itself wedged, it won't respond to anything short of
a power cycle.

Interestingly, the amount of data that will successfully transfer
prior to the machine locking up appears to be fairly consistant in
transfers with the same host, but appears to be vary from host to host.
It does not appear to vary according to network latency or machine
type (i.e., I get different results in transfers with similarly
configured SPARC 10s sitting in the same machine room on the same
subnet).  The problem seldom manifests itself before about 30 Kb have
been transferred, or after more than about 300 Kb have been transferred.
I've successfully transfered files of ~10 Mb, consistantly, with
a single host.

I've tried this with several 3c503 cards---several 3c503/16s and
one eight bit card.  I've tried jumpering all the I/O base addresses,
and all the memory addresses (including none), and a considerable
number of the possible permutations of the two.  I've also tried
the cards in both of the ISA slots in the motherboard.  None of this
seems to affect the behaviour.

The system is a PC164 with a 21164a 500MHz, and it's running Red
Hat 4.1, with a 2.0.27 kernel.

I've tried compiling support for the 3c503 into the kernel using
the source off the Red Hat 4.1 media, and I've also tried it with
the 2.0.27-6 kernel RPMs.  I've also tried installing the following
RPMs:

   NetKit-B-0.09-1.alpha.rpm
   glibc-0.961212-4.alpha.rpm
   initscripts-2.91-1.alpha.rpm
   netcfg-2.15-1.alpha.rpm
   python-1.4-4.alpha.rpm
   pythonlib-1.16-1.alpha.rpm

...in addition to the versions on the Red Hat CD.  I've tried
configuring it by hand, and using the netcfg GUI.

The machine has 32 Mb physical memory, and 65 Mb of swap.  The system 
disk is an IBM 2 gig IDE drive.

So:  Anyone have any ideas or suggestions[1]?

Yours etc.,

SubGenius

- -----
1     Apart from buying a different network card, that is.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.1

iQCVAwUBM1aUTkOoGXQKy1gNAQFkUwQAzJN/6rxglkZ4csQMumswvrXV/jAhJvAi
jAkqaiVOQCY1qbLriub9RuM1sFyW036hdkZQvqxcTybXnGCQBJ7BlkGITcMozi6l
NcM+ZQy5ncldoaOeMCFFC6x8l+VqtE1HXRZhvNQAa4kt1kINptFxA50JY1K4trYe
ilO3RFxI2lw=
=qMBS
-----END PGP SIGNATURE-----

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3c503 problems with 2.0.27
@ 1997-04-18 14:43 Przemek Klosowski
  0 siblings, 0 replies; 3+ messages in thread
From: Przemek Klosowski @ 1997-04-18 14:43 UTC (permalink / raw)


I'm having some trouble getting a 3c503/16 card working with my
   alpha (more complete system information below).

   ...........

   So:  Anyone have any ideas or suggestions[1]?

3c503 is not quite as brain damaged as 3c501, but when I found one, I
personally broke it in half to put it (and us) out of misery.  My
current favorite network card is Tulip-based PCI Kingston Combo ($45
across the street).

   1     Apart from buying a different network card, that is.

OOps, too late, I said it :^)

	p

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 3c503 problems with 2.0.27
@ 1997-04-18 16:06 SubGenius
  0 siblings, 0 replies; 3+ messages in thread
From: SubGenius @ 1997-04-18 16:06 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----

Your Humble Narrator wrote:

> I'm having some trouble getting a 3c503/16 card working with my
> alpha (more complete system information below).

Problem solved.

This is the patch suggested by Paul Gortmaker <gpg109@rsphy1.anu.edu.au>.

Note:  Since this is message is PGP signed, all lines beginning with `-'
       are quoted with `- ' prepended.  Edit these out accordingly
       (the `- 's, not the lines, mind you) prior to attempting to apply
       the patch.

Yours etc.,

SubGenius

- --- linux/drivers/net/8390.c~	Sun Apr 13 11:31:45 1997
+++ linux/drivers/net/8390.c	Fri Apr 18 18:58:15 1997
@@ -50,6 +50,7 @@
 #include <linux/types.h>
 #include <linux/ptrace.h>
 #include <linux/string.h>
+#include <linux/delay.h>
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/bitops.h>
@@ -602,8 +603,7 @@
  */
 static void ei_rx_overrun(struct device *dev)
 {
- -    int e8390_base = dev->base_addr;
- -    unsigned long wait_start_time;
+    int i, e8390_base = dev->base_addr;
     unsigned char was_txing, must_resend = 0;
     struct ei_device *ei_local = (struct ei_device *) dev->priv;
     
@@ -622,11 +622,10 @@
      * Wait a full Tx time (1.2ms) + some guard time, NS says 1.6ms total.
      * Early datasheets said to poll the reset bit, but now they say that
      * it "is not a reliable indicator and subsequently should be ignored."
- -     * We wait at least 10ms.
+     * We wait 3ms. (NB: udelay is for < 1ms, so encapsulate accordingly.)
      */
- -    wait_start_time = jiffies;
- -    while (jiffies - wait_start_time <= 1*HZ/100)
- -	barrier();
+     for (i=0; i<6; i++)
+	udelay(500);
 
     /*
      * Reset RBCR[01] back to zero as per magic incantation.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.1

iQCVAwUBM1eb+UOoGXQKy1gNAQFFoQQAqRikXOteMPnIK15lUENo4REOKlC1XJjS
mBmudufa4VdmEvhOZD25SgFqrklJzXhSENB2ftawb+5MANVClaufMNOZRuEEYCMa
3N2eYoowOcwTPO+D4BK4WX/Tpwxnh4j07tXjhmiaV8lliNWnHag/yxVfIn7Ipw2M
Suu2TZl9OLE=
=yf92
-----END PGP SIGNATURE-----

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-04-18 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-18 16:06 3c503 problems with 2.0.27 SubGenius
  -- strict thread matches above, loose matches on Subject: below --
1997-04-18 14:43 Przemek Klosowski
1997-04-17 21:21 SubGenius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox