Re: TG3 network data corruption regression 2.6.24/2.6.23.4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Carlson
Date: Tuesday, February 19, 2008 - 6:38 pm

On Tue, Feb 19, 2008 at 05:14:26PM -0500, Tony Battersby wrote:

Hi Tony.  Can you give us the output of :

sudo lspci -vvv -xxxx -s 03:01.0'

(assuming that is still the correct address of the 3Com NIC.)

Also, after some digging, I found that the 5701 can run into trouble if
a 64-bit DMA read terminates early and then completes as a 32-bit transfer.
The problem is reportedly very rare, but the failure mode looks like a
match.  Can you apply the following patch and see if it helps your
performance / corruption problems?


diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index db606b6..7ad08ce 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -11409,6 +11409,8 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
 		tp->tg3_flags |= TG3_FLAG_PCI_HIGH_SPEED;
 	if ((pci_state_reg & PCISTATE_BUS_32BIT) != 0)
 		tp->tg3_flags |= TG3_FLAG_PCI_32BIT;
+	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701)
+		tp->grc_mode |= GRC_MODE_FORCE_PCI32BIT;
 
 	/* Chip-specific fixup from Broadcom driver */
 	if ((tp->pci_chip_rev_id == CHIPREV_ID_5704_A0) &&


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Mon Feb 18, 3:41 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Tue Feb 19, 9:16 am)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Tue Feb 19, 12:26 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Tue Feb 19, 3:14 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Matt Carlson, (Tue Feb 19, 6:38 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Feb 20, 8:01 am)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Feb 20, 8:18 am)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Feb 20, 9:13 am)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Feb 20, 2:29 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Feb 20, 4:04 pm)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Tue Apr 15, 8:39 am)
Re: TG3 network data corruption regression 2.6.24/2.6.23.4, Tony Battersby, (Wed Apr 16, 2:00 pm)