linux_dsm_epyc7002/drivers/net/ethernet/intel
Jacob Keller e330af7889 fm10k: ensure completer aborts are marked as non-fatal after a resume
VF drivers can trigger PCIe completer aborts any time they read a queue
that they don't own. Even in nominal circumstances, it is not possible
to prevent the VF driver from reading queues it doesn't own. VF drivers
may attempt to read queues it previously owned, but which it no longer
does due to a PF reset.

Normally these completer aborts aren't an issue. However, on some
platforms these trigger machine check errors. This is true even if we
lower their severity from fatal to non-fatal. Indeed, we already have
code for lowering the severity.

We could attempt to mask these errors conditionally around resets, which
is the most common time they would occur. However this would essentially
be a race between the PF and VF drivers, and we may still occasionally
see machine check exceptions on these strictly configured platforms.

Instead, mask the errors entirely any time we resume VFs. By doing so,
we prevent the completer aborts from being sent to the parent PCIe
device, and thus these strict platforms will not upgrade them into
machine check errors.

Additionally, we don't lose any information by masking these errors,
because we'll still report VFs which attempt to access queues via the
FUM_BAD_VF_QACCESS errors.

Without this change, on platforms where completer aborts cause machine
check exceptions, the VF reading queues it doesn't own could crash the
host system. Masking the completer abort prevents this, so we should
mask it for good, and not just around a PCIe reset. Otherwise malicious
or misconfigured VFs could cause the host system to crash.

Because we are masking the error entirely, there is little reason to
also keep setting the severity bit, so that code is also removed.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-10-31 10:37:32 -07:00
..
e1000 e1000: remove set but not used variable 'txb2b' 2018-09-19 23:09:23 -07:00
e1000e pci-v4.20-changes 2018-10-25 06:50:48 -07:00
fm10k fm10k: ensure completer aborts are marked as non-fatal after a resume 2018-10-31 10:37:32 -07:00
i40e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-26 19:25:07 -07:00
iavf drivers: net: remove <net/busy_poll.h> inclusion when not needed 2018-10-25 16:20:02 -07:00
ice ice: Poll for link status change 2018-10-24 14:30:40 -07:00
igb igb: shorten maximum PHC timecounter update interval 2018-10-31 10:24:41 -07:00
igbvf intel-ethernet: use correct module license 2018-09-18 15:32:59 -07:00
igc igc: Add watchdog 2018-10-17 13:58:47 -07:00
ixgb Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-09-25 10:35:29 -07:00
ixgbe Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-26 19:25:07 -07:00
ixgbevf ixgbevf: off by one in ixgbevf_ipsec_tx() 2018-10-03 12:29:34 -07:00
e100.c intel-ethernet: use correct module license 2018-09-18 15:32:59 -07:00
Kconfig Documentation: intel: Convert to RST format 2018-10-18 12:41:29 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00