Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 Hutchings | 5566861 | 2008-05-16 21:16:10 +0100 | [diff] [blame] | 19 | #define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1) |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 20 | |
| 21 | /* XAUI resets if link not detected */ |
| 22 | #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 23 | /* RX PCIe double split performance issue */ |
| 24 | #define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 3e133c4 | 2008-11-04 20:34:56 +0000 | [diff] [blame] | 25 | /* Bit-bashed I2C reads cause performance drop */ |
| 26 | #define EFX_WORKAROUND_7884 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 27 | /* TX pkt parser problem with <= 16 byte TXes */ |
| 28 | #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 29 | /* Low rate CRC errors require XAUI reset */ |
| 30 | #define EFX_WORKAROUND_10750 EFX_WORKAROUND_ALWAYS |
| 31 | /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor |
| 32 | * or a PCIe error (bug 11028) */ |
| 33 | #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS |
| 34 | /* Transmit flow control may get disabled */ |
| 35 | #define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS |
| 36 | /* Flush events can take a very long time to appear */ |
| 37 | #define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS |
| 38 | |
| 39 | /* Spurious parity errors in TSORT buffers */ |
| 40 | #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A |
| 41 | /* iSCSI parsing errors */ |
| 42 | #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A |
| 43 | /* RX events go missing */ |
| 44 | #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A |
| 45 | /* RX_RESET on A1 */ |
| 46 | #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A |
| 47 | /* Increase filter depth to avoid RX_RESET */ |
| 48 | #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A |
| 49 | /* Flushes may never complete */ |
| 50 | #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A |
| 51 | /* Leak overlength packets rather than free */ |
| 52 | #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A |
| 53 | |
| 54 | #endif /* EFX_WORKAROUNDS_H */ |