]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
amd-xgbe: Interrupt summary bits are h/w version dependent
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 28 Aug 2017 20:29:34 +0000 (15:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:31:10 +0000 (15:31 -0700)
commitf602b976b6b0eab8de59e438f9313da72b47a8e4
treed73b436921bbb845c8a8187454a16c132efccff3
parentf8045ca9019fd787ed64dddb3cdb2b765c926f0f
amd-xgbe: Interrupt summary bits are h/w version dependent

There is a difference in the bit position of the normal interrupt summary
enable (NIE) and abnormal interrupt summary enable (AIE) between revisions
of the hardware.  For older revisions the NIE and AIE bits are positions
16 and 15 respectively.  For newer revisions the NIE and AIE bits are
positions 15 and 14.  The effect in changing the bit position is that
newer hardware won't receive AIE interrupts in the current version of the
driver.  Specifically, the driver uses this interrupt to collect
statistics on when a receive buffer unavailable event occurs and to
restart the driver/device when a fatal bus error occurs.

Update the driver to set the interrupt enable bit based on the reported
version of the hardware.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-common.h
drivers/net/ethernet/amd/xgbe/xgbe-dev.c