blob: 82e03e1d73713ad2cc5c7dbbc110627fb21abe15 [file] [log] [blame]
Ben Hutchings8ceee662008-04-27 12:55:59 +01001/****************************************************************************
2 * Driver for Solarflare Solarstorm network controllers and boards
3 * Copyright 2006-2008 Solarflare Communications Inc.
4 *
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 */
9
10#ifndef EFX_WORKAROUNDS_H
11#define EFX_WORKAROUNDS_H
12
13/*
14 * Hardware workarounds.
15 * Bug numbers are from Solarflare's Bugzilla.
16 */
17
18#define EFX_WORKAROUND_ALWAYS(efx) 1
Ben Hutchings55668612008-05-16 21:16:10 +010019#define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1)
Ben Hutchings6f158d52008-12-12 22:00:49 -080020#define EFX_WORKAROUND_10G(efx) EFX_IS10G(efx)
Ben Hutchingse6fa2eb2008-12-12 22:00:17 -080021#define EFX_WORKAROUND_SFX7101(efx) ((efx)->phy_type == PHY_TYPE_SFX7101)
22#define EFX_WORKAROUND_SFT9001A(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A)
Ben Hutchings8ceee662008-04-27 12:55:59 +010023
24/* XAUI resets if link not detected */
25#define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
Ben Hutchings8ceee662008-04-27 12:55:59 +010026/* RX PCIe double split performance issue */
27#define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
Ben Hutchings3e133c42008-11-04 20:34:56 +000028/* Bit-bashed I2C reads cause performance drop */
Ben Hutchings6f158d52008-12-12 22:00:49 -080029#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
Ben Hutchings8ceee662008-04-27 12:55:59 +010030/* TX pkt parser problem with <= 16 byte TXes */
31#define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
Ben Hutchings8ceee662008-04-27 12:55:59 +010032/* Low rate CRC errors require XAUI reset */
Ben Hutchingse6fa2eb2008-12-12 22:00:17 -080033#define EFX_WORKAROUND_10750 EFX_WORKAROUND_SFX7101
Ben Hutchings8ceee662008-04-27 12:55:59 +010034/* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
35 * or a PCIe error (bug 11028) */
36#define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
37/* Transmit flow control may get disabled */
38#define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS
39/* Flush events can take a very long time to appear */
40#define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS
41
42/* Spurious parity errors in TSORT buffers */
43#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
44/* iSCSI parsing errors */
45#define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
46/* RX events go missing */
47#define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
48/* RX_RESET on A1 */
49#define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
50/* Increase filter depth to avoid RX_RESET */
51#define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
52/* Flushes may never complete */
53#define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A
54/* Leak overlength packets rather than free */
55#define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
56
Ben Hutchingse6fa2eb2008-12-12 22:00:17 -080057/* Need to send XNP pages for 100BaseT */
58#define EFX_WORKAROUND_13204 EFX_WORKAROUND_SFT9001A
59/* Need to keep AN enabled */
60#define EFX_WORKAROUND_13963 EFX_WORKAROUND_SFT9001A
61
Ben Hutchings8ceee662008-04-27 12:55:59 +010062#endif /* EFX_WORKAROUNDS_H */