aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-04-20 02:57:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-21 04:41:01 -0400
commit33466d938f43ab65312466ba5472b9c6ee200cce (patch)
treea84a6f6de32b2269006e70f5d4d04732940c8746 /drivers/net/tg3.c
parentdf259d8cba7d7880dc04d34c7a6e0ce15fbc9644 (diff)
tg3: Prevent send BD corruption
On rare occasions, send BD corruptions can occur. This patch fixes the problem by increasing the L1 entry threshold to 4 milliseconds. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 9b04954b6943..ed7a86df98cd 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -6717,6 +6717,13 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
6717 tw32(TG3_CPMU_HST_ACC, val); 6717 tw32(TG3_CPMU_HST_ACC, val);
6718 } 6718 }
6719 6719
6720 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780) {
6721 val = tr32(PCIE_PWR_MGMT_THRESH) & ~PCIE_PWR_MGMT_L1_THRESH_MSK;
6722 val |= PCIE_PWR_MGMT_EXT_ASPM_TMR_EN |
6723 PCIE_PWR_MGMT_L1_THRESH_4MS;
6724 tw32(PCIE_PWR_MGMT_THRESH, val);
6725 }
6726
6720 /* This works around an issue with Athlon chipsets on 6727 /* This works around an issue with Athlon chipsets on
6721 * B3 tigon3 silicon. This bit has no effect on any 6728 * B3 tigon3 silicon. This bit has no effect on any
6722 * other revision. But do not set this on PCI Express 6729 * other revision. But do not set this on PCI Express