0cec19c761
Add the logic required to enable the compression service for 4xxx devices. This allows to load the compression firmware image and report the appropriate compression capabilities. The firmware image selection for a given device is based on the 'ServicesEnabled' key stored in the internal configuration, which is added statically at the probe of the device according to the following rule, by default: - odd numbered devices assigned to compression services - even numbered devices assigned to crypto services In addition, restore the 'ServicesEnabled' key, if present, when SRIOV is enabled on the device. Signed-off-by: Tomasz Kowalik <tomaszx.kowalik@intel.com> Co-developed-by: Mateuszx Potrola <mateuszx.potrola@intel.com> Signed-off-by: Mateuszx Potrola <mateuszx.potrola@intel.com> Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Reviewed-by: Marco Chiappero <marco.chiappero@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
|
|
/* Copyright(c) 2014 - 2020 Intel Corporation */
|
|
#ifndef ADF_CFG_STRINGS_H_
|
|
#define ADF_CFG_STRINGS_H_
|
|
|
|
#define ADF_GENERAL_SEC "GENERAL"
|
|
#define ADF_KERNEL_SEC "KERNEL"
|
|
#define ADF_ACCEL_SEC "Accelerator"
|
|
#define ADF_NUM_CY "NumberCyInstances"
|
|
#define ADF_NUM_DC "NumberDcInstances"
|
|
#define ADF_RING_SYM_SIZE "NumConcurrentSymRequests"
|
|
#define ADF_RING_ASYM_SIZE "NumConcurrentAsymRequests"
|
|
#define ADF_RING_DC_SIZE "NumConcurrentRequests"
|
|
#define ADF_RING_ASYM_TX "RingAsymTx"
|
|
#define ADF_RING_SYM_TX "RingSymTx"
|
|
#define ADF_RING_ASYM_RX "RingAsymRx"
|
|
#define ADF_RING_SYM_RX "RingSymRx"
|
|
#define ADF_RING_DC_TX "RingTx"
|
|
#define ADF_RING_DC_RX "RingRx"
|
|
#define ADF_ETRMGR_BANK "Bank"
|
|
#define ADF_RING_SYM_BANK_NUM "BankSymNumber"
|
|
#define ADF_RING_ASYM_BANK_NUM "BankAsymNumber"
|
|
#define ADF_CY "Cy"
|
|
#define ADF_DC "Dc"
|
|
#define ADF_CFG_DC "dc"
|
|
#define ADF_CFG_CY "sym;asym"
|
|
#define ADF_SERVICES_ENABLED "ServicesEnabled"
|
|
#define ADF_ETRMGR_COALESCING_ENABLED "InterruptCoalescingEnabled"
|
|
#define ADF_ETRMGR_COALESCING_ENABLED_FORMAT \
|
|
ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_ENABLED
|
|
#define ADF_ETRMGR_COALESCE_TIMER "InterruptCoalescingTimerNs"
|
|
#define ADF_ETRMGR_COALESCE_TIMER_FORMAT \
|
|
ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCE_TIMER
|
|
#define ADF_ETRMGR_COALESCING_MSG_ENABLED "InterruptCoalescingNumResponses"
|
|
#define ADF_ETRMGR_COALESCING_MSG_ENABLED_FORMAT \
|
|
ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_MSG_ENABLED
|
|
#define ADF_ETRMGR_CORE_AFFINITY "CoreAffinity"
|
|
#define ADF_ETRMGR_CORE_AFFINITY_FORMAT \
|
|
ADF_ETRMGR_BANK "%d" ADF_ETRMGR_CORE_AFFINITY
|
|
#define ADF_ACCEL_STR "Accelerator%d"
|
|
#endif
|