linux_dsm_epyc7002/drivers/net/ethernet/smsc
Geert Uytterhoeven 2aa70f8649 net: smsc911x: Quieten netif during suspend
If the network interface is kept running during suspend, the net core
may call net_device_ops.ndo_start_xmit() while the Ethernet device is
still suspended, which may lead to a system crash.

E.g. on sh73a0/kzm9g and r8a73a4/ape6evm, the external Ethernet chip is
driven by a PM controlled clock.  If the Ethernet registers are accessed
while the clock is not running, the system will crash with an imprecise
external abort.

As this is a race condition with a small time window, it is not so easy
to trigger at will.  Using pm_test may increase your chances:

    # echo 0 > /sys/module/printk/parameters/console_suspend
    # echo platform > /sys/power/pm_test
    # echo mem > /sys/power/state

To fix this, make sure the network interface is quietened during
suspend.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-15 14:24:49 -07:00
..
epic100.c net/{mii, smsc}: Make mii_ethtool_get_link_ksettings and smc_netdev_get_ecmd return void 2017-06-05 11:00:42 -04:00
Kconfig net: smsc: Add support h8300 2016-01-15 15:14:23 -05:00
Makefile
smc91c92_cs.c net/{mii, smsc}: Make mii_ethtool_get_link_ksettings and smc_netdev_get_ecmd return void 2017-06-05 11:00:42 -04:00
smc91x.c net: smc91x: constify dev_pm_ops structures. 2017-06-29 15:48:50 -04:00
smc91x.h net: smc91x: fix neponset breakage by pxa u16 writes 2016-10-20 11:20:57 -04:00
smc911x.c net/{mii, smsc}: Make mii_ethtool_get_link_ksettings and smc_netdev_get_ecmd return void 2017-06-05 11:00:42 -04:00
smc911x.h net: smc911x: convert pxa dma to dmaengine 2016-03-18 22:23:59 -04:00
smc9194.c Annotate hardware config module parameters in drivers/net/ethernet/ 2017-04-20 12:02:32 +01:00
smc9194.h
smsc911x.c net: smsc911x: Quieten netif during suspend 2017-09-15 14:24:49 -07:00
smsc911x.h smsc911x: Adding support for Micochip LAN9250 Ethernet controller 2017-05-03 09:41:52 -04:00
smsc9420.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
smsc9420.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00