| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | /****************************************************************************
 | 
					
						
							| 
									
										
										
										
											2013-08-29 23:32:48 +01:00
										 |  |  |  * Driver for Solarflare network controllers and boards | 
					
						
							|  |  |  |  * Copyright 2006-2013 Solarflare Communications Inc. | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  |  * | 
					
						
							|  |  |  |  * 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. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-28 05:36:04 +00:00
										 |  |  | #define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
 | 
					
						
							|  |  |  | #define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
 | 
					
						
							| 
									
										
										
										
											2009-11-29 15:15:41 +00:00
										 |  |  | #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
 | 
					
						
							| 
									
										
										
										
											2010-09-22 10:00:11 +00:00
										 |  |  | #define EFX_WORKAROUND_10G(efx) 1
 | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-11-04 20:34:56 +00:00
										 |  |  | /* Bit-bashed I2C reads cause performance drop */ | 
					
						
							| 
									
										
										
										
											2008-12-12 22:00:49 -08:00
										 |  |  | #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
 | 
					
						
							| 
									
										
										
										
											2009-03-20 13:25:39 +00:00
										 |  |  | /* Truncated IPv4 packets can confuse the TX packet parser */ | 
					
						
							| 
									
										
										
										
											2009-11-28 05:35:09 +00:00
										 |  |  | #define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
 | 
					
						
							| 
									
										
										
										
											2009-11-29 15:15:41 +00:00
										 |  |  | /* Legacy interrupt storm when interrupt fifo fills */ | 
					
						
							|  |  |  | #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
 | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* Spurious parity errors in TSORT buffers */ | 
					
						
							|  |  |  | #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
 | 
					
						
							| 
									
										
										
										
											2009-10-23 08:31:20 +00:00
										 |  |  | /* Unaligned read request >512 bytes after aligning may break TSORT */ | 
					
						
							|  |  |  | #define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
 | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | /* 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 */ | 
					
						
							| 
									
										
										
										
											2010-06-01 11:17:51 +00:00
										 |  |  | #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
 | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | /* Leak overlength packets rather than free */ | 
					
						
							|  |  |  | #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-29 19:19:29 +01:00
										 |  |  | /* Lockup when writing event block registers at gen2/gen3 */ | 
					
						
							|  |  |  | #define EFX_EF10_WORKAROUND_35388(efx)					\
 | 
					
						
							|  |  |  | 	(((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388) | 
					
						
							|  |  |  | #define EFX_WORKAROUND_35388(efx)					\
 | 
					
						
							|  |  |  | 	(efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-04-27 12:55:59 +01:00
										 |  |  | #endif /* EFX_WORKAROUNDS_H */
 |