Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp183504imm; Tue, 18 Sep 2018 19:33:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdboZYeQHuk+TN4/YMbdsJFOyKq7Y3al/fM8oesgp6IZ8X5+VMO+rCq9ZQ6wxUZZ8JxQT73/ X-Received: by 2002:a63:28c7:: with SMTP id o190-v6mr30227298pgo.84.1537324398792; Tue, 18 Sep 2018 19:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537324398; cv=none; d=google.com; s=arc-20160816; b=gdQW/K5q3NCBQnnFMrbWpENcqCdf8aKAR1gxVEo1ikNBgtXsORJGd2h0CxJmok1vjV xPVWKPlgVj/XAEvOklt16KlWc537T9NPe/8QaUR5cD5tjC4/iAHk+/86k61hqBmh7OBp 7lH30JtfzhfHQ5FGdma879oPNVSusndFiSLflWQTZW5V0T0hgHjUBpQ7v/nj3GjCoddi A5nTo3Nt4Ekn3u4d+e7Hxw0EcDJeFP/BNPrvsABbI/rcAe2vI1TfzuNQNBtj5smjN5a5 TSPPRAJFZ0PMZgOa1ip4XyAm4c5ZAyzcGPygJKLGcs1NskHKKQKfTzefesZrc8ax/Lx/ 5TPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QwN+RnceLvYA7JXwUchgq/S3E/qYuxyfp1nzPZNr01w=; b=DBdQ4zcBDQsVp1pmTVTkKoqMJCGk+qVtUDVmwjFDp4jevd6/JSMU9OpzLydPbG2q9h TL/A2r36XnZDWiYTzoyIk36xzOj3ka9Rc/tWg/F4LpHJkb9ez10Z9DAc6XgqZbWNHSOS bdxmu69zEcwvc2EEzP7q93WzU6q/1wCuVhG0WU9TjjlmAf7BIS+mOUH5O8Lor13DRNwW byCDGCD1Ui27iX46GODeaJnIDF6phZRMUPVeVgOLoicUc8CneWwfTQe91QJakhmfxz0F 3Az3jvFh/TsXIfVmP1ZsQ9mPqNiiPhDXZ12DO3q2lzYhFInX6hOPC+lKhaIo/g89hUNc 7+Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OvpwlODK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14-v6si20561532pgb.496.2018.09.18.19.33.03; Tue, 18 Sep 2018 19:33:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OvpwlODK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730822AbeISIIa (ORCPT + 99 others); Wed, 19 Sep 2018 04:08:30 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41289 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727027AbeISII3 (ORCPT ); Wed, 19 Sep 2018 04:08:29 -0400 Received: by mail-pf1-f194.google.com with SMTP id h79-v6so1929766pfk.8; Tue, 18 Sep 2018 19:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QwN+RnceLvYA7JXwUchgq/S3E/qYuxyfp1nzPZNr01w=; b=OvpwlODKBLLXLs0Url/5cPDWL1nals/PmnGch5j3PAr5g0V7TsMl2odErlHyNW34iO Sw0dmRziv+bvrvlN8gS5XqTzTJiw1B7b0HRztHuiMhOaUyf3c21cGtdx4o/crxRUyLYQ nmSfgxGqzBQgIVdfEn+tQWGqC8p8jIhUQwd/yOtRuXFFWL+GOQFA37WtGIHZpS4PpqcU hEWEctH2rC9b3AQ04Nk6Y/RkgXDgZ5xwcZAQZTHY8FJ39j3Jo3abMFT1cgebGoM9Jsb6 blaO+TsijU5+j5Kryy1iAd2Ifb85rfrovU2wPSc2VCsK2qqJsC51E1gKIADf/2tJRDUd /c1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QwN+RnceLvYA7JXwUchgq/S3E/qYuxyfp1nzPZNr01w=; b=WlSeou0KgBDy3hPQmaqDAgzUrM9FJHQVyHUhsmBkc+7YygpIY+QCt8VkcZIur/3PQf pL4ILgRmX2OFXq1idjlJTrotUtrCNIy1aDJvecQtfGqZVOoQh2HeMkGNMpxEmjE+MY/M UcqCfLMIDiIsnEr5hVqH3hTF232YYZR3etbpRbFMqtuRN0G2QidIBpYbcq7xHFr6QqOr jRTOUTVjMlrlcD3RcaI4VEcYYCyA9e+2wcyHMj7Ik+vACinZSzqilJL2P1aV+bVRnuwL RH/rjRyyD0cUFuZ548LjqgGx4yyAspOtgXjlh6nONEIljbpOXsND0al8WNzZ3cX8h6/4 7Qiw== X-Gm-Message-State: APzg51B3/v7zOUIW3k7Tc+5FdSe9cSqER1Wtdjdl8AloFnUPQMyXHMVY HuJTs+xJ7W0i8tOi+zIj/Dc= X-Received: by 2002:a63:cb0f:: with SMTP id p15-v6mr30717805pgg.197.1537324375950; Tue, 18 Sep 2018 19:32:55 -0700 (PDT) Received: from [192.168.86.235] (c-67-180-167-114.hsd1.ca.comcast.net. [67.180.167.114]) by smtp.gmail.com with ESMTPSA id d12-v6sm25095564pfn.118.2018.09.18.19.32.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Sep 2018 19:32:55 -0700 (PDT) Subject: Re: [PATCH] net: apm: xgene: force XGene enet driver to re-balance IRQ usage To: Florian Fainelli , ahs3@redhat.com, "Lendacky, Thomas" , David Miller Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "isubramanian@apm.com" , "kchudgar@apm.com" , "qnguyen@apm.com" References: <20180917233533.28626-1-ahs3@redhat.com> <20180917.193531.1424852853827678152.davem@davemloft.net> <4929e93d-508a-4670-9450-66e4fc85be7e@redhat.com> <29258606-8255-847c-b22f-8793999ce6fe@gmail.com> <0e0f3aa6-9b6e-edd5-226f-2e23de9b5a0f@gmail.com> From: Eric Dumazet Message-ID: <95391269-73b7-933f-27ee-2c4a17c8c6b1@gmail.com> Date: Tue, 18 Sep 2018 19:32:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <0e0f3aa6-9b6e-edd5-226f-2e23de9b5a0f@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/18/2018 05:03 PM, Florian Fainelli wrote: > On 09/18/2018 04:56 PM, Eric Dumazet wrote: >> >> >> On 09/18/2018 04:27 PM, Eric Dumazet wrote: >>> >> >>> I remember one of the napi_complete_done() change had to be reverted, >>> for some obscure reason. >> >> >> >> That was not exactly a revert, : > > This is what I have so far for the drivers that both use > napi_complete_done() without checking the return value and implement a > ndo_poll_controller() callback: > > https://github.com/ffainelli/linux/commits/napi-check In fact, there is still to explain what the bug is. napi_complete_done() return value can be ignored, unless drivers have to disable IRQ in their interrupt handler, using the following construct : if (napi_schedule_prep(napi)) { .... disable interrupt .... __napi_schedule_irqoff(napi); } It _can_ be used by other drivers to not rearm interrupts needlessly. The bug discussed in this thread (re-balance IRQ usage) is of the same kind than the one fixed in commit d7aba644ffdebf756e51e26a2229055211838e89 ("amd-xgbe: Enable IRQs only if napi_complete_done() is true")