workarounds.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /****************************************************************************
  2. * Driver for Solarflare network controllers and boards
  3. * Copyright 2006-2013 Solarflare Communications Inc.
  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. #ifndef EFX_WORKAROUNDS_H
  10. #define EFX_WORKAROUNDS_H
  11. /*
  12. * Hardware workarounds.
  13. * Bug numbers are from Solarflare's Bugzilla.
  14. */
  15. #define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
  16. #define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
  17. #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
  18. #define EFX_WORKAROUND_10G(efx) 1
  19. /* Bit-bashed I2C reads cause performance drop */
  20. #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
  21. /* Truncated IPv4 packets can confuse the TX packet parser */
  22. #define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
  23. /* Legacy interrupt storm when interrupt fifo fills */
  24. #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
  25. /* Spurious parity errors in TSORT buffers */
  26. #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
  27. /* Unaligned read request >512 bytes after aligning may break TSORT */
  28. #define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
  29. /* iSCSI parsing errors */
  30. #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
  31. /* RX events go missing */
  32. #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
  33. /* RX_RESET on A1 */
  34. #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
  35. /* Increase filter depth to avoid RX_RESET */
  36. #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
  37. /* Flushes may never complete */
  38. #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
  39. /* Leak overlength packets rather than free */
  40. #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
  41. /* Lockup when writing event block registers at gen2/gen3 */
  42. #define EFX_EF10_WORKAROUND_35388(efx) \
  43. (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388)
  44. #define EFX_WORKAROUND_35388(efx) \
  45. (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx))
  46. #endif /* EFX_WORKAROUNDS_H */