[v3,54/60] common/sfc_efx/base: add option for extended width events
diff mbox series

Message ID 1600949555-28043-55-git-send-email-arybchenko@solarflare.com
State Accepted
Delegated to: Ferruh Yigit
Headers show
Series
  • common/sfc_efx: support Riverhead NIC family
Related show

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Andrew Rybchenko Sept. 24, 2020, 12:12 p.m. UTC
From: Andy Moreton <amoreton@xilinx.com>

EF100 uses event queues with 256bit extended width events to
support descriptor proxy queues.

Signed-off-by: Andy Moreton <amoreton@xilinx.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
 drivers/common/sfc_efx/base/efx_check.h | 7 +++++++
 drivers/common/sfc_efx/efsys.h          | 1 +
 2 files changed, 8 insertions(+)

Patch
diff mbox series

diff --git a/drivers/common/sfc_efx/base/efx_check.h b/drivers/common/sfc_efx/base/efx_check.h
index f9f97946e5..40ba57be6f 100644
--- a/drivers/common/sfc_efx/base/efx_check.h
+++ b/drivers/common/sfc_efx/base/efx_check.h
@@ -384,4 +384,11 @@ 
 # endif
 #endif /* EFSYS_OPT_PCI */
 
+/* Support extended width event queues */
+#if EFSYS_OPT_EV_EXTENDED_WIDTH
+# if !EFSYS_OPT_RIVERHEAD
+#  error "EV_EXTENDED_WIDTH requires RIVERHEAD"
+# endif
+#endif /* EFSYS_OPT_EV_EXTENDED_WIDTH */
+
 #endif /* _SYS_EFX_CHECK_H */
diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h
index de1c1c38e3..f74b703cda 100644
--- a/drivers/common/sfc_efx/efsys.h
+++ b/drivers/common/sfc_efx/efsys.h
@@ -142,6 +142,7 @@  prefetch_read_once(const volatile void *addr)
 #define EFSYS_OPT_FILTER 1
 #define EFSYS_OPT_RX_SCATTER 0
 
+#define EFSYS_OPT_EV_EXTENDED_WIDTH 0
 #define EFSYS_OPT_EV_PREFETCH 0
 
 #define EFSYS_OPT_DECODE_INTR_FATAL 0