Message ID | 20100113205531.GA15115@xw6200.broadcom.net |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
IIRC, long ago and far away the AceNIC had an "issue" crossing 4GB boundaries - did that carry-over into the 5701? rick jones -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Jan 13, 2010 at 01:46:03PM -0800, Rick Jones wrote: > IIRC, long ago and far away the AceNIC had an "issue" crossing 4GB boundaries - > did that carry-over into the 5701? > > rick jones If it did, there is code in the transmit routine to detect and workaround that. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7f82b02..fa4c52e 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -7645,6 +7645,9 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) */ tp->grc_mode |= GRC_MODE_NO_TX_PHDR_CSUM; + if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) + tp->grc_mode |= GRC_MODE_FORCE_PCI32BIT; + tw32(GRC_MODE, tp->grc_mode | (GRC_MODE_IRQ_ON_MAC_ATTN | GRC_MODE_HOST_STACKUP));