aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-11-02 09:26:03 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-03 02:39:03 -0500
commit788a035e6061a66c6c77059c417fdc6234e140ff (patch)
tree594df5b1f962b98fb3bc514dc1bf435a9ec58ccf /drivers/net/tg3.c
parenta21771dd189b340328c573da9e005068e8a74c53 (diff)
tg3: Improve 5785 PCIe performance
This patch improves 5785 performance by allowing the write DMA engine to request larger DMA burst sizes than it otherwise would. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 54dbe988f5f1..a43ef2b3a530 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7633,6 +7633,9 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
7633 if (tp->tg3_flags3 & TG3_FLG3_5755_PLUS) 7633 if (tp->tg3_flags3 & TG3_FLG3_5755_PLUS)
7634 val |= WDMAC_MODE_STATUS_TAG_FIX; 7634 val |= WDMAC_MODE_STATUS_TAG_FIX;
7635 7635
7636 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785)
7637 val |= WDMAC_MODE_BURST_ALL_DATA;
7638
7636 tw32_f(WDMAC_MODE, val); 7639 tw32_f(WDMAC_MODE, val);
7637 udelay(40); 7640 udelay(40);
7638 7641