Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 1 | /**************************************************************************** |
Ben Hutchings | f7a6d2c | 2013-08-29 23:32:48 +0100 | [diff] [blame] | 2 | * Driver for Solarflare network controllers and boards |
| 3 | * Copyright 2006-2013 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 | |
Ben Hutchings | 8880f4e | 2009-11-29 15:15:41 +0000 | [diff] [blame] | 18 | #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0) |
Ben Hutchings | 8fbca79 | 2010-09-22 10:00:11 +0000 | [diff] [blame] | 19 | #define EFX_WORKAROUND_10G(efx) 1 |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 20 | |
Ben Hutchings | 3e133c4 | 2008-11-04 20:34:56 +0000 | [diff] [blame] | 21 | /* Bit-bashed I2C reads cause performance drop */ |
Ben Hutchings | 6f158d5 | 2008-12-12 22:00:49 -0800 | [diff] [blame] | 22 | #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G |
Ben Hutchings | 8880f4e | 2009-11-29 15:15:41 +0000 | [diff] [blame] | 23 | /* Legacy interrupt storm when interrupt fifo fills */ |
| 24 | #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 25 | |
Ben Hutchings | 8127d66 | 2013-08-29 19:19:29 +0100 | [diff] [blame] | 26 | /* Lockup when writing event block registers at gen2/gen3 */ |
| 27 | #define EFX_EF10_WORKAROUND_35388(efx) \ |
| 28 | (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388) |
| 29 | #define EFX_WORKAROUND_35388(efx) \ |
| 30 | (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx)) |
| 31 | |
Bert Kenward | 539de7c | 2016-08-11 13:02:09 +0100 | [diff] [blame] | 32 | /* Moderation timer access must go through MCDI */ |
| 33 | #define EFX_EF10_WORKAROUND_61265(efx) \ |
| 34 | (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265) |
| 35 | |
Ben Hutchings | 8ceee66 | 2008-04-27 12:55:59 +0100 | [diff] [blame] | 36 | #endif /* EFX_WORKAROUNDS_H */ |