* [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 @ 2011-06-21 19:02 Guenter Roeck 2011-06-21 21:17 ` Jeff Kirsher 0 siblings, 1 reply; 4+ messages in thread From: Guenter Roeck @ 2011-06-21 19:02 UTC (permalink / raw) To: Jeff Kirsher, Jesse Brandeburg, Bruce Allan, Carolyn Wyborny, Don Cc: e1000-devel, netdev, Tong Ho, Guenter Roeck From: Tong Ho <tong.ho@ericsson.com> 82580 re-reads the port specific portion of eeprom after port reset. If called immediately after a reset, igb_get_auto_rd_done() returns false positive because the done bit has yet to transition from 1 to 0. Add wrfl() immediately after resetting 82580 port or device, plus a 1ms delay, to avoid the problem. Signed-off-by: Tong Ho <tong.ho@ericsson.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> --- Sent as RFC since I am not entirely sure if the solution is the correct one to address the problem we are seeing. If there is a better solution, please let me know. drivers/net/igb/e1000_82575.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index 0f563c8..28dae48 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c @@ -1735,10 +1735,10 @@ static s32 igb_reset_hw_82580(struct e1000_hw *hw) ctrl |= E1000_CTRL_RST; wr32(E1000_CTRL, ctrl); + wrfl(); /* Add delay to insure DEV_RST has time to complete */ - if (global_device_reset) - msleep(5); + msleep(global_device_reset ? 5 : 1); ret_val = igb_get_auto_rd_done(hw); if (ret_val) { -- 1.7.3.1 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 2011-06-21 19:02 [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 Guenter Roeck @ 2011-06-21 21:17 ` Jeff Kirsher 2011-07-05 14:31 ` Guenter Roeck 0 siblings, 1 reply; 4+ messages in thread From: Jeff Kirsher @ 2011-06-21 21:17 UTC (permalink / raw) To: Guenter Roeck Cc: Brandeburg, Jesse, Wyborny, Carolyn, Duyck, Alexander H, Ronciak, John, e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org, Tong Ho [-- Attachment #1: Type: text/plain, Size: 877 bytes --] On Tue, 2011-06-21 at 12:02 -0700, Guenter Roeck wrote: > From: Tong Ho <tong.ho@ericsson.com> > > 82580 re-reads the port specific portion of eeprom after port reset. > If called immediately after a reset, igb_get_auto_rd_done() returns > false positive because the done bit has yet to transition from 1 to 0. > > Add wrfl() immediately after resetting 82580 port or device, > plus a 1ms delay, to avoid the problem. > > Signed-off-by: Tong Ho <tong.ho@ericsson.com> > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> > --- > Sent as RFC since I am not entirely sure if the solution is the > correct one > to address the problem we are seeing. If there is a better solution, > please > let me know. Thank you for the suggested patch. Carolyn is the maintainer for igb and we will look into this issue you are seeing and the suggested fix. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 2011-06-21 21:17 ` Jeff Kirsher @ 2011-07-05 14:31 ` Guenter Roeck 2011-07-06 15:28 ` Wyborny, Carolyn 0 siblings, 1 reply; 4+ messages in thread From: Guenter Roeck @ 2011-07-05 14:31 UTC (permalink / raw) To: Jeff Kirsher Cc: e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org, Brandeburg, Jesse, Tong Ho, Ronciak, John On Tue, Jun 21, 2011 at 05:17:26PM -0400, Jeff Kirsher wrote: > On Tue, 2011-06-21 at 12:02 -0700, Guenter Roeck wrote: > > From: Tong Ho <tong.ho@ericsson.com> > > > > 82580 re-reads the port specific portion of eeprom after port reset. > > If called immediately after a reset, igb_get_auto_rd_done() returns > > false positive because the done bit has yet to transition from 1 to 0. > > > > Add wrfl() immediately after resetting 82580 port or device, > > plus a 1ms delay, to avoid the problem. > > > > Signed-off-by: Tong Ho <tong.ho@ericsson.com> > > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> > > --- > > Sent as RFC since I am not entirely sure if the solution is the > > correct one > > to address the problem we are seeing. If there is a better solution, > > please > > let me know. > > Thank you for the suggested patch. Carolyn is the maintainer for igb > and we will look into this issue you are seeing and the suggested fix. Hi Jeff and Carolyn, Any update ? Thanks, Guenter ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ E1000-devel mailing list E1000-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 2011-07-05 14:31 ` Guenter Roeck @ 2011-07-06 15:28 ` Wyborny, Carolyn 0 siblings, 0 replies; 4+ messages in thread From: Wyborny, Carolyn @ 2011-07-06 15:28 UTC (permalink / raw) To: Guenter Roeck, Kirsher, Jeffrey T Cc: Brandeburg, Jesse, Duyck, Alexander H, Ronciak, John, e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org, Tong Ho >-----Original Message----- >From: Guenter Roeck [mailto:guenter.roeck@ericsson.com] >Sent: Tuesday, July 05, 2011 7:31 AM >To: Kirsher, Jeffrey T >Cc: Brandeburg, Jesse; Wyborny, Carolyn; Duyck, Alexander H; Ronciak, >John; e1000-devel@lists.sourceforge.net; netdev@vger.kernel.org; Tong Ho >Subject: Re: [PATCH RFC] igb: Fix false positive return of >igb_get_auto_rd_done for 82580 > >On Tue, Jun 21, 2011 at 05:17:26PM -0400, Jeff Kirsher wrote: >> On Tue, 2011-06-21 at 12:02 -0700, Guenter Roeck wrote: >> > From: Tong Ho <tong.ho@ericsson.com> >> > >> > 82580 re-reads the port specific portion of eeprom after port reset. >> > If called immediately after a reset, igb_get_auto_rd_done() returns >> > false positive because the done bit has yet to transition from 1 to >0. >> > >> > Add wrfl() immediately after resetting 82580 port or device, >> > plus a 1ms delay, to avoid the problem. >> > >> > Signed-off-by: Tong Ho <tong.ho@ericsson.com> >> > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> >> > --- >> > Sent as RFC since I am not entirely sure if the solution is the >> > correct one >> > to address the problem we are seeing. If there is a better solution, >> > please >> > let me know. >> >> Thank you for the suggested patch. Carolyn is the maintainer for igb >> and we will look into this issue you are seeing and the suggested fix. > >Hi Jeff and Carolyn, > >Any update ? > >Thanks, >Guenter Sorry for the delay, we've had some holidays, its just passed internal testing and should be coming upstream shortly. Thanks, Carolyn Carolyn Wyborny Linux Development LAN Access Division Intel Corporation ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-06 15:28 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-21 19:02 [PATCH RFC] igb: Fix false positive return of igb_get_auto_rd_done for 82580 Guenter Roeck 2011-06-21 21:17 ` Jeff Kirsher 2011-07-05 14:31 ` Guenter Roeck 2011-07-06 15:28 ` Wyborny, Carolyn
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).