workarounds.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /****************************************************************************
  2. * Driver for Solarflare Solarstorm network controllers and boards
  3. * Copyright 2006-2008 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) (falcon_rev(efx) <= FALCON_REV_A1)
  17. /* XAUI resets if link not detected */
  18. #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
  19. /* RX PCIe double split performance issue */
  20. #define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
  21. /* TX pkt parser problem with <= 16 byte TXes */
  22. #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
  23. /* Low rate CRC errors require XAUI reset */
  24. #define EFX_WORKAROUND_10750 EFX_WORKAROUND_ALWAYS
  25. /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
  26. * or a PCIe error (bug 11028) */
  27. #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
  28. /* Transmit flow control may get disabled */
  29. #define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS
  30. /* Flush events can take a very long time to appear */
  31. #define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS
  32. /* Spurious parity errors in TSORT buffers */
  33. #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
  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 */
  43. #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A
  44. /* Leak overlength packets rather than free */
  45. #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
  46. #endif /* EFX_WORKAROUNDS_H */