From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from exprod5og111.obsmtp.com (exprod5og111.obsmtp.com [64.18.0.22]) by ozlabs.org (Postfix) with SMTP id 0F8E5B6F65 for ; Fri, 9 Dec 2011 10:16:58 +1100 (EST) Received: by mail-qw0-f44.google.com with SMTP id b15so1062763qad.3 for ; Thu, 08 Dec 2011 15:16:57 -0800 (PST) From: Tirumala Marri References: <1322198727.32635.25.camel@pasglop> <1323295383.12793.3.camel@pasglop> <1323385148.19891.5.camel@pasglop> In-Reply-To: <1323385148.19891.5.camel@pasglop> MIME-Version: 1.0 Date: Thu, 8 Dec 2011 15:11:47 -0800 Message-ID: Subject: RE: ibm_newemac tx problem with jumbo frame enabled To: Benjamin Herrenschmidt , Prashant Bhole Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Ben, >-----Original Message----- >From: Benjamin Herrenschmidt [mailto:benh@kernel.crashing.org] >Sent: Thursday, December 08, 2011 2:59 PM >To: Prashant Bhole >Cc: linuxppc-dev@ozlabs.org; Tirumala Marri >Subject: Re: ibm_newemac tx problem with jumbo frame enabled > >On Thu, 2011-12-08 at 18:31 +0530, Prashant Bhole wrote: > >> >> I checked RX descriptor status and TX descriptor status and ethtool >> output. >> However I don't know about pause packet/frame, how do I check if pause >> frames are properly negotiated on both sides? >> I need to try changing pause and FIFO thresholds. >> >> ethtool output after disconnection is as follows: >> # ethtool -S eth0 >> NIC statistics: >> rx_packets: 330939 >> rx_bytes: 804963241 >> tx_packets: 248554 >> tx_bytes: 798853638 >> rx_packets_csum: 330716 >> tx_packets_csum: 179526 >> tx_undo: 0 > > .../... > >Ok so none of the error counters seem to trip, odd. No idea what's up, >you may want to ask the folks at APM (CCed Tirumala). > >I wonder also if we are properly enabling the reporting of error >interrupts... if we got that wrong we may never detect FIFO overruns. >What you describe really looks like a fifo overrun to me. > >Additionally, look at emac_configure(), sees how it configures the pause >packet thresholds, maybe you can tweak the watermark to be more >aggressive. Also check that pause is actually enabled (with ethtool) and >that the PHY negociated it properly (that the link partner supports >pause frames). > I will take a look. Thx, Marri