Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3587528ybi; Tue, 18 Jun 2019 03:19:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYEGp5k2zm2ka7MyQMjYp0hZUlRxvL6mrhB4pyzVJkowVXOQQanlj3rKHBojm0ifay4sVI X-Received: by 2002:a17:902:d897:: with SMTP id b23mr23756563plz.214.1560853166755; Tue, 18 Jun 2019 03:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560853166; cv=none; d=google.com; s=arc-20160816; b=GdEsL6OhPkLPEdtfqepwePT3jSAy1pN1UrAp07V23+JCVYk9lOwOOgU/84CFbT8z5K SycFpccjbMEStSQnSbP9lT3mOTNEhz4SyqPy/h5xLCE9FY/bBM0rNfkwHV1iA4HQ9bQi /PdYZ3u10fVSx3UDVe+4AzEtiNO3zY3TtJW92QiKHDta2yspbJMbuNZ7DJFiwplxO20b R+2j/NKcVwhpTDL6tls2rS7HrzF41UF4F8K/sg1sOJwPr7B8M6TwFlWeVucvDNPm98Ad F0l3rh/vZ5CO24GZabrndv6JUqeY+pllt5URKJYlc67mkqq27PTw2246Qaj8X20GKGzT pYNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=c8UwikRvDDyA/O40zAYZCjzIgqKqCU4r3za0BT5rFTA=; b=noF9YFGUrRDWkhEilgZxiX+9lrtn5feNYGYZ5XZ8IuqhcPDvZ877pSAEjPOXB1nvEk C0JtojDnBbvacgEFzobYCo86eu8ieOi/FyF56YIpcQdC3LEpI4ANqBnTM9/8erV8wObR OBYBgmJZxMEN5qdo+EHatyRs5H9ImutGvpCUwAtvx42QJJfJ83AEUyfqtyHiYsbLptgv iETxIqNZ//quHLlEWSaeNPwnZiWEgLSC/wiwhmUTO6RqtS54DSGOW7h3FD/+jY2Y9d5+ S/aB4+0uslRNnb/OG5sAnc/9YIGOW6S/NZqnwf6ufK6n58Vv/kPx+Un/NN03CYOrqUYu a2RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=IsghBDLD; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r72si1974461pjb.33.2019.06.18.03.19.07; Tue, 18 Jun 2019 03:19:26 -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=@nvidia.com header.s=n1 header.b=IsghBDLD; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbfFRKTC (ORCPT + 99 others); Tue, 18 Jun 2019 06:19:02 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:3961 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfFRKTB (ORCPT ); Tue, 18 Jun 2019 06:19:01 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 18 Jun 2019 03:19:00 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 18 Jun 2019 03:19:00 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 18 Jun 2019 03:19:00 -0700 Received: from [10.21.132.148] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Jun 2019 10:18:55 +0000 Subject: Re: [PATCH net-next 3/3] net: stmmac: Convert to phylink and remove phylib logic To: Jose Abreu , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" CC: Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Russell King , Andrew Lunn , Florian Fainelli , Heiner Kallweit , linux-tegra References: <6226d6a0de5929ed07d64b20472c52a86e71383d.1560266175.git.joabreu@synopsys.com> <78EB27739596EE489E55E81C33FEC33A0B9C8D6E@DE02WEMBXB.internal.synopsys.com> <26cfaeff-a310-3b79-5b57-fd9c93bd8929@nvidia.com> <78EB27739596EE489E55E81C33FEC33A0B9C8DD9@DE02WEMBXB.internal.synopsys.com> From: Jon Hunter Message-ID: Date: Tue, 18 Jun 2019 11:18:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <78EB27739596EE489E55E81C33FEC33A0B9C8DD9@DE02WEMBXB.internal.synopsys.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL108.nvidia.com (172.18.146.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560853140; bh=c8UwikRvDDyA/O40zAYZCjzIgqKqCU4r3za0BT5rFTA=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=IsghBDLD+HugcVDANvNXIEr2nq0Ib1u64NXqu+Ay16gh1k9ojVjTsu4x4bdXfe1g/ VmU2CT8xtjRftJV+sWZSHorPeT4jtD+y1jjn+sNYXQtGVyifGo1md9pPYu+uGjrXN2 b6mJg+22AUQ5lwNIalMN+aIAK2ISzNJc9biAA5QioZDxKV3NBPe9PB52X2jRVUQn2c eSssvwvCsRvUp2Tl0Il8cczvjvKXObfwzq5SWoqoPQtSSGe/eJKl4t+1DJPWw/60TC 5YbexGEtqWZ5KbB3jT+VQpnPVoEfwrkn8vMuO+qlYFAACjfKdpBP+pNe3PcaRA6nHb PB5cN7ElL+k9w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/06/2019 10:46, Jose Abreu wrote: > From: Jon Hunter > >> I am not certain but I don't believe so. We are using a static IP address >> and mounting the root file-system via NFS when we see this ... > > Can you please add a call to napi_synchronize() before every > napi_disable() calls, like this: > > if (queue < rx_queues_cnt) { > napi_synchronize(&ch->rx_napi); > napi_disable(&ch->rx_napi); > } > > if (queue < tx_queues_cnt) { > napi_synchronize(&ch->tx_napi); > napi_disable(&ch->tx_napi); > } > > [ I can send you a patch if you prefer ] Yes I can try this and for completeness you mean ... diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 4ca46289a742..d4a12cb64d8e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -146,10 +146,15 @@ static void stmmac_disable_all_queues(struct stmmac_priv *priv) for (queue = 0; queue < maxq; queue++) { struct stmmac_channel *ch = &priv->channel[queue]; - if (queue < rx_queues_cnt) + if (queue < rx_queues_cnt) { + napi_synchronize(&ch->rx_napi); napi_disable(&ch->rx_napi); - if (queue < tx_queues_cnt) + } + + if (queue < tx_queues_cnt) { + napi_synchronize(&ch->tx_napi); napi_disable(&ch->tx_napi); + } } } Cheers Jon -- nvpublic