162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/**************************************************************************** 362306a36Sopenharmony_ci * Driver for Solarflare network controllers and boards 462306a36Sopenharmony_ci * Copyright 2006-2013 Solarflare Communications Inc. 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef EF4_WORKAROUNDS_H 862306a36Sopenharmony_ci#define EF4_WORKAROUNDS_H 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* 1162306a36Sopenharmony_ci * Hardware workarounds. 1262306a36Sopenharmony_ci * Bug numbers are from Solarflare's Bugzilla. 1362306a36Sopenharmony_ci */ 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define EF4_WORKAROUND_FALCON_A(efx) (ef4_nic_rev(efx) <= EF4_REV_FALCON_A1) 1662306a36Sopenharmony_ci#define EF4_WORKAROUND_FALCON_AB(efx) (ef4_nic_rev(efx) <= EF4_REV_FALCON_B0) 1762306a36Sopenharmony_ci#define EF4_WORKAROUND_10G(efx) 1 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci/* Bit-bashed I2C reads cause performance drop */ 2062306a36Sopenharmony_ci#define EF4_WORKAROUND_7884 EF4_WORKAROUND_10G 2162306a36Sopenharmony_ci/* Truncated IPv4 packets can confuse the TX packet parser */ 2262306a36Sopenharmony_ci#define EF4_WORKAROUND_15592 EF4_WORKAROUND_FALCON_AB 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* Spurious parity errors in TSORT buffers */ 2562306a36Sopenharmony_ci#define EF4_WORKAROUND_5129 EF4_WORKAROUND_FALCON_A 2662306a36Sopenharmony_ci/* Unaligned read request >512 bytes after aligning may break TSORT */ 2762306a36Sopenharmony_ci#define EF4_WORKAROUND_5391 EF4_WORKAROUND_FALCON_A 2862306a36Sopenharmony_ci/* iSCSI parsing errors */ 2962306a36Sopenharmony_ci#define EF4_WORKAROUND_5583 EF4_WORKAROUND_FALCON_A 3062306a36Sopenharmony_ci/* RX events go missing */ 3162306a36Sopenharmony_ci#define EF4_WORKAROUND_5676 EF4_WORKAROUND_FALCON_A 3262306a36Sopenharmony_ci/* RX_RESET on A1 */ 3362306a36Sopenharmony_ci#define EF4_WORKAROUND_6555 EF4_WORKAROUND_FALCON_A 3462306a36Sopenharmony_ci/* Increase filter depth to avoid RX_RESET */ 3562306a36Sopenharmony_ci#define EF4_WORKAROUND_7244 EF4_WORKAROUND_FALCON_A 3662306a36Sopenharmony_ci/* Flushes may never complete */ 3762306a36Sopenharmony_ci#define EF4_WORKAROUND_7803 EF4_WORKAROUND_FALCON_AB 3862306a36Sopenharmony_ci/* Leak overlength packets rather than free */ 3962306a36Sopenharmony_ci#define EF4_WORKAROUND_8071 EF4_WORKAROUND_FALCON_A 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci#endif /* EF4_WORKAROUNDS_H */ 42