diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2016-11-10 17:10:26 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-13 00:56:26 -0500 |
commit | e78332b2285d9fe631a093fc8ca2b604c48c33e6 (patch) | |
tree | 3343bb596daa4406c7bbe0bea403a053b79a0472 /drivers/net/ethernet/amd/xgbe/xgbe-pci.c | |
parent | 4c70dd8ac9ef88a1902b4d63dda987746a34ebc4 (diff) | |
download | linux-stable-e78332b2285d9fe631a093fc8ca2b604c48c33e6.tar.gz linux-stable-e78332b2285d9fe631a093fc8ca2b604c48c33e6.tar.bz2 linux-stable-e78332b2285d9fe631a093fc8ca2b604c48c33e6.zip |
amd-xgbe: Add ECC status support for the device memory
Some versions of the amd-xgbe device are capable of reporting ECC error
information back to the driver. Add support to process, track and report
on this information.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-pci.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c index 61eb6613b732..798a65ef5606 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -482,6 +482,7 @@ static const struct xgbe_version_data xgbe_v2a = { .tx_max_fifo_size = 229376, .rx_max_fifo_size = 229376, .tx_tstamp_workaround = 1, + .ecc_support = 1, }; static const struct xgbe_version_data xgbe_v2b = { @@ -491,6 +492,7 @@ static const struct xgbe_version_data xgbe_v2b = { .tx_max_fifo_size = 65536, .rx_max_fifo_size = 65536, .tx_tstamp_workaround = 1, + .ecc_support = 1, }; static const struct pci_device_id xgbe_pci_table[] = { |