Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp254809imm; Tue, 18 Sep 2018 21:13:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZat1JgIDbuhgphuCzAS5MwFMT2mtLsrJ38o0vsYoz9umlIEvw7L7viJdCKkww7Tqz8j2zC X-Received: by 2002:a63:4c54:: with SMTP id m20-v6mr28008767pgl.292.1537330409830; Tue, 18 Sep 2018 21:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537330409; cv=none; d=google.com; s=arc-20160816; b=LQC9VBzgNX6RvNt3/z1AZvvQWDY7QT0FqwvYkQ7VQtzuYWVi0PVvsf37i+upWM0M4V 5X4tfoql4RdUJGN1h/WZsh+iRDSbr/WWds+TWZcjlbBqbSPJ30SU6/umuJQDnK4PQoif 2rr4EucRFJ8AHfL6Zlc0WcMzp+SHDktD+p+nGnv0ZmV88Idx+S8tafbyAvNA0e1VnQE2 k8qoGysR77UnYPh7UVixS8R3s9y3NLrMdcGqa+RByulT+YDehCo08eTh2VrFfv1MvZP4 Dh6xEc9chF3NHD3KnYJjv9VYB1ue4iLyHVxet5pYg++4T0hYHce8pPh9L/XXQVKOCg74 aduw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bT196R0Ch8pg2VTNCgypvCTLfjahXYprLmFb2GFHmrg=; b=BTxNNE8Vwj2rJ+cDAdInTNn/bQ7td9J8HkcJzsSib9RNBxVnh8IDC2Ezv38BpfhXqu P3o7noLpf204+6gZYsxZEAR3tErO6OAZOzoOkgbNkavHNl7F3gE95o+QxKSbrF9tblvR NpkwNyqxNnkfAlHIfzQYNOeVhbek8rPa7bqe7uJNL+DH0kxWVJw6qsItXByAmYw1045A 9Bpe2Sp+uWFrJ8nWJhypZ9kdnl1kBoFuTfqUbNyT1ED8Rl3gh08n64gvbRp5JBRVvjy+ 8ukQdnwVLWfqSq77y4fZfCceWiWtWGZOPa0Oy1if3jsVDBWoDDShXm1IKSECZVeAL8cf zuqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si19752542plh.18.2018.09.18.21.13.13; Tue, 18 Sep 2018 21:13:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730580AbeISJtE (ORCPT + 99 others); Wed, 19 Sep 2018 05:49:04 -0400 Received: from extserverfr1.prnet.org ([188.165.208.21]:33626 "EHLO extserverfr1.prnet.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbeISJtE (ORCPT ); Wed, 19 Sep 2018 05:49:04 -0400 Received: from extserver.intern.prnet.org (extserver.prnet.org [192.168.11.1]) by extserverfr1.prnet.org (8.14.9/8.14.9) with ESMTP id w8J4Ct6g009759; Wed, 19 Sep 2018 06:12:55 +0200 Received: from [IPv6:2001:7e8:cf00:bc00:da50:e6ff:febb:ea28] ([IPv6:2001:7e8:cf00:bc00:da50:e6ff:febb:ea28]) (authenticated bits=0) by extserver.intern.prnet.org (8.14.9/8.14.9) with ESMTP id w8J4CsDE015709 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 19 Sep 2018 06:12:54 +0200 Subject: Re: kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load To: "Maciej S. Szmigiero" Cc: linux-kernel@vger.kernel.org, nic_swsd@realtek.com, netdev@vger.kernel.org, Heiner Kallweit References: <20180918102349.Horde.yHctatUod-_SC696oYKmySa@cloud.luxmemories.lu> <039cc66f-13b0-e745-b6ec-68f4580e90ef@maciej.szmigiero.name> From: David Arendt Message-ID: <0e865e74-e587-61b7-d319-9afe0a5e8828@prnet.org> Date: Wed, 19 Sep 2018 06:12:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <039cc66f-13b0-e745-b6ec-68f4580e90ef@maciej.szmigiero.name> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for the patch. I just applied it and the TxConfig register now contains 0x4f000f80. The next day will show if it really solves the problem. Thanks in advance, David Arendt On 9/19/18 12:30 AM, Maciej S. Szmigiero wrote: > Hi, > > On 18.09.2018 12:23, David Arendt wrote: >> Hi, >> >> Today I had the network adapter problems again. >> So the patch doesn't seem to change anything regarding this problem. >> This week my time is unfortunately very limited, but I will try to >> find some time next weekend to look a bit more into the issue. > If the problem is caused by missing TXCFG_AUTO_FIFO bit in TxConfig, > as the register difference would suggest, then you can try applying > the following patch (hack) on top of 4.18.8 that is already patched > with commit f74dd480cf4e: > --- a/drivers/net/ethernet/realtek/r8169.c > +++ b/drivers/net/ethernet/realtek/r8169.c > @@ -5043,7 +5043,8 @@ > { > /* Set DMA burst size and Interframe Gap Time */ > RTL_W32(tp, TxConfig, (TX_DMA_BURST << TxDMAShift) | > - (InterFrameGap << TxInterFrameGapShift)); > + (InterFrameGap << TxInterFrameGapShift) > + | TXCFG_AUTO_FIFO); > } > > static void rtl_set_rx_max_size(struct rtl8169_private *tp) > > This hack will probably only work properly on RTL_GIGA_MAC_VER_40 or > later NICs. > > Before running any tests please verify with "ethtool -d enp3s0" that > TxConfig register now contains 0x4f000f80, as it did in the old, > working driver version. > > If this does not help then a bisection will most likely be needed. > >> Thanks in advance, >> David Arendt > Maciej