From: David Arendt <admin@prnet.org>
To: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Cc: linux-kernel@vger.kernel.org, nic_swsd@realtek.com,
netdev@vger.kernel.org, Heiner Kallweit <hkallweit1@gmail.com>
Subject: Re: kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load
Date: Wed, 19 Sep 2018 18:34:10 +0200 [thread overview]
Message-ID: <c37b0548-518c-f022-b407-6f71943b9db2@prnet.org> (raw)
In-Reply-To: <039cc66f-13b0-e745-b6ec-68f4580e90ef@maciej.szmigiero.name>
Hi,
the networking problem did not occur for 12 hours now, so I think this
patch resolved the problem.
Thanks,
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
next prev parent reply other threads:[~2018-09-19 16:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d05d87f5-1458-f5ce-c644-566ff78e9fc1@prnet.org>
[not found] ` <4f54989b-9492-420e-374b-d8c9bddf0a7d@prnet.org>
2018-09-15 23:54 ` kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load Maciej S. Szmigiero
2018-09-16 12:38 ` David Arendt
2018-09-16 23:11 ` Maciej S. Szmigiero
2018-09-18 10:23 ` David Arendt
2018-09-18 22:30 ` Maciej S. Szmigiero
2018-09-19 4:12 ` David Arendt
2018-09-25 21:03 ` Heiner Kallweit
2018-09-26 16:44 ` David Arendt
2018-09-27 15:48 ` Ortwin Glück
2018-09-27 19:33 ` David Arendt
2018-09-19 16:34 ` David Arendt [this message]
2018-09-21 22:28 ` Maciej S. Szmigiero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c37b0548-518c-f022-b407-6f71943b9db2@prnet.org \
--to=admin@prnet.org \
--cc=hkallweit1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@maciej.szmigiero.name \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).