EtherExpress 16 stall fix

Mark Hemment (markhe@sco.COM)
Thu, 26 Jun 1997 18:24:50 +0100 (BST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-16838-867345890=:6681
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I had to swap my network card for an EtherExpress16, and noticed than
when I was ftp'ing _into_ my box (from a local machine) the transfer would
stall. The ftp was the only network traffic.

It appears that the networking layer calls the driver's xmit function
when 'tbusy' is set. For the eexpress, this caused the cards interrupts
to be disabled, but not immediately re-enabled. Hence the stall.

The attached patch (against 2.1.43) solves the problem. Please note,
the "udelay(50)" appears necessary on my box or else I get some (not many)
tx-interrupts with no status. (Infact, I still do get some under heavy
transmit, but no longer for receive).

Could anyone with this card, confirm they see this problem and the patch
fixes it. Thanks.

Regards,

markhe

PS: I couldn't find any doc on the i82586 online. Does anyone have any
references?

-----------------------------------------------------
Mark Hemment UNIX/C Software Engineer (contractor)
"Success has many fathers. Failure is a b**tard"
-----------------------------------------------------

---559023410-16838-867345890=:6681
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="eexpress.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SCO.3.94.970626182450.6681B@tyne.london.sco.com>
Content-Description: eexpress.patch

LS0tIGxpbnV4L2RyaXZlcnMvbmV0L2VleHByZXNzLmMJVGh1IEp1biAyNiAx
NToyODo0NSAxOTk3DQorKysgbGludXgtbmV3L2RyaXZlcnMvbmV0L2VleHBy
ZXNzLmMJVGh1IEp1biAyNiAxNzo0Njo1MSAxOTk3DQpAQCAtNTEwLDEwICs1
MTAsMTcgQEANCiAJICogaXMgY2FsbGluZyB1cyBhbnl3YXkuICBDaGVjayB0
aGF0IG5vdGhpbmcgYmFkIGlzIGhhcHBlbmluZy4NCiAJICovDQogCWlmIChk
ZXYtPnRidXN5KSB7DQotCQlpbnQgc3RhdHVzID0gc2NiX3N0YXR1cyhkZXYp
Ow0KKwkJaW50IHN0YXR1czsNCiAgIAkJdW5zdGlja19jdShkZXYpOw0KLQkJ
aWYgKChqaWZmaWVzIC0gbHAtPmxhc3RfdHgpIDwgSFopDQorCQlpZiAoKGpp
ZmZpZXMgLSBscC0+bGFzdF90eCkgPCBIWikgew0KKwkJCS8qIFdpdGhvdXQg
YSBzaG9ydCBkZWxheSwgdGhlIGNhcmQgKHdlbGwsIG1pbmUpIGlzc3VlcyBh
DQorCQkJICogdHggaW50ciB3aXRoIG5vIHN0YXR1cy4NCisJCQkgKi8NCisJ
CQl1ZGVsYXkoNTApOw0KKwkJCW91dGIoU0lSUV9lbnxpcnFybWFwW2Rldi0+
aXJxXSxkZXYtPmJhc2VfYWRkcitTRVRfSVJRKTsNCiAJCQlyZXR1cm4gMTsN
CisJCX0NCisJCXN0YXR1cyA9IHNjYl9zdGF0dXMoZGV2KTsNCiAJCXByaW50
ayhLRVJOX0lORk8gIiVzOiB0cmFuc21pdCB0aW1lZCBvdXQsICVzPyIsIGRl
di0+bmFtZSwNCiAJCSAgICAgICAoU0NCX2NvbXBsZXRlKHN0YXR1cyk/Imxv
c3QgaW50ZXJydXB0IjoNCiAJCQkiYm9hcmQgb24gZmlyZSIpKTsNCg==
---559023410-16838-867345890=:6681--