From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: Re: [PATCH v1 21/47] ethernet: myri10ge: use arch_phys_wc_add() Date: Fri, 27 Mar 2015 21:36:46 +0100 Message-ID: <20150327203646.GN5622__2016.05168772421$1427488727$gmane$org@wotan.suse.de> References: <1426893517-2511-1-git-send-email-mcgrof@do-not-panic.com> <1426893517-2511-22-git-send-email-mcgrof@do-not-panic.com> <20150321070759.GB8766@gtest01.arcus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Ybazq-0003TV-C1 for xen-devel@lists.xenproject.org; Fri, 27 Mar 2015 20:36:50 +0000 Content-Disposition: inline In-Reply-To: <20150321070759.GB8766@gtest01.arcus> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Hyong-Youb Kim Cc: linux-fbdev@vger.kernel.org, Daniel Vetter , JBeulich@suse.com, hpa@zytor.com, suresh.b.siddha@intel.com, x86@kernel.org, Tomi Valkeinen , xen-devel@lists.xenproject.org, Ingo Molnar , bp@suse.de, Jean-Christophe Plagniol-Villard , Antonino Daplas , airlied@redhat.com, tglx@linutronix.de, mingo@redhat.com, jgross@suse.com, "Luis R. Rodriguez" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, luto@amacapital.net, Hyong-Youb Kim , venkatesh.pallipadi@intel.com List-Id: xen-devel@lists.xenproject.org On Sat, Mar 21, 2015 at 04:08:00PM +0900, Hyong-Youb Kim wrote: > On Fri, Mar 20, 2015 at 04:18:11PM -0700, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > This driver already uses ioremap_wc() on the same range > > so when write-combining is available that will be used > > instead. > > > [...] > > --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c > > +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c > [...] > > @@ -1984,7 +1979,6 @@ myri10ge_get_ethtool_stats(struct net_device *netdev, > > data[i] = ((u64 *)&link_stats)[i]; > > > > data[i++] = (unsigned int)mgp->tx_boundary; > > - data[i++] = (unsigned int)mgp->wc_enabled; > > data[i++] = (unsigned int)mgp->pdev->irq; > > data[i++] = (unsigned int)mgp->msi_enabled; > > data[i++] = (unsigned int)mgp->msix_enabled; > > You would have to delete "WC from myri10ge_gstrings_main_stats too. > Something like below. Thanks. > > @@ -1905,7 +1905,7 @@ static const char myri10ge_gstrings_main_stats[][ETH_GSTRING_LEN] = { > "tx_aborted_errors", "tx_carrier_errors", "tx_fifo_errors", > "tx_heartbeat_errors", "tx_window_errors", > /* device-specific stats */ > - "tx_boundary", "WC", "irq", "MSI", "MSIX", > + "tx_boundary", "irq", "MSI", "MSIX", > "read_dma_bw_MBs", "write_dma_bw_MBs", "read_write_dma_bw_MBs", > "serial_number", "watchdog_resets", > #ifdef CONFIG_MYRI10GE_DCA OK great thanks. Amended. Luis