Merge tag 'trace-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
[linux-block.git] / drivers / net / ethernet / sfc / workarounds.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
8ceee660 2/****************************************************************************
f7a6d2c4
BH
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2006-2013 Solarflare Communications Inc.
8ceee660
BH
5 */
6
7#ifndef EFX_WORKAROUNDS_H
8#define EFX_WORKAROUNDS_H
9
10/*
11 * Hardware workarounds.
12 * Bug numbers are from Solarflare's Bugzilla.
13 */
14
8880f4ec 15#define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
a53d26eb 16#define EFX_WORKAROUND_EF10(efx) (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
8fbca791 17#define EFX_WORKAROUND_10G(efx) 1
8ceee660 18
3e133c44 19/* Bit-bashed I2C reads cause performance drop */
6f158d5f 20#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
8880f4ec
BH
21/* Legacy interrupt storm when interrupt fifo fills */
22#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
8ceee660 23
8127d661
BH
24/* Lockup when writing event block registers at gen2/gen3 */
25#define EFX_EF10_WORKAROUND_35388(efx) \
26 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388)
27#define EFX_WORKAROUND_35388(efx) \
28 (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx))
29
539de7c5
BK
30/* Moderation timer access must go through MCDI */
31#define EFX_EF10_WORKAROUND_61265(efx) \
32 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
33
8ceee660 34#endif /* EFX_WORKAROUNDS_H */