ia64/linux-2.6.18-xen.hg

view drivers/net/sfc/workarounds.h @ 847:ad4d307bf9ce

net sfc: Update sfc and sfc_resource driver to latest release

...and update sfc_netfront, sfc_netback, sfc_netutil for any API changes

sfc_netback: Fix asymmetric use of SFC buffer table alloc and free
sfc_netback: Clean up if no SFC accel device found
sfc_netback: Gracefully handle case where page grant fails
sfc_netback: Disable net acceleration if the physical link goes down
sfc_netfront: Less verbose error messages, more verbose counters for
rx discard errors
sfc_netfront: Gracefully handle case where SFC netfront fails during
initialisation

Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 11:59:10 2009 +0100 (2009-03-31)
parents fc90e9b2c12b
children
line source
1 /****************************************************************************
2 * Driver for Solarflare network controllers
3 * (including support for SFE4001 10GBT NIC)
4 *
5 * Copyright 2006-2008: Solarflare Communications Inc,
6 * 9501 Jeronimo Road, Suite 250,
7 * Irvine, CA 92618, USA
8 *
9 * Developed by Solarflare Communications <linux-net-drivers@solarflare.com>
10 *
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 2 as published
13 * by the Free Software Foundation, incorporated herein by reference.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 ****************************************************************************
24 */
26 #ifndef EFX_WORKAROUNDS_H
27 #define EFX_WORKAROUNDS_H
29 /*
30 * Hardware workarounds.
31 * Bug numbers are from Solarflare's Bugzilla.
32 */
34 #define EFX_WORKAROUND_ALWAYS(efx) 1
35 #define EFX_WORKAROUND_FALCON_A(efx) (FALCON_REV(efx) <= FALCON_REV_A1)
36 #define EFX_WORKAROUND_FALCON_B0FPGA(efx) \
37 (FALCON_REV(efx) >= FALCON_REV_B0 && !(efx)->is_asic)
39 /* XAUI resets if link not detected */
40 #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
41 /* SNAP frames have TOBE_DISC set */
42 #define EFX_WORKAROUND_5475 EFX_WORKAROUND_ALWAYS
43 /* PHY interrupts can go to the wrong port */
44 #define EFX_WORKAROUND_6263 EFX_WORKAROUND_ALWAYS
45 /* Reprog PCIe ACK timer to workaround issue in PCIe IP block */
46 #define EFX_WORKAROUND_6943 EFX_WORKAROUND_ALWAYS
47 /* RX PCIe double split performance issue */
48 #define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
49 /* Bit-bashed I2C reads cause performance drop */
50 #define EFX_WORKAROUND_7884 EFX_WORKAROUND_ALWAYS
51 /* Selftests need to be retried */
52 #define EFX_WORKAROUND_8909 EFX_WORKAROUND_ALWAYS
53 /* Queued ACKs aren't flushed before L1 entry */
54 #define EFX_WORKAROUND_9096 EFX_WORKAROUND_ALWAYS
55 /* TX pkt parser problem with <= 16 byte TXes */
56 #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
57 /* XGXS and XAUI reset sequencing in SW */
58 #define EFX_WORKAROUND_9388 EFX_WORKAROUND_ALWAYS
59 /* Low rate CRC errors require XAUI reset */
60 #define EFX_WORKAROUND_10750 EFX_WORKAROUND_ALWAYS
61 /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
62 * or a PCIe error (bug 11028) */
63 #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
64 /* CX4 retimer fails to bring link up after reset */
65 #define EFX_WORKAROUND_10934 EFX_WORKAROUND_ALWAYS
66 /* Transmit flow control may get disabled */
67 #define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS
68 /* Flush events can take a very long time to appear */
69 #define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS
70 /* 10Xpress is sensitive to unstable XAUI sync when going into loopback */
71 #define EFX_WORKAROUND_11667 EFX_WORKAROUND_ALWAYS
73 /* Spurious parity errors in TSORT buffers */
74 #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
75 /* No unaligned TX over 512 byte boundaries */
76 #define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
77 /* iSCSI parsing errors */
78 #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
79 /* RX events go missing */
80 #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
81 /* RX_RESET on A1 */
82 #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
83 /* Spurious duplicate RX events */
84 #define EFX_WORKAROUND_7062 EFX_WORKAROUND_FALCON_A
85 /* Increase filter depth to avoid RX_RESET */
86 #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
87 /* Flushes may never complete */
88 #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A
89 /* Leak overlength packets rather than free */
90 #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
92 /* Memory needs clearing at start-of-day */
93 #define EFX_WORKAROUND_8202 EFX_WORKAROUND_FALCON_B0FPGA
94 /* MAC statistics are transient */
95 #define EFX_WORKAROUND_8419 EFX_WORKAROUND_FALCON_B0FPGA
96 /* Prefetch watchdog timer may trigger erroneously on busy systems */
97 #define EFX_WORKAROUND_9008 EFX_WORKAROUND_FALCON_B0FPGA
99 #endif /* EFX_WORKAROUNDS_H */