diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2009-11-02 15:26:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-03 08:39:03 +0100 |
commit | 788a035e6061a66c6c77059c417fdc6234e140ff (patch) | |
tree | 594df5b1f962b98fb3bc514dc1bf435a9ec58ccf | |
parent | tg3: Add more PCI DMA map error checking (diff) | |
download | linux-788a035e6061a66c6c77059c417fdc6234e140ff.tar.xz linux-788a035e6061a66c6c77059c417fdc6234e140ff.zip |
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>
-rw-r--r-- | drivers/net/tg3.c | 3 | ||||
-rw-r--r-- | drivers/net/tg3.h | 3 |
2 files changed, 5 insertions, 1 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) if (tp->tg3_flags3 & TG3_FLG3_5755_PLUS) val |= WDMAC_MODE_STATUS_TAG_FIX; + if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785) + val |= WDMAC_MODE_BURST_ALL_DATA; + tw32_f(WDMAC_MODE, val); udelay(40); diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 530c36b23e80..68431da5aad3 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h @@ -1264,8 +1264,9 @@ #define WDMAC_MODE_FIFOURUN_ENAB 0x00000080 #define WDMAC_MODE_FIFOOREAD_ENAB 0x00000100 #define WDMAC_MODE_LNGREAD_ENAB 0x00000200 -#define WDMAC_MODE_RX_ACCEL 0x00000400 +#define WDMAC_MODE_RX_ACCEL 0x00000400 #define WDMAC_MODE_STATUS_TAG_FIX 0x20000000 +#define WDMAC_MODE_BURST_ALL_DATA 0xc0000000 #define WDMAC_STATUS 0x00004c04 #define WDMAC_STATUS_TGTABORT 0x00000004 #define WDMAC_STATUS_MSTABORT 0x00000008 |