blob: e4dd3a7f304b5b70e874530fda18d251cc4515b1 [file] [log] [blame]
Ben Hutchings8ceee662008-04-27 12:55:59 +01001/****************************************************************************
2 * Driver for Solarflare Solarstorm network controllers and boards
Ben Hutchings0a6f40c2011-02-25 00:01:34 +00003 * Copyright 2006-2010 Solarflare Communications Inc.
Ben Hutchings8ceee662008-04-27 12:55:59 +01004 *
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 Hutchingsdaeda632009-11-28 05:36:04 +000019#define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
20#define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
Ben Hutchings8880f4e2009-11-29 15:15:41 +000021#define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
Ben Hutchings8fbca792010-09-22 10:00:11 +000022#define EFX_WORKAROUND_10G(efx) 1
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_EV_PKT_ERR can be caused by a dangling TX descriptor
31 * or a PCIe error (bug 11028) */
32#define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
33/* Transmit flow control may get disabled */
Ben Hutchingsfb45f2c2009-11-28 05:35:09 +000034#define EFX_WORKAROUND_11482 EFX_WORKAROUND_FALCON_AB
Ben Hutchingsbb145a92009-03-20 13:25:39 +000035/* Truncated IPv4 packets can confuse the TX packet parser */
Ben Hutchingsfb45f2c2009-11-28 05:35:09 +000036#define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
Ben Hutchings8880f4e2009-11-29 15:15:41 +000037/* Legacy ISR read can return zero once */
Steve Hodgson41b7e4c2010-04-28 09:28:27 +000038#define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
Ben Hutchings8880f4e2009-11-29 15:15:41 +000039/* Legacy interrupt storm when interrupt fifo fills */
40#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
Ben Hutchings8ceee662008-04-27 12:55:59 +010041
42/* Spurious parity errors in TSORT buffers */
43#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
Ben Hutchings63f19882009-10-23 08:31:20 +000044/* Unaligned read request >512 bytes after aligning may break TSORT */
45#define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
Ben Hutchings8ceee662008-04-27 12:55:59 +010046/* iSCSI parsing errors */
47#define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
48/* RX events go missing */
49#define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
50/* RX_RESET on A1 */
51#define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
52/* Increase filter depth to avoid RX_RESET */
53#define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
54/* Flushes may never complete */
Steve Hodgsonfd371e32010-06-01 11:17:51 +000055#define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
Ben Hutchings8ceee662008-04-27 12:55:59 +010056/* Leak overlength packets rather than free */
57#define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
58
Ben Hutchings8ceee662008-04-27 12:55:59 +010059#endif /* EFX_WORKAROUNDS_H */