linux_dsm_epyc7002/drivers/net
Heiner Kallweit ed8fe20205 net: dsa: mv88e6xxx: prevent interrupt storm caused by mv88e6390x_port_set_cmode
When debugging another issue I faced an interrupt storm in this
driver (88E6390, port 9 in SGMII mode), consisting of alternating
link-up / link-down interrupts. Analysis showed that the driver
wanted to set a cmode that was set already. But so far
mv88e6390x_port_set_cmode() doesn't check this and powers down
SERDES, what causes the link to break, and eventually results in
the described interrupt storm.

Fix this by checking whether the cmode actually changes. We want
that the very first call to mv88e6390x_port_set_cmode() always
configures the registers, therefore initialize port.cmode with
a value that is different from any supported cmode value.
We have to take care that we only init the ports cmode once
chip->info->num_ports is set.

v2:
- add small helper and init the number of actual ports only

Fixes: 364e9d7776 ("net: dsa: mv88e6xxx: Power on/off SERDES on cmode change")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-01 21:37:05 -08:00
..
appletalk
arcnet
bonding bonding: fix PACKET_ORIGDEV regression 2019-02-21 13:20:08 -08:00
caif
can
dsa net: dsa: mv88e6xxx: prevent interrupt storm caused by mv88e6390x_port_set_cmode 2019-03-01 21:37:05 -08:00
ethernet lan743x: Fix TX Stall Issue 2019-03-01 11:34:09 -08:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Fix IP header checksum for coalesced packets 2019-02-26 14:45:02 -08:00
ieee802154
ipvlan ipvlan: disallow userns cap_net_admin to change global mode/flags 2019-02-22 11:27:19 -08:00
netdevsim
phy net: phy: phylink: fix uninitialized variable in phylink_get_mac_state 2019-03-01 11:30:48 -08:00
plip
ppp
slip
team team: use operstate consistently for linkup 2019-02-22 11:40:23 -08:00
usb r8152: Fix an error on RTL8153-BD MAC Address Passthrough support 2019-02-22 11:36:55 -08:00
vmxnet3
wan
wimax
wireless mac80211_hwsim: propagate genlmsg_reply return code 2019-02-22 13:27:22 +01:00
xen-netback xen-netback: don't populate the hash cache on XenBus disconnect 2019-02-28 12:50:37 -08:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: remove unnecessary memory barrier 2019-02-25 14:27:21 -08:00
veth.c
virtio_net.c
vrf.c net: vrf: remove MTU limits for vrf device 2019-02-21 13:10:08 -08:00
vsockmon.c
vxlan.c
xen-netfront.c