2019-06-04 15:11:33 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2008-04-27 18:55:59 +07:00
|
|
|
/****************************************************************************
|
2013-08-30 05:32:48 +07:00
|
|
|
* Driver for Solarflare network controllers and boards
|
|
|
|
* Copyright 2006-2013 Solarflare Communications Inc.
|
2008-04-27 18:55:59 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EFX_WORKAROUNDS_H
|
|
|
|
#define EFX_WORKAROUNDS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Hardware workarounds.
|
|
|
|
* Bug numbers are from Solarflare's Bugzilla.
|
|
|
|
*/
|
|
|
|
|
2009-11-29 22:15:41 +07:00
|
|
|
#define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
|
2017-04-25 19:44:54 +07:00
|
|
|
#define EFX_WORKAROUND_EF10(efx) (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
|
2010-09-22 17:00:11 +07:00
|
|
|
#define EFX_WORKAROUND_10G(efx) 1
|
2008-04-27 18:55:59 +07:00
|
|
|
|
2008-11-05 03:34:56 +07:00
|
|
|
/* Bit-bashed I2C reads cause performance drop */
|
2008-12-13 13:00:49 +07:00
|
|
|
#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
|
2009-11-29 22:15:41 +07:00
|
|
|
/* Legacy interrupt storm when interrupt fifo fills */
|
|
|
|
#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
|
2008-04-27 18:55:59 +07:00
|
|
|
|
2013-08-30 01:19:29 +07: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))
|
|
|
|
|
2016-08-11 19:02:09 +07:00
|
|
|
/* Moderation timer access must go through MCDI */
|
|
|
|
#define EFX_EF10_WORKAROUND_61265(efx) \
|
|
|
|
(((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
|
|
|
|
|
2008-04-27 18:55:59 +07:00
|
|
|
#endif /* EFX_WORKAROUNDS_H */
|