android_kernel_sony_sdm845/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Larry Finger 28130f4d23 rtlwifi: rtl8821ae: Fix connection lost problem correctly
commit c713fb071edc0efc01a955f65a006b0e1795d2eb upstream.

There has been a coding error in rtl8821ae since it was first introduced,
namely that an 8-bit register was read using a 16-bit read in
_rtl8821ae_dbi_read(). This error was fixed with commit 40b368af4b75
("rtlwifi: Fix alignment issues"); however, this change led to
instability in the connection. To restore stability, this change
was reverted in commit b8b8b16352cd ("rtlwifi: rtl8821ae: Fix connection
lost problem").

Unfortunately, the unaligned access causes machine checks in ARM
architecture, and we were finally forced to find the actual cause of the
problem on x86 platforms. Following a suggestion from Pkshih
<pkshih@realtek.com>, it was found that increasing the ASPM L1
latency from 0 to 7 fixed the instability. This parameter was varied to
see if a smaller value would work; however, it appears that 7 is the
safest value. A new symbol is defined for this quantity, thus it can be
easily changed if necessary.

Fixes: b8b8b16352cd ("rtlwifi: rtl8821ae: Fix connection lost problem")
Cc: Stable <stable@vger.kernel.org> # 4.14+
Fix-suggested-by: Pkshih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: James Cameron <quozl@laptop.org>  # x86_64 OLPC NL3
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-22 15:43:49 +01:00
..
appletalk net/appletalk: Fix kernel memory disclosure 2017-12-09 22:01:51 +01:00
arcnet
bonding bonding: discard lowest hash bit for 802.3ad layer3+4 2017-11-24 08:33:40 +01:00
caif
can can: peak: fix potential bug in packet fragmentation 2018-01-23 19:57:08 +01:00
cris
dsa net: dsa: b53: Include IMP/CPU port in dumb forwarding mode 2017-10-08 10:26:08 +02:00
ethernet r8169: fix RTL8168EP take too long to complete driver initialization. 2018-02-13 12:35:56 +01:00
fddi
fjes fjes: Fix wrong netdevice feature flags 2017-12-20 10:07:22 +01:00
hamradio NET: mkiss: Fix panic 2017-06-17 06:41:50 +02:00
hippi
hyperv netvsc: fix deadlock betwen link status and removal 2017-09-20 08:19:54 +02:00
ieee802154 ieee802154: atusb: do not use the stack for buffers to make them DMA able 2017-01-26 08:24:38 +01:00
ipvlan ipvlan: fix ipv6 outbound device 2017-12-16 16:25:47 +01:00
irda irda: vlsi_ir: fix check for DMA mapping errors 2017-12-25 14:23:41 +01:00
phy net: phy: micrel: ksz9031: reconfigure autoneg after phy autoneg workaround 2018-01-02 20:35:13 +01:00
plip
ppp ppp: unlock all_ppp_mutex before registering device 2018-01-31 12:55:55 +01:00
slip
team team: fix memory leaks 2017-10-08 10:26:08 +02:00
usb qmi_wwan: Add support for Quectel EP06 2018-02-13 12:35:56 +01:00
vmxnet3 vmxnet3: repair memory leak 2018-01-31 12:55:55 +01:00
wan net: wan: slic_ds26522: Allow driver to built if COMPILE_TEST is enabled 2016-10-14 10:11:49 -04:00
wimax net: wimax/i2400m: fix NULL-deref at probe 2017-12-20 10:07:20 +01:00
wireless rtlwifi: rtl8821ae: Fix connection lost problem correctly 2018-02-22 15:43:49 +01:00
xen-netback xen-netback: vif counters from int/long to u64 2017-12-09 22:01:55 +01:00
dummy.c
eql.c
geneve.c geneve: lock RCU on TX path 2017-03-22 12:43:32 +01:00
gtp.c gtp: fix cross netns recv on gtp socket 2017-12-09 22:01:54 +01:00
ifb.c
Kconfig ipvlan: Fix dependency issue 2016-09-20 22:55:23 -04:00
LICENSE.SRC
loopback.c net: introduce device min_header_len 2017-02-18 15:11:43 +01:00
macsec.c macsec: add genl family module alias 2017-09-20 08:19:53 +02:00
macvlan.c macvlan: Only deliver one copy of the frame to the macvlan interface 2017-12-20 10:07:33 +01:00
macvtap.c tap: double-free in error path in tap_open() 2017-11-18 11:22:22 +01:00
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: fix a memory leak for tfile->tx_array 2018-01-31 12:55:56 +01:00
veth.c
virtio_net.c virtio_net: fix PAGE_SIZE > 64k 2017-07-05 14:40:23 +02:00
vrf.c net: vrf: correct FRA_L3MDEV encode type 2017-11-24 08:33:40 +01:00
vxlan.c vxlan: fix hlist corruption 2017-07-21 07:42:18 +02:00
xen-netfront.c xen-netfront: remove warning when unloading module 2018-02-03 17:05:38 +01:00