workarounds.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #define EFX_WORKAROUND_10G(efx) EFX_IS10G(efx)
  18. #define EFX_WORKAROUND_SFT9001(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A || \
  19. (efx)->phy_type == PHY_TYPE_SFT9001B)
  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 pkt parser problem with <= 16 byte TXes */
  27. #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
  28. /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
  29. * or a PCIe error (bug 11028) */
  30. #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
  31. /* Transmit flow control may get disabled */
  32. #define EFX_WORKAROUND_11482 EFX_WORKAROUND_ALWAYS
  33. /* Flush events can take a very long time to appear */
  34. #define EFX_WORKAROUND_11557 EFX_WORKAROUND_ALWAYS
  35. /* Truncated IPv4 packets can confuse the TX packet parser */
  36. #define EFX_WORKAROUND_15592 EFX_WORKAROUND_ALWAYS
  37. /* Spurious parity errors in TSORT buffers */
  38. #define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
  39. /* iSCSI parsing errors */
  40. #define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
  41. /* RX events go missing */
  42. #define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
  43. /* RX_RESET on A1 */
  44. #define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
  45. /* Increase filter depth to avoid RX_RESET */
  46. #define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
  47. /* Flushes may never complete */
  48. #define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_A
  49. /* Leak overlength packets rather than free */
  50. #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
  51. /* Need to send XNP pages for 100BaseT */
  52. #define EFX_WORKAROUND_13204 EFX_WORKAROUND_SFT9001
  53. /* Don't restart AN in near-side loopback */
  54. #define EFX_WORKAROUND_15195 EFX_WORKAROUND_SFT9001
  55. #endif /* EFX_WORKAROUNDS_H */