workarounds.h 945 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /****************************************************************************
  3. * Driver for Solarflare network controllers and boards
  4. * Copyright 2006-2013 Solarflare Communications Inc.
  5. */
  6. #ifndef EFX_WORKAROUNDS_H
  7. #define EFX_WORKAROUNDS_H
  8. /*
  9. * Hardware workarounds.
  10. * Bug numbers are from Solarflare's Bugzilla.
  11. */
  12. #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
  13. #define EFX_WORKAROUND_EF10(efx) (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
  14. #define EFX_WORKAROUND_10G(efx) 1
  15. /* Bit-bashed I2C reads cause performance drop */
  16. #define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
  17. /* Legacy interrupt storm when interrupt fifo fills */
  18. #define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
  19. /* Moderation timer access must go through MCDI */
  20. #define EFX_EF10_WORKAROUND_61265(efx) \
  21. (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
  22. #endif /* EFX_WORKAROUNDS_H */