Linux 4.16.11
[linux/fpc-iii.git] / drivers / net / ethernet / sfc / falcon / workarounds.h
blob6af800bc9633272d9c64faeb2af0212955b400f5
1 /****************************************************************************
2 * Driver for Solarflare network controllers and boards
3 * Copyright 2006-2013 Solarflare Communications Inc.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation, incorporated herein by reference.
8 */
10 #ifndef EF4_WORKAROUNDS_H
11 #define EF4_WORKAROUNDS_H
14 * Hardware workarounds.
15 * Bug numbers are from Solarflare's Bugzilla.
18 #define EF4_WORKAROUND_FALCON_A(efx) (ef4_nic_rev(efx) <= EF4_REV_FALCON_A1)
19 #define EF4_WORKAROUND_FALCON_AB(efx) (ef4_nic_rev(efx) <= EF4_REV_FALCON_B0)
20 #define EF4_WORKAROUND_10G(efx) 1
22 /* Bit-bashed I2C reads cause performance drop */
23 #define EF4_WORKAROUND_7884 EF4_WORKAROUND_10G
24 /* Truncated IPv4 packets can confuse the TX packet parser */
25 #define EF4_WORKAROUND_15592 EF4_WORKAROUND_FALCON_AB
27 /* Spurious parity errors in TSORT buffers */
28 #define EF4_WORKAROUND_5129 EF4_WORKAROUND_FALCON_A
29 /* Unaligned read request >512 bytes after aligning may break TSORT */
30 #define EF4_WORKAROUND_5391 EF4_WORKAROUND_FALCON_A
31 /* iSCSI parsing errors */
32 #define EF4_WORKAROUND_5583 EF4_WORKAROUND_FALCON_A
33 /* RX events go missing */
34 #define EF4_WORKAROUND_5676 EF4_WORKAROUND_FALCON_A
35 /* RX_RESET on A1 */
36 #define EF4_WORKAROUND_6555 EF4_WORKAROUND_FALCON_A
37 /* Increase filter depth to avoid RX_RESET */
38 #define EF4_WORKAROUND_7244 EF4_WORKAROUND_FALCON_A
39 /* Flushes may never complete */
40 #define EF4_WORKAROUND_7803 EF4_WORKAROUND_FALCON_AB
41 /* Leak overlength packets rather than free */
42 #define EF4_WORKAROUND_8071 EF4_WORKAROUND_FALCON_A
44 #endif /* EF4_WORKAROUNDS_H */