Skip to contentSkip to conversation

ucc_geth: fix ucc halt problem in half duplex mode

PATCH Applied Li Yang 2 participants 2 messages Nov 26, 2010 – Nov 29, 2010

Subsystems (2)
lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 1/1 ucc_geth: fix ucc halt problem in half duplex mode

In commit 58933c64(ucc_geth: Fix the wrong the Rx/Tx FIFO size), the UCC_GETH_UTFTT_INIT is set to 512 based on the recommendation of the QE Reference Manual. But that will sometimes cause tx halt while working in half duplex mode.

According to errata draft QE_GENERAL-A003(High Tx Virtual FIFO threshold size can cause UCC to halt), setting UTFTT less than [(UTFS x (M - 8)/M) - 128] will prevent this from happening (M is the minimum buffer size).

The patch changes UTFTT back to 256.

Cc Jean-Denis Boyer <[email protected]>
Cc Andreas Schmitz <[email protected]>
Cc Anton Vorontsov <[email protected]>
---
 drivers/net/ucc_geth.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/ucc_geth.h +2 -1
index 05a9558..a78b9c0 100644
@@ -899,7 +899,8 @@ struct ucc_geth_hardware_statistics {
 #define UCC_GETH_UTFS_INIT                      512	/* Tx virtual FIFO size
 							 */
 #define UCC_GETH_UTFET_INIT                     256	/* 1/2 utfs */
-#define UCC_GETH_UTFTT_INIT                     512
+#define UCC_GETH_UTFTT_INIT                     256	/* 1/2 utfs
+							   due to errata */
 /* Gigabit Ethernet (1000 Mbps) */
 #define UCC_GETH_URFS_GIGA_INIT                 4096/*2048*/	/* Rx virtual
 								   FIFO size */
Signature · 1 line
1.6.6-rc1.GIT
maintainer Applied
#1 lore raw

From: Li Yang <[email protected]>
Date: Fri, 26 Nov 2010 17:29:58 +0800

Quoted 10 lines

In commit 58933c64(ucc_geth: Fix the wrong the Rx/Tx FIFO size), the UCC_GETH_UTFTT_INIT is set to 512 based on the recommendation of the QE Reference Manual. But that will sometimes cause tx halt while working in half duplex mode.

According to errata draft QE_GENERAL-A003(High Tx Virtual FIFO threshold size can cause UCC to halt), setting UTFTT less than [(UTFS x (M - 8)/M) - 128] will prevent this from happening (M is the minimum buffer size).

Quoted 6 lines

The patch changes UTFTT back to 256.

Cc Jean-Denis Boyer <[email protected]>
Cc Andreas Schmitz <[email protected]>
Cc Anton Vorontsov <[email protected]>

Applied, thank you.