Re: [PATCH net v2] r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO
From: David Miller <davem@davemloft.net>
Date: 2018-10-02 13:10:38
From: Heiner Kallweit <hkallweit1@gmail.com> Date: Fri, 28 Sep 2018 23:51:54 +0200
Some of the chip-specific hw_start functions set bit TXCFG_AUTO_FIFO
in register TxConfig. The original patch changed the order of some
calls resulting in these changes being overwritten by
rtl_set_tx_config_registers() in rtl_hw_start(). This eventually
resulted in network stalls especially under high load.
Analyzing the chip-specific hw_start functions all chip version from
34, with the exception of version 39, need this bit set.
This patch moves setting this bit to rtl_set_tx_config_registers().
Fixes: 4fd48c4ac0a0 ("r8169: move common initializations to tp->hw_start")
Reported-by: Ortwin Glück <redacted>
Reported-by: David Arendt <redacted>
Root-caused-by: Maciej S. Szmigiero [off-list ref]
Tested-by: Tony Atkinson <redacted>
Tested-by: David Arendt <redacted>
Tested-by: Ortwin Glück <redacted>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
Hint for applying this change to stable:
It may collide with 05212ba8132b ("r8169: set RxConfig after tx/rx is
enabled for RTL8169sb/8110sb devices") which renamed
rtl_set_rx_tx_config_registers() to rtl_set_tx_config_registers().
---
v2:
- added Maciej as root-caused-byApplied and queued up for -stable, thanks for the backporting hints.