Message ID | 20090114234745.GA23993@xw6200.broadcom.net |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
Matt Carlson wrote: >> Thanks, >> Ben > > Does the following patch fix the problem? It does seem to fix the rx-miss. Our application still runs sub-optimal until we do something that uses lots of CPU, but at least the NIC doesn't appear to be dropping packets now. I tested this patch on the standard tg3 in the 2.6.25.20 kernel, btw. Thanks, Ben
--- 1/drivers/net/tg3.c 2008-11-10 10:50:34.000000000 -0800 +++ 2/drivers/net/tg3.c 2009-01-14 08:28:10.000000000 -0800 @@ -10709,7 +10709,7 @@ static void __devinit tg3_get_eeprom_hw_ tp->tg3_flags2 |= TG3_FLG2_IS_NIC; } val = tr32(VCPU_CFGSHDW); - if (val & VCPU_CFGSHDW_ASPM_DBNC) + /* if (val & VCPU_CFGSHDW_ASPM_DBNC) */ tp->tg3_flags |= TG3_FLAG_ASPM_WORKAROUND; if ((val & VCPU_CFGSHDW_WOL_ENABLE) && (val & VCPU_CFGSHDW_WOL_MAGPKT))