linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas c30e76a728 amd-xgbe: Request IRQs only after driver is fully setup
It is possible that the hardware may not have been properly shutdown
before this driver gets control, through use by firmware, for example.
Until the driver is loaded, interrupts associated with the hardware
could go pending. When the IRQs are requested napi support has not
been initialized yet, but the ISR will get control and schedule napi
processing resulting in a kernel panic because the poll routine has not
been set.

Adjust the code so that the driver is fully ready to handle and process
interrupts as soon as the IRQs are requested. This involves requesting
and freeing IRQs during start and stop processing and ordering the napi
add and delete calls appropriately.

Also adjust the powerup and powerdown routines to match the start and
stop routines in regards to the ordering of tasks, including napi
related calls.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-27 17:13:02 -05:00
..
Makefile amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-common.h amd-xgbe: Use proper Rx flow control register 2015-01-23 22:17:06 -08:00
xgbe-dcb.c amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe-debugfs.c amd-xgbe: Checkpatch fixes 2015-01-16 22:24:19 -05:00
xgbe-desc.c amd-xgbe: Simplify the Rx desciptor ring tracking 2015-01-16 22:24:20 -05:00
xgbe-dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-01-27 16:59:56 -08:00
xgbe-drv.c amd-xgbe: Request IRQs only after driver is fully setup 2015-02-27 17:13:02 -05:00
xgbe-ethtool.c ethtool: Support for configurable RSS hash function 2014-12-08 21:07:10 -05:00
xgbe-main.c amd-xgbe: Add ACPI support 2015-01-16 22:24:20 -05:00
xgbe-mdio.c amd-xgbe: Add ACPI support 2015-01-16 22:24:20 -05:00
xgbe-ptp.c amd-xgbe: Add ACPI support 2015-01-16 22:24:20 -05:00
xgbe.h amd-xgbe: Add ACPI support 2015-01-16 22:24:20 -05:00