* [PATCH 2.6.4-rc2-bk4 1/2] pcnet32 transmit hang fix
@ 2004-03-08 19:42 Don Fry
2004-03-09 2:25 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Don Fry @ 2004-03-08 19:42 UTC (permalink / raw)
To: tsbogend, jgarzik, netdev
Please apply the following patch to 2.6.4-rc2-bk4.
The pcnet32 driver will hang after a few frames (<30) with the 79C971
(and probably the 79C972 though I don't have the hardware to prove it).
By interrupting slightly more frequently the hang will not occur.
This patch is already included in 2.4.26-pre2.
--- orig.linux-2.6.4-rc2-bk4/drivers/net/pcnet32.c Mon Mar 8 10:02:25 2004
+++ linux-2.6.4-rc2-bk4/drivers/net/pcnet32.c Mon Mar 8 10:24:43 2004
@@ -1452,11 +1452,12 @@
status = 0x8300;
entry = (lp->cur_tx - lp->dirty_tx) & TX_RING_MOD_MASK;
if ((lp->ltint) &&
- ((entry == TX_RING_SIZE/2) ||
+ ((entry == TX_RING_SIZE/3) ||
+ (entry == (TX_RING_SIZE*2)/3) ||
(entry >= TX_RING_SIZE-2)))
{
/* Enable Successful-TxDone interrupt if we have
- * 1/2 of, or nearly all of, our ring buffer Tx'd
+ * 1/3, 2/3 or nearly all of, our ring buffer Tx'd
* but not yet cleaned up. Thus, most of the time,
* we will not enable Successful-TxDone interrupts.
*/
--
Don Fry
brazilnut@us.ibm.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.4-rc2-bk4 1/2] pcnet32 transmit hang fix
2004-03-08 19:42 [PATCH 2.6.4-rc2-bk4 1/2] pcnet32 transmit hang fix Don Fry
@ 2004-03-09 2:25 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-03-09 2:25 UTC (permalink / raw)
To: Don Fry; +Cc: tsbogend, netdev
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-09 2:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-08 19:42 [PATCH 2.6.4-rc2-bk4 1/2] pcnet32 transmit hang fix Don Fry
2004-03-09 2:25 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).