workarounds.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /****************************************************************************
  2. * Driver for Solarflare Solarstorm network controllers and boards
  3. * Copyright 2006-2010 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_ALWAYS(efx) 1
  16. #define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
  17. #define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
  18. #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
  19. #define EFX_WORKAROUND_10G(efx) 1
  20. /* XAUI resets if link not detected */
  21. #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
  22. /* RX PCIe double split performance issue */
  23. #define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
  24. /* Bit-bashed I2C reads cause performance drop */
  25. #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
  26. /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
  27. * or a PCIe error (bug 11028) */
  28. #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
  29. /* Transmit flow control may get disabled */
  30. #define EFX_WORKAROUND_11482 EFX_WORKAROUND_FALCON_AB
  31. /* Truncated IPv4 packets can confuse the TX packet parser */
  32. #define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
  33. /* Legacy ISR read can return zero once */
  34. #define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
  35. /* Legacy interrupt storm when interrupt fifo fills */
  36. #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
  37. /* Spurious parity errors in TSORT buffers */
  38. #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
  39. /* Unaligned read request >512 bytes after aligning may break TSORT */
  40. #define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
  41. /* iSCSI parsing errors */
  42. #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
  43. /* RX events go missing */
  44. #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
  45. /* RX_RESET on A1 */
  46. #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
  47. /* Increase filter depth to avoid RX_RESET */
  48. #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
  49. /* Flushes may never complete */
  50. #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
  51. /* Leak overlength packets rather than free */
  52. #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
  53. #endif /* EFX_WORKAROUNDS_H */