From: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
To: David Arendt <admin@prnet.org>
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 00:30:46 +0200 [thread overview]
Message-ID: <039cc66f-13b0-e745-b6ec-68f4580e90ef@maciej.szmigiero.name> (raw)
In-Reply-To: <20180918102349.Horde.yHctatUod-_SC696oYKmySa@cloud.luxmemories.lu>
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-18 22:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 6:19 kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load David Arendt
2018-09-15 21:23 ` David Arendt
2018-09-15 23:54 ` 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 [this message]
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
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=039cc66f-13b0-e745-b6ec-68f4580e90ef@maciej.szmigiero.name \
--to=mail@maciej.szmigiero.name \
--cc=admin@prnet.org \
--cc=hkallweit1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--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).