2008-04-27 13:55:59 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Driver for Solarflare Solarstorm network controllers and boards
|
|
|
|
* Copyright 2006-2008 Solarflare Communications Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
* by the Free Software Foundation, incorporated herein by reference.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EFX_WORKAROUNDS_H
|
|
|
|
#define EFX_WORKAROUNDS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Hardware workarounds.
|
|
|
|
* Bug numbers are from Solarflare's Bugzilla.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define EFX_WORKAROUND_ALWAYS(efx) 1
|
2008-05-16 22:16:10 +02:00
|
|
|
#define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1)
|
2008-12-13 07:00:49 +01:00
|
|
|
#define EFX_WORKAROUND_10G(efx) EFX_IS10G(efx)
|
2009-01-29 18:49:09 +01:00
|
|
|
#define EFX_WORKAROUND_SFT9001(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A || \
|
|
|
|
(efx)->phy_type == PHY_TYPE_SFT9001B)
|
2008-04-27 13:55:59 +02:00
|
|
|
|
|
|
|
/* XAUI resets if link not detected */
|
|
|
|
#define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
|
|
|
|
/* RX PCIe double split performance issue */
|
|
|
|
#define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
|
2008-11-04 21:34:56 +01:00
|
|
|
/* Bit-bashed I2C reads cause performance drop */
|
2008-12-13 07:00:49 +01:00
|
|
|
#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
|
2008-04-27 13:55:59 +02:00
|
|
|
/* TX pkt parser problem with <= 16 byte TXes */
|
|
|
|
#define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
|
|
|
|
/* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
|
|
|
|
* or a PCIe error (bug 11028) */
|
|
|
|
#define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
|
|
|
|
/* Transmit flow control may get disabled */
|
|
|
|
#define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS
|
|
|
|
/* Flush events can take a very long time to appear */
|
|
|
|
#define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS
|
2009-03-20 14:25:39 +01:00
|
|
|
/* Truncated IPv4 packets can confuse the TX packet parser */
|
|
|
|
#define EFX_WORKAROUND_15592 EFX_WORKAROUND_ALWAYS
|
2008-04-27 13:55:59 +02:00
|
|
|
|
|
|
|
/* Spurious parity errors in TSORT buffers */
|
|
|
|
#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* iSCSI parsing errors */
|
|
|
|
#define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* RX events go missing */
|
|
|
|
#define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* RX_RESET on A1 */
|
|
|
|
#define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* Increase filter depth to avoid RX_RESET */
|
|
|
|
#define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* Flushes may never complete */
|
|
|
|
#define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A
|
|
|
|
/* Leak overlength packets rather than free */
|
|
|
|
#define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
|
|
|
|
|
2008-12-13 07:00:17 +01:00
|
|
|
/* Need to send XNP pages for 100BaseT */
|
2009-01-29 18:52:11 +01:00
|
|
|
#define EFX_WORKAROUND_13204 EFX_WORKAROUND_SFT9001
|
2009-01-29 18:49:09 +01:00
|
|
|
/* Don't restart AN in near-side loopback */
|
|
|
|
#define EFX_WORKAROUND_15195 EFX_WORKAROUND_SFT9001
|
|
|
|
|
2008-04-27 13:55:59 +02:00
|
|
|
#endif /* EFX_WORKAROUNDS_H */
|