workarounds.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
  16. #define EFX_WORKAROUND_EF10(efx) (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
  17. #define EFX_WORKAROUND_10G(efx) 1
  18. /* Bit-bashed I2C reads cause performance drop */
  19. #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
  20. /* Legacy interrupt storm when interrupt fifo fills */
  21. #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
  22. /* Lockup when writing event block registers at gen2/gen3 */
  23. #define EFX_EF10_WORKAROUND_35388(efx) \
  24. (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388)
  25. #define EFX_WORKAROUND_35388(efx) \
  26. (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx))
  27. /* Moderation timer access must go through MCDI */
  28. #define EFX_EF10_WORKAROUND_61265(efx) \
  29. (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
  30. #endif /* EFX_WORKAROUNDS_H */