From 72608054bfc3d84fdbb8112af6c8621ed02abbc9 Mon Sep 17 00:00:00 2001 From: Andy Moreton Date: Thu, 24 Sep 2020 13:12:29 +0100 Subject: [PATCH] common/sfc_efx/base: add option for extended width events EF100 uses event queues with 256bit extended width events to support descriptor proxy queues. Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/efx_check.h | 7 +++++++ drivers/common/sfc_efx/efsys.h | 1 + 2 files changed, 8 insertions(+) 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 -- 2.20.1