Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3348799imm; Sun, 16 Sep 2018 16:12:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZTZS3OwXeU8Rry2YHc4KWaCouRpbT6R4rXJEsxl4aqqLTRHRtOsURp/hT/OoXeWgq7QFjM X-Received: by 2002:a62:8ad1:: with SMTP id o78-v6mr23060165pfk.17.1537139536306; Sun, 16 Sep 2018 16:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537139536; cv=none; d=google.com; s=arc-20160816; b=CpHHqXQ/H79HtCZfXV8Q9qcg7DAZAV/1kfi1IBW4e5fUZyBuQ0okjzezGw7meqZkO5 +Ha48WTkKeD6A2lXJ5vD5sHd1Htap0OTh4A8ufzXKay0AxKDGrQpdfh5tX6pJBAyVVbW lA6peGg9U0/gXoVTF5t3OnQcEN7F3DyQCf24uLlceyFvriJyc/EBFGHFC3dlI1KQZE28 s0v59LBWhU+ZiqSURThabGUWWq5nVToGh4dvpUhlcvd26TgxyUqh6keETsKm5nDhHk1D +SvHg5NF5sJKL/1+/oXFUDLx8QcpGZr1y79IwWgav6TzylPDGKqn9Mdk6zk2YSvxvUOv iIPQ== 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:autocrypt:openpgp:from:references:cc:to:subject; bh=pxoC+T/Z5OxgtawsxjveaZDLRgZ3SQQu9pPVNHzDx5Q=; b=nVwlpuWZF/hLp91toL8YDalD822L7edg1A+48rjZ4s0+m8xy48yMEubfnOaA+p2u9R ZFMP/anZktuXBHeab3gB9o0znIYh6aE0OaXKlFQuOqzh06WcnIwMgq7mGgYMufwSG9CX GqXnaKNF+VaaJN7wGBSGm+3spQsNJeFK9jySWks7QgEId0vBV57GRcxMOddClV0HHC27 SYcvJU82D7TjF1MfCGys/Ba+Y7YpVXNw1nwh9lGPYHo8KSw0g94X8erJPZGejctnUVle J/6rwnQUP0ZX8IkhnGdW4+2Nc1AhT6sQwl5t4b6sk0sSodgKXF7osqXkS5I4Tghr6tTv PxZw== 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 g69-v6si16904661pfa.204.2018.09.16.16.11.48; Sun, 16 Sep 2018 16:12:16 -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 S1726676AbeIQEgR (ORCPT + 99 others); Mon, 17 Sep 2018 00:36:17 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:43596 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbeIQEgR (ORCPT ); Mon, 17 Sep 2018 00:36:17 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1g1gCZ-0008Q0-EQ; Mon, 17 Sep 2018 01:11:39 +0200 Subject: Re: kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load To: David Arendt Cc: linux-kernel@vger.kernel.org, nic_swsd@realtek.com, netdev@vger.kernel.org, Heiner Kallweit References: <4f54989b-9492-420e-374b-d8c9bddf0a7d@prnet.org> <6c14f6d0-ea61-b8e6-57a2-940d32330ed2@maciej.szmigiero.name> <236d01e8-865a-e5e8-7537-197657afb34b@prnet.org> From: "Maciej S. Szmigiero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iAR22hs02FikAo iXNgWTy7ABEBAAHCwXwEGAEIACYWIQRyeg1N257Z9gOb7O+Ef143kM4JdwUCWka8IgIbDAUJ A8JnAAAKCRCEf143kM4Jd9nXD/9jstJU6L1MLyr/ydKOnY48pSlZYgII9rSnFyLUHzNcW2c/ qw9LPMlDcK13tiVRQgKT4W+RvsET/tZCQcap2OF3Z6vd1naTur7oJvgvVM5lVhUia2O60kEZ XNlMLFwLSmGXhaAXNBySpzN2xStSLCtbK58r7Vf9QS0mR0PGU2v68Cb8fFWcYu2Yzn3RXf0Y dIVWvaQG9whxZq5MdJm5dknfTcCG+MtmbP/DnpQpjAlgVmDgMgYTBW1W9etU36YW0pTqEYuv 6cmRgSAKEDaYHhFLTR1+lLJkp5fFo3Sjm7XqmXzfSv9JGJGMKzoFOMBoLYv+VFnMoLX5UJAs 0JyFqFY2YxGyLd4J103NI/ocqQeU0TVvOZGVkENPSxIESnbxPghsEC0MWEbGsvqA8FwvU7Xf GhZPYzTRf7CndDnezEA69EhwpZXKs4CvxbXo5PDTv0OWzVaAWqq8s8aTMJWWAhvobFozJ63z afYHkuEjMo0Xps3o3uvKg7coooH521nNsv4ci+KeBq3mgMCRAy0g/Ef+Ql7mt900RCBHu4tk tOhPc3J1ep/e2WAJ4ngUqJhilzyCJnzVJ4cT79VK/uPtlfUCZdUz+jTC88TmP1p5wlucS31k Thy/CV4cqDFB8yzEujTSiRzd7neG3sH0vcxBd69uvSxLZPLGID840k0v5sftPA== Message-ID: <808c73db-078d-cbc5-e46d-5911d636348d@maciej.szmigiero.name> Date: Mon, 17 Sep 2018 01:11:33 +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: <236d01e8-865a-e5e8-7537-197657afb34b@prnet.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.09.2018 14:38, David Arendt wrote: > Hi, > (..) > > For information here the differences from ethtool between the working > driver from 4.17.14 and the patched one fom 4.18.8: > > --- working.txt 2018-09-16 14:14:00.544376935 +0200 > +++ patched.txt 2018-09-16 14:20:09.445660915 +0200 > @@ -17 +17 @@ > -0x40: Tx Configuration                        0x4f000f80 > +0x40: Tx Configuration                        0x4f000f00 TXCFG_AUTO_FIFO was set by the working driver in TxConfig but the current driver version seems unable to do it. Looking at your NIC model config code (guess it is XID 4c000800 or RTL_GIGA_MAC_VER_40) that bit should be set by rtl_hw_start_8168g(), that is called from rtl_hw_start_8168g_1(), that in turn is called from rtl_hw_start_8168(). However, after rtl_hw_start_8168() is called from rtl_hw_start() (as tp->hw_start(tp)) a call to rtl_set_tx_config_registers() is made which overwrites TxConfig completely, zeroing the aforementioned bit. It looks like this was first introduced by commit 4fd48c4ac0a0 ("r8169: move common initializations to tp->hw_start"). I have added its author (Heiner Kallweit) to CC. @Heiner: could you have a look at this? Maciej