Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | * Driver for Solarflare Solarstorm network controllers and boards |
Ben Hutchings | 906bb26 | 2009-11-29 15:16:19 +0000 | [diff] [blame] | 3 | * Copyright 2006-2009 Solarflare Communications Inc. |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 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 Hutchings | daeda63 | 2009-11-28 05:36:04 +0000 | [diff] [blame] | 19 | #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 Hutchings | 8880f4e | 2009-11-29 15:15:41 +0000 | [diff] [blame] | 21 | #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0) |
Ben Hutchings | 6f158d5 | 2008-12-12 22:00:49 -0800 | [diff] [blame] | 22 | #define EFX_WORKAROUND_10G(efx) EFX_IS10G(efx) |
Steve Hodgson | 8b9dc8d | 2009-01-29 17:49:09 +0000 | [diff] [blame] | 23 | #define EFX_WORKAROUND_SFT9001(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A || \ |
| 24 | (efx)->phy_type == PHY_TYPE_SFT9001B) |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 25 | |
| 26 | /* XAUI resets if link not detected */ |
| 27 | #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 28 | /* RX PCIe double split performance issue */ |
| 29 | #define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 3e133c4 | 2008-11-04 20:34:56 +0000 | [diff] [blame] | 30 | /* Bit-bashed I2C reads cause performance drop */ |
Ben Hutchings | 6f158d5 | 2008-12-12 22:00:49 -0800 | [diff] [blame] | 31 | #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 32 | /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor |
| 33 | * or a PCIe error (bug 11028) */ |
| 34 | #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS |
| 35 | /* Transmit flow control may get disabled */ |
Ben Hutchings | fb45f2c | 2009-11-28 05:35:09 +0000 | [diff] [blame] | 36 | #define EFX_WORKAROUND_11482 EFX_WORKAROUND_FALCON_AB |
Ben Hutchings | bb145a9 | 2009-03-20 13:25:39 +0000 | [diff] [blame] | 37 | /* Truncated IPv4 packets can confuse the TX packet parser */ |
Ben Hutchings | fb45f2c | 2009-11-28 05:35:09 +0000 | [diff] [blame] | 38 | #define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB |
Ben Hutchings | 8880f4e | 2009-11-29 15:15:41 +0000 | [diff] [blame] | 39 | /* Legacy ISR read can return zero once */ |
Steve Hodgson | 41b7e4c | 2010-04-28 09:28:27 +0000 | [diff] [blame] | 40 | #define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 8880f4e | 2009-11-29 15:15:41 +0000 | [diff] [blame] | 41 | /* Legacy interrupt storm when interrupt fifo fills */ |
| 42 | #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 43 | |
| 44 | /* Spurious parity errors in TSORT buffers */ |
| 45 | #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A |
Ben Hutchings | 63f1988 | 2009-10-23 08:31:20 +0000 | [diff] [blame] | 46 | /* Unaligned read request >512 bytes after aligning may break TSORT */ |
| 47 | #define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 48 | /* iSCSI parsing errors */ |
| 49 | #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A |
| 50 | /* RX events go missing */ |
| 51 | #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A |
| 52 | /* RX_RESET on A1 */ |
| 53 | #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A |
| 54 | /* Increase filter depth to avoid RX_RESET */ |
| 55 | #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A |
| 56 | /* Flushes may never complete */ |
Steve Hodgson | fd371e3 | 2010-06-01 11:17:51 +0000 | [diff] [blame^] | 57 | #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 58 | /* Leak overlength packets rather than free */ |
| 59 | #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A |
| 60 | |
Ben Hutchings | e6fa2eb | 2008-12-12 22:00:17 -0800 | [diff] [blame] | 61 | /* Need to send XNP pages for 100BaseT */ |
Ben Hutchings | c9d5a53 | 2009-01-29 17:52:11 +0000 | [diff] [blame] | 62 | #define EFX_WORKAROUND_13204 EFX_WORKAROUND_SFT9001 |
Steve Hodgson | 8b9dc8d | 2009-01-29 17:49:09 +0000 | [diff] [blame] | 63 | /* Don't restart AN in near-side loopback */ |
| 64 | #define EFX_WORKAROUND_15195 EFX_WORKAROUND_SFT9001 |
| 65 | |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 66 | #endif /* EFX_WORKAROUNDS_H */ |