2020-05-27 16:21:28 +01:00
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
/* Copyright(c) 2014 - 2020 Intel Corporation */
2014-06-05 13:42:39 -07:00
# 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"
2015-03-19 16:03:39 -07:00
# define ADF_RING_SYM_RX "RingSymRx"
2014-06-05 13:42:39 -07:00
# define ADF_RING_DC_TX "RingTx"
# define ADF_RING_DC_RX "RingRx"
# define ADF_ETRMGR_BANK "Bank"
2020-10-12 21:38:46 +01:00
# define ADF_RING_SYM_BANK_NUM "BankSymNumber"
# define ADF_RING_ASYM_BANK_NUM "BankAsymNumber"
2022-11-28 12:21:20 +00:00
# define ADF_RING_DC_BANK_NUM "BankDcNumber"
2014-06-05 13:42:39 -07:00
# define ADF_CY "Cy"
# define ADF_DC "Dc"
2021-12-16 09:13:34 +00:00
# define ADF_CFG_DC "dc"
# define ADF_CFG_CY "sym;asym"
crypto: qat - extend configuration for 4xxx
A QAT GEN4 device can be currently configured for crypto (sym;asym) or
compression (dc).
This patch extends the configuration to support more variations of these
services, download the correct FW images on the device and report the
correct capabilities on the device based on the configured service.
The device can now be configured with the following services:
"sym", "asym", "dc", "sym;asym", "asym;sym", "sym;dc", "dc;sym",
"asym;dc", "dc;asym".
With this change, the configuration "sym", "asym", "sym;dc", "dc;sym",
"asym;dc", "dc;asym" will be accessible only via userspace, i.e. the driver
for those configurations will not register into the crypto framework.
Support for such configurations in kernel will be enabled in a later
patch.
The pairs "sym;asym" and "asym;sym" result in identical device config.
As do "sym;dc", "dc;sym", and "asym;dc", "dc;asym".
Signed-off-by: Adam Guerin <adam.guerin@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-06-09 17:38:22 +01:00
# define ADF_CFG_SYM "sym"
# define ADF_CFG_ASYM "asym"
# define ADF_CFG_ASYM_SYM "asym;sym"
# define ADF_CFG_ASYM_DC "asym;dc"
# define ADF_CFG_DC_ASYM "dc;asym"
# define ADF_CFG_SYM_DC "sym;dc"
# define ADF_CFG_DC_SYM "dc;sym"
2021-12-16 09:13:34 +00:00
# define ADF_SERVICES_ENABLED "ServicesEnabled"
2023-06-09 19:06:14 +02:00
# define ADF_PM_IDLE_SUPPORT "PmIdleSupport"
2014-06-05 13:42:39 -07:00
# define ADF_ETRMGR_COALESCING_ENABLED "InterruptCoalescingEnabled"
# define ADF_ETRMGR_COALESCING_ENABLED_FORMAT \
2015-03-31 09:30:40 -07:00
ADF_ETRMGR_BANK " %d " ADF_ETRMGR_COALESCING_ENABLED
2014-06-05 13:42:39 -07:00
# define ADF_ETRMGR_COALESCE_TIMER "InterruptCoalescingTimerNs"
# define ADF_ETRMGR_COALESCE_TIMER_FORMAT \
2015-03-31 09:30:40 -07:00
ADF_ETRMGR_BANK " %d " ADF_ETRMGR_COALESCE_TIMER
2014-06-05 13:42:39 -07:00
# define ADF_ETRMGR_COALESCING_MSG_ENABLED "InterruptCoalescingNumResponses"
# define ADF_ETRMGR_COALESCING_MSG_ENABLED_FORMAT \
2015-03-31 09:30:40 -07:00
ADF_ETRMGR_BANK " %d " ADF_ETRMGR_COALESCING_MSG_ENABLED
2014-06-05 13:42:39 -07:00
# define ADF_ETRMGR_CORE_AFFINITY "CoreAffinity"
# define ADF_ETRMGR_CORE_AFFINITY_FORMAT \
2015-03-31 09:30:40 -07:00
ADF_ETRMGR_BANK " %d " ADF_ETRMGR_CORE_AFFINITY
2014-06-05 13:42:39 -07:00
# define ADF_ACCEL_STR "Accelerator%d"
# endif