Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752575AbcLEWhX (ORCPT ); Mon, 5 Dec 2016 17:37:23 -0500 Received: from mout.gmx.net ([212.227.15.15]:50514 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751563AbcLEWhV (ORCPT ); Mon, 5 Dec 2016 17:37:21 -0500 Subject: Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses. To: Pavel Machek References: <20161123105125.GA26394@amd> <20161124085506.GA25007@amd> <20161124.110416.198867271899443489.davem@davemloft.net> <20161124212540.GA24796@amd> <20161202084511.GA32294@amd> <3192a4b6-1e97-048f-a0dd-bfc0f3d96ed8@st.com> <20161205101516.GA24936@amd> <20161205220221.GA19135@amd> Cc: Giuseppe CAVALLARO , alexandre.torgue@st.com, David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Lino Sanfilippo Message-ID: <9a85da24-85cf-f94e-908f-a10eecac2369@gmx.de> Date: Mon, 5 Dec 2016 23:37:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161205220221.GA19135@amd> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:oYSNBG25qc6YVAX0Ff1pvgjwUtPozxVOADCuOkPs4QD3awNPqMG w/WrkSrlxoE0KYIyINh64vpB2fhAPeqNbQDYYR90HkYqlFaB//8q0D2LdpYR0mHWyHM3xJL KzBLv5kdKp8un+caBpfXIFi9oLXxyfd58SR7adoF77LvyR1kCqqwkdJZHZQ/asOtTaXX28I l5wpNkShHPkEWVJe9y1FQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZXasMd/9q40=:VMwvTohFawIlt4Bt9nfR+2 3Ee73APdVcU0Mjr4AhtCJ9UsEpIe3Xo26OBywb6ylL3qAwrhA6TFKGDbVinmQAJlaso1j8tHA 6pVviP1xK2ahg/n+XR+LO31aVC+iJ75edAGEXYnbsaeoMnKgo7vGmARn/WTk/5/KuVZbTbAa3 MgTWB4WKNSZq645nCtUiVqBZK7DC3aY+U42F9pDwLLyRCCbwolEBWJogUR0AGkNMkzEAbhBbB 4MnrQ+YOWvAP1mkm5zZa/mT1cuuLttSVtPRITSrJ5fKQnVfUJeawDMm4HF4k+04W3jie3ML8A js776OR5WDuh0874xbyo6dU6Zoz3GLr8/BIp34sjyOSb+O9Ou24BW70ia6cXcpWdOpJnlqHGj Z2DvT7E5wAdqSX18X8V20bIflnxCnntdJyq/X+c2ek4R/6iGxY7EsMJTMya3S33zsx4kRTA4Q CIajtaZSYmc+jYHHy411Flrt2CjHEGSdp1ja0HhrSFeaQCjov+qVwDM7jV2Q0CY6tG73w9z90 ZFcfWHPATBwg3PsDvA9pckAr3FQim/MwnCBIHOiHaBTKPBQwDDlgWWGDDNf/0oqhhmutZH8JW Puz2+yTUBJlEdQWckrOaZgvYQdvURaSYdCyVfr3OzFmILWegdCUI68ZMnRi6RulvZymNNf96J wwih7oLu0lQtrstjuFIB2DZm4g6l/R8hQbAKsjMmdfiAko1s4jwu1C3xEr/DBPCUgqlwvpZCc Mem+sSlpSwa+NyCscgTTzyySMdDpHHp4Gy5r5iA69Rpla02A8lS2fWaU0Pm8Unve9q80Hulmy t9GxSBw Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 488 Lines: 18 Hi Pavel, On 05.12.2016 23:02, Pavel Machek wrote: > > we need spin_lock_bh at minimum, as we are locking user context > against timer. > > Best regards, > Pavel > I was referring to stmmac_tx_clean() which AFAICS is only called from softirq context, (one time in the timer handler and one time in napi poll handler) so a spin_lock() should be sufficient. I cant see how this is called from userspace. If it were, a spin_lock_bh() had to be used, of course. Regards, Lino