Merge remote-tracking branch 'sound-asoc/for-next'
[deliverable/linux.git] / drivers / net / ethernet / sfc / workarounds.h
CommitLineData
8ceee660 1/****************************************************************************
f7a6d2c4
BH
2 * Driver for Solarflare network controllers and boards
3 * Copyright 2006-2013 Solarflare Communications Inc.
8ceee660
BH
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
daeda630
BH
18#define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
19#define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
8880f4ec 20#define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
8fbca791 21#define EFX_WORKAROUND_10G(efx) 1
8ceee660 22
3e133c44 23/* Bit-bashed I2C reads cause performance drop */
6f158d5f 24#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
bb145a9e 25/* Truncated IPv4 packets can confuse the TX packet parser */
fb45f2c1 26#define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
8880f4ec
BH
27/* Legacy interrupt storm when interrupt fifo fills */
28#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
8ceee660
BH
29
30/* Spurious parity errors in TSORT buffers */
31#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
63f19884
BH
32/* Unaligned read request >512 bytes after aligning may break TSORT */
33#define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
8ceee660
BH
34/* iSCSI parsing errors */
35#define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
36/* RX events go missing */
37#define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
38/* RX_RESET on A1 */
39#define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
40/* Increase filter depth to avoid RX_RESET */
41#define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
42/* Flushes may never complete */
fd371e32 43#define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
8ceee660
BH
44/* Leak overlength packets rather than free */
45#define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
46
8127d661
BH
47/* Lockup when writing event block registers at gen2/gen3 */
48#define EFX_EF10_WORKAROUND_35388(efx) \
49 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388)
50#define EFX_WORKAROUND_35388(efx) \
51 (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx))
52
539de7c5
BK
53/* Moderation timer access must go through MCDI */
54#define EFX_EF10_WORKAROUND_61265(efx) \
55 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
56
8ceee660 57#endif /* EFX_WORKAROUNDS_H */
This page took 1.524091 seconds and 5 git commands to generate.