Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751697AbcLELkN (ORCPT ); Mon, 5 Dec 2016 06:40:13 -0500 Received: from mout.gmx.net ([212.227.17.21]:52851 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbcLELkL (ORCPT ); Mon, 5 Dec 2016 06:40:11 -0500 MIME-Version: 1.0 Message-ID: From: "Lino Sanfilippo" To: "Pavel Machek" Cc: "Giuseppe CAVALLARO" , alexandre.torgue@st.com, "David Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: stmmac ethernet in kernel 4.9-rc6: coalescing related pauses. Content-Type: text/plain; charset=UTF-8 Date: Mon, 5 Dec 2016 12:40:00 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20161205101516.GA24936@amd> 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> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K0:Ygq5RUXDN4FRZSz8DzbG2OH6y6hAi64KNXPD6Kd03RE M/pCo2HzESAGGEQB9X8jieJQYVlW2cUDgtSK7YWzZayNQj8SX2 isarkiL6t82tzYk68SFeYLSNB6verIAYV3j5NjATH7ZSfMofbr xLo+lIU0VpVdKKKdwhC2u252lL1Gsew0Z8n/AV+Sd+oxhVP6+k OpBS6045QdBTqEpTWuWWQvZst7GZBDl25vCxfI/R6tNmdtZE64 kGkKc6RuL6nAB+ErX14O8Z1o9DgiW1UVN/fRWIDf4usL+vq0Ph x6ktqE= X-UI-Out-Filterresults: notjunk:1;V01:K0:miBMJwSi3rw=:dpf8yWUMGkw8aLzvYTbuJm 55qOdsv9G1DD6iRaE5a0t7C8tXmAKaZ2CStN/C3su7bN7PMM+FIA5tIQs9ArrQetG3TlEJCXt uc8Z7w5V1Pe4pAKusyPEHUPsJrK5bLqRrxMaysA/929Kg7b59Q1Ko62+e1GLM9+1MssHHw9/K /1xdyA7FFLVzz6rzjxZiDyz91qPKerOx9v5ZLIJC/FsiINz5ecLFxIdS5Ksav2I6A+ACIZbcg xE+pPw1fUJIwCsuUjlW0Cl9HpnC3hVpO/Ut2ffXMN4pYZXRobuV2T0DGCLA2DoNqLjymkz1n7 RP303lpuLHOZD3mT2/YRjCPd1nTsaPq4pT03sfYfWDAZyXP15NbHHUCJzY4vaiwUwWdIS0C/O fNJ+LryUfxL/zdMGA2GaYR/efa+BB9A1J1tAsdKNKL/Gow+wktT472tZuRiaGH28mHZ3kf7LA xagL4d95aQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 364 Lines: 13 Hi, > > Actually, I was wrong. irqlock protection is needed, since > stmmac_tx_clean() is called from timer, and that's interrupt context, > as you can confirm using BUG_ON(in_interrupt()); > in_interrupt() can mean both softirq and hardirq context. In this case it means softirq. So I guess you were right before, and no irq locking is needed. Regards, Lino