Adam Guerin
2e513f6bc7
crypto: qat - enable dc chaining service
...
[ Upstream commit 37b14f2dfa ]
QAT GEN4 devices support chained compression operations. These
allow, with a single request to firmware, to hash then compress
data.
Extend the configuration to enable such mode. The cfg_services
operations in sysfs are extended to allow the string "dcc". When
selected, the driver downloads to the device both the symmetric
crypto and the compression firmware images and sends an admin message
to firmware which enables `chained` operations.
In addition, it sets the device's capabilities as the combination
of compression and symmetric crypto capabilities, while excluding
the ICP_ACCEL_CAPABILITIES_CRYPTO_SYMMETRIC bit to indicate
that in this mode, symmetric crypto instances are not supported.
When "dcc" is enabled, the device will handle compression requests
as if the "dc" configuration is loaded ("dcc" is a variation of "dc")
and the driver will register the acomp algorithms.
As for the other extended configurations, "dcc" is only available for
qat_4xxx devices and the chaining service will be only accessible from
user space.
Signed-off-by: Adam Guerin <adam.guerin@intel.com >
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
Stable-dep-of: a238487f79 ("crypto: qat - fix ring to service map for QAT GEN4")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-11-20 11:59:23 +01:00
..
2020-10-30 13:10:03 +01:00
2021-05-13 09:13:25 -06:00
2021-05-13 09:13:25 -06:00
2017-02-15 09:51:28 -05:00
2020-10-30 13:07:01 +01:00
2015-10-04 20:28:58 +01:00
2018-10-11 12:12:55 +02:00
2023-01-19 14:14:44 +01:00
2014-01-29 16:22:40 -08:00
2020-11-13 15:03:49 -07:00
2020-10-30 13:14:29 +01:00
2014-01-29 16:22:40 -08:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2022-07-23 13:03:48 +02:00
2020-10-30 13:14:29 +01:00
2023-07-26 06:38:14 +02:00
2014-01-29 16:22:40 -08:00
2014-01-29 16:22:40 -08:00
2014-01-29 16:22:40 -08:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2014-01-29 16:22:40 -08:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2015-12-20 19:40:45 -08:00
2022-01-26 14:10:40 +01:00
2017-06-19 09:22:47 +03:00
2022-01-31 14:26:18 +01:00
2023-03-29 08:51:26 +02:00
2020-10-30 13:14:29 +01:00
2022-08-24 02:37:07 +00:00
2023-04-23 12:08:39 -07:00
2023-05-09 11:54:42 +02:00
2023-01-06 17:51:42 -06:00
2021-05-13 09:13:25 -06:00
2023-08-18 11:28:40 -06:00
2023-07-20 22:16:23 +12:00
2020-10-30 13:07:01 +01:00
2022-04-15 16:34:29 +08:00
2022-04-15 16:34:29 +08:00
2022-04-15 16:34:29 +08:00
2019-11-21 20:10:44 -05:00
2011-10-24 16:52:39 +02:00
2021-04-09 14:54:23 -07:00
2012-03-27 20:54:52 +02:00
2020-10-30 13:14:29 +01:00
2023-01-04 14:44:13 -07:00
2023-01-20 11:41:11 +00:00
2023-01-20 14:11:38 +00:00
2023-07-14 15:24:57 +02:00
2021-04-09 14:54:23 -07:00
2020-10-30 13:14:29 +01:00
2021-08-13 13:18:15 +02:00
2020-10-30 13:07:01 +01:00
2018-01-16 14:15:35 -05:00
2021-09-28 12:45:42 +02:00
2020-10-30 13:14:29 +01:00
2023-08-01 08:17:25 -04:00
2018-08-10 22:12:32 +10:00
2020-11-13 15:02:19 -07:00
2020-11-13 15:02:19 -07:00
2020-11-13 15:02:19 -07:00
2023-08-18 11:28:40 -06:00
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2019-12-18 10:37:20 +01:00
2022-04-13 19:11:20 +02:00
2022-09-19 13:48:38 +02:00
2022-09-22 17:42:53 +02:00
2022-06-09 09:25:25 +09:00
2018-02-23 08:17:28 -07:00
2013-03-23 16:11:31 -07:00
2023-05-22 17:05:19 -04:00
2015-04-15 12:10:17 -04:00
2018-02-23 08:20:11 -07:00
2021-04-20 08:59:04 -06:00
2012-06-05 09:13:48 +02:00
2022-11-30 15:58:53 -08:00
2020-10-30 13:14:29 +01:00
2015-02-10 10:23:15 +00:00
2022-09-27 13:21:43 -06:00
2023-03-29 12:26:32 +02:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:31 +01:00
2020-10-30 13:14:31 +01:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2014-11-26 19:27:28 -08:00
2020-10-30 13:14:31 +01:00
2020-10-30 13:14:31 +01:00
2023-01-20 11:39:03 +00:00
2021-04-06 16:05:38 -06:00
2023-01-16 10:16:15 +00:00
2023-08-16 09:41:29 -04:00
2023-01-13 14:15:07 +01:00
2023-07-28 13:16:54 -06:00
2020-10-30 13:14:29 +01:00
2021-01-07 15:21:27 +01:00
2021-01-07 15:21:27 +01:00
2022-07-18 10:39:54 +10:00
2020-10-30 13:12:39 +01:00
2021-04-25 21:46:12 +05:30
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2023-08-16 23:54:49 +10:00
2023-02-03 11:06:08 +01:00
2021-07-02 15:58:40 +02:00
2022-09-27 13:21:43 -06:00
2021-05-13 09:13:25 -06:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:29 +01:00
2012-04-23 14:23:32 +03:00
2017-02-01 12:44:23 +01:00
2023-08-18 11:28:40 -06:00
2019-06-15 08:12:45 +02:00
2012-05-20 17:27:01 +02:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2023-07-23 13:16:18 +01:00
2020-09-03 19:40:56 +01:00
2014-08-07 11:44:45 +01:00
2022-11-23 19:52:55 +00:00
2020-03-08 17:28:33 +00:00
2022-02-21 19:33:05 +00:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2017-04-08 17:26:03 +01:00
2022-11-23 19:43:59 +00:00
2020-11-08 16:20:18 +00:00
2020-10-30 13:14:29 +01:00
2022-09-21 18:42:56 +01:00
2022-08-15 22:30:01 +01:00
2021-08-08 15:19:18 +01:00
2021-10-19 08:27:31 +01:00
2018-02-17 12:39:46 +00:00
2020-10-30 13:07:01 +01:00
2021-01-22 08:52:05 +00:00
2016-11-13 13:07:15 +00:00
2022-03-01 22:13:53 +00:00
2020-10-30 13:07:01 +01:00
2021-03-25 19:13:49 +00:00
2019-12-29 15:20:09 +00:00
2023-08-08 09:51:06 +01:00
2020-10-30 13:14:29 +01:00
2013-08-03 18:40:32 +01:00
2021-05-17 13:49:10 +01:00
2021-12-23 11:53:48 +00:00
2022-02-21 19:33:06 +00:00
2014-08-26 18:37:50 +01:00
2021-05-17 13:49:10 +01:00
2021-03-25 19:13:45 +00:00
2019-04-04 20:20:13 +01:00
2015-12-19 15:08:00 +00:00
2018-07-23 19:18:10 +01:00
2020-10-30 13:14:29 +01:00
2021-05-17 13:49:10 +01:00
2018-07-23 19:18:11 +01:00
2016-11-13 13:07:33 +00:00
2020-09-16 19:11:59 +01:00
2020-10-30 13:07:01 +01:00
2017-05-07 14:39:17 +01:00
2013-02-10 17:42:43 +00:00
2016-11-13 11:40:26 +00:00
2022-09-27 13:21:43 -06:00
2021-03-25 19:13:49 +00:00
2019-04-04 20:19:44 +01:00
2020-03-21 10:28:20 +00:00
2022-07-18 18:55:59 +01:00
2022-07-18 18:38:27 +01:00
2022-07-18 18:38:34 +01:00
2015-08-16 10:51:23 +01:00
2022-06-19 17:22:49 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2015-10-04 20:28:58 +01:00
2019-02-21 15:01:06 +02:00
2016-05-03 15:07:35 -07:00
2021-09-28 12:48:15 +02:00
2011-03-22 04:53:09 -03:00
2020-08-18 15:44:43 +02:00
2017-10-30 11:46:04 +01:00
2020-10-30 13:12:39 +01:00
2021-04-09 14:54:23 -07:00
2023-08-18 11:28:40 -06:00
2023-07-21 14:44:47 -06:00
2020-07-10 09:41:48 +02:00
2023-08-18 11:28:40 -06:00
2022-11-09 11:29:21 -07:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:14:29 +01:00
2019-06-15 08:12:45 +02:00
2021-03-28 14:57:11 +02:00
2020-10-30 13:14:29 +01:00
2015-05-06 08:03:19 +02:00
2023-03-23 17:25:22 +01:00
2022-02-09 08:04:44 +01:00
2021-09-28 12:48:16 +02:00
2023-03-10 09:47:16 +01:00
2021-10-22 09:54:32 +10:30
2022-07-08 14:53:50 +02:00
2021-09-21 18:31:15 +02:00
2020-10-30 13:14:29 +01:00
2018-04-25 16:59:53 -07:00
2020-10-30 13:14:29 +01:00
2021-10-01 10:06:01 +05:30
2021-10-01 10:06:01 +05:30
2022-11-21 15:37:15 +02:00
2022-07-02 11:11:21 +02:00
2023-08-08 08:13:22 +03:00
2018-07-02 17:42:36 +02:00
2023-08-09 14:17:32 +02:00
2020-10-30 13:07:01 +01:00
2017-08-28 11:43:39 +02:00
2022-01-14 18:50:52 -05:00
2020-10-30 13:07:01 +01:00
2018-09-12 09:46:46 +02:00
2020-10-30 13:14:52 +01:00
2012-04-01 14:33:40 -07:00
2023-08-18 11:28:40 -06:00
2021-05-20 13:44:14 -06:00
2020-10-30 13:14:29 +01:00
2018-02-23 08:20:57 -07:00
2022-11-30 15:59:06 -08:00
2018-03-21 09:26:07 -06:00
2020-10-30 13:14:29 +01:00
2019-02-01 08:09:27 +00:00
2019-02-01 08:09:27 +00:00
2023-08-18 11:28:40 -06:00
2021-04-08 13:14:51 +09:00
2021-09-21 18:31:15 +02:00
2021-01-21 20:12:40 +01:00
2021-10-05 16:25:22 +02:00
2021-09-14 23:38:58 -04:00
2020-10-26 18:06:45 -04:00
2020-10-26 18:06:45 -04:00
2023-10-05 11:20:54 +02:00
2023-07-10 14:41:27 +02:00
2016-11-10 17:03:35 +01:00
2020-10-30 13:14:29 +01:00
2018-07-15 13:55:44 +02:00
2021-09-21 18:31:16 +02:00
2023-02-03 07:30:09 -08:00
2020-11-04 11:14:38 +00:00
2014-07-04 12:35:59 +02:00
2014-07-04 12:35:59 +02:00
2014-07-04 12:35:59 +02:00
2023-08-17 09:00:34 +01:00
2023-06-01 19:46:35 +01:00
2020-10-30 13:14:29 +01:00
2021-04-09 14:54:23 -07:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:48 +01:00
2023-08-22 11:02:29 -07:00
2016-08-29 15:06:32 +02:00
2021-05-20 13:44:14 -06:00
2021-01-15 10:22:26 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2021-09-21 18:31:16 +02:00
2021-09-21 18:31:16 +02:00
2023-08-18 11:28:40 -06:00
2021-09-21 18:31:16 +02:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:14:29 +01:00
2021-01-29 21:24:39 -08:00
2012-11-15 20:47:26 +01:00
2015-05-06 08:03:20 +02:00
2023-02-02 17:39:25 +01:00
2021-03-11 12:47:27 -08:00
2023-07-03 09:25:50 +01:00
2023-08-18 11:28:40 -06:00
2019-10-29 17:38:39 -07:00
2020-10-30 13:12:39 +01:00
2023-01-04 14:44:13 -07:00
2023-02-25 01:16:50 +01:00
2021-01-13 00:46:34 +01:00
2020-10-30 13:14:29 +01:00
2023-02-03 17:09:42 +01:00
2023-02-03 14:39:20 +01:00
2021-04-08 14:30:28 +02:00
2020-10-30 13:14:29 +01:00
2023-08-18 11:28:40 -06:00
2019-07-15 20:44:49 -07:00
2022-07-14 16:46:53 +02:00
2021-09-21 18:31:17 +02:00
2021-09-21 18:31:17 +02:00
2021-09-21 18:31:17 +02:00
2022-05-04 15:31:26 +01:00
2023-08-18 11:28:40 -06:00
2021-04-20 08:59:04 -06:00
2020-12-04 09:41:10 -07:00
2018-03-17 14:20:54 +01:00
2020-10-30 13:14:29 +01:00
2022-07-28 16:32:33 +02:00
2022-07-28 16:32:33 +02:00
2020-10-30 13:07:01 +01:00
2015-06-02 08:03:25 -07:00
2021-06-11 12:23:10 +02:00
2016-05-03 14:59:30 -07:00
2015-10-04 20:28:58 +01:00
2019-07-15 11:03:02 -03:00
2023-08-18 11:28:40 -06:00
2022-06-12 06:49:47 +02:00
2023-02-15 19:03:47 +01:00
2018-03-22 13:40:10 +01:00
2022-06-27 16:42:52 +02:00
2019-08-21 00:20:40 +02:00
2023-02-18 15:11:40 +01:00
2015-06-25 17:00:36 -07:00
2020-10-30 13:14:29 +01:00
2012-02-15 14:48:01 -08:00
2021-01-21 20:12:40 +01:00
2018-01-23 09:47:05 +01:00
2018-05-10 07:27:15 -04:00
2012-10-06 15:52:16 -04:00
2023-06-21 11:52:09 +01:00
2013-03-21 22:45:15 +01:00
2022-11-24 11:09:24 +01:00
2023-08-24 16:25:14 -07:00
2011-03-15 13:48:01 -04:00
2023-08-18 11:28:40 -06:00
2022-04-27 09:51:57 +02:00
2020-10-30 13:14:29 +01:00
2022-07-28 16:32:33 +02:00
2020-10-30 13:07:01 +01:00
2021-09-21 18:31:17 +02:00
2020-10-30 13:14:29 +01:00
2023-08-08 12:36:31 +00:00
2020-10-30 13:07:01 +01:00
2022-07-20 21:03:26 -07:00
2020-10-30 13:12:39 +01:00
2018-03-21 09:35:01 -06:00
2022-07-28 16:32:33 +02:00
2013-01-25 21:51:32 +01:00
2013-01-25 21:51:32 +01:00
2013-01-25 21:51:32 +01:00
2013-01-25 21:51:32 +01:00
2013-04-11 22:41:48 +02:00
2013-01-24 12:49:59 +01:00
2013-01-24 12:49:59 +01:00
2021-09-28 12:45:22 +02:00
2013-01-24 12:50:09 +01:00
2022-07-14 16:46:55 +02:00
2018-11-26 18:19:11 +01:00
2023-03-10 09:06:22 +01:00
2013-06-21 00:13:15 +02:00
2021-01-21 20:12:40 +01:00
2023-08-29 14:53:51 -07:00
2020-10-30 13:07:01 +01:00
2012-07-19 15:51:39 -04:00
2022-09-21 14:15:11 -06:00
2020-07-10 15:24:56 +02:00
2021-02-23 10:07:11 -06:00
2019-06-15 08:12:45 +02:00
2022-02-08 09:52:41 +01:00
2022-06-06 12:16:59 -05:00
2023-07-20 22:13:16 +12:00
2023-08-10 11:10:56 +08:00
2023-05-29 15:55:16 +01:00
2018-03-14 19:11:00 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2023-01-26 11:52:14 +02:00
2019-06-14 18:17:11 +02:00
2015-09-30 21:28:10 +02:00
2020-10-30 13:14:29 +01:00
2018-03-06 15:17:55 +01:00
2020-10-30 13:07:01 +01:00
2011-11-23 14:50:38 +01:00
2020-10-30 13:14:29 +01:00
2016-04-28 07:51:59 -06:00
2020-10-30 13:14:29 +01:00
2013-01-31 16:39:32 +01:00
2020-10-30 13:14:29 +01:00
2015-01-08 13:53:51 -08:00
2021-02-22 21:22:15 -08:00
2021-03-07 21:56:50 -08:00
2021-08-20 12:09:41 +02:00
2022-11-21 10:55:35 +01:00
2023-04-03 13:28:49 -04:00
2023-01-27 10:47:11 +00:00
2023-10-24 19:32:39 +02:00
2013-07-10 15:42:48 -04:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00
2019-06-15 08:12:45 +02:00
2023-11-20 11:59:23 +01:00
2020-10-30 13:07:01 +01:00
2019-06-15 08:12:45 +02:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2020-10-30 13:07:01 +01:00
2023-01-06 16:36:03 +01:00
2023-01-20 12:06:26 +01:00
2019-04-25 11:03:53 +02:00
2023-09-02 08:25:19 +01:00
2020-10-30 13:14:29 +01:00
2020-11-12 08:50:13 +01:00
2020-10-30 13:07:01 +01:00
2021-04-05 13:15:52 +02:00
2022-08-12 12:13:51 +02:00
2022-08-12 12:13:54 +02:00
2023-01-20 13:09:30 +01:00
2023-03-09 17:33:19 +01:00
2023-08-18 11:28:40 -06:00
2020-10-30 13:07:01 +01:00
2015-06-25 09:06:56 +02:00
2019-08-08 11:10:25 +03:00
2021-09-21 18:31:17 +02:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:07:01 +01:00
2020-10-27 12:46:35 +01:00
2011-04-29 18:09:34 -07:00
2021-06-24 16:24:51 +02:00
2017-06-30 09:16:51 -05:00
2017-08-10 22:39:53 +10:00
2017-08-10 22:40:01 +10:00
2020-04-01 14:30:50 +11:00
2022-03-08 00:05:00 +11:00
2022-07-20 15:01:43 -06:00
2023-08-18 11:28:40 -06:00
2021-04-09 14:54:23 -07:00
2023-02-15 08:11:27 +08:00
2020-11-13 15:03:49 -07:00
2023-08-18 14:28:26 -07:00
2014-08-08 15:57:21 -07:00
2021-12-23 20:23:42 +01:00
2021-03-15 08:50:40 -07:00
2020-10-30 13:07:01 +01:00
2016-05-16 11:14:29 -04:00
2023-01-20 14:30:45 +01:00
2020-10-30 13:07:01 +01:00
2020-11-10 15:25:53 -08:00
2022-11-10 19:07:31 +01:00
2021-07-20 11:06:59 +02:00
2020-02-19 22:46:07 +11:00
2019-06-14 18:17:11 +02:00
2023-03-22 15:45:17 +01:00
2018-02-28 18:07:20 +01:00
2022-09-23 16:06:18 +02:00
2021-05-05 11:27:24 -07:00
2023-08-30 20:05:42 -07:00
2020-10-30 13:07:01 +01:00
2023-04-21 14:52:03 -07:00
2022-10-28 13:37:22 -07:00
2021-09-03 09:58:16 -07:00
2017-10-13 16:18:33 -07:00
2022-12-01 08:50:38 -08:00
2020-12-15 22:46:19 -08:00
2022-06-27 12:52:53 -07:00
2019-06-14 18:17:11 +02:00
2022-12-14 14:37:59 -08:00
2022-02-23 11:09:25 +01:00
2023-08-18 11:28:40 -06:00
2023-07-27 07:53:12 +02:00
2023-07-08 09:29:29 -07:00
2021-08-16 18:32:02 +02:00
2020-10-30 13:07:01 +01:00
2023-07-12 17:17:44 +02:00
2020-10-30 13:07:01 +01:00
2014-05-24 00:58:44 +02:00
2022-08-18 09:11:45 +03:00
2022-09-27 13:21:44 -06:00
2020-06-18 10:40:56 +02:00
2023-08-18 11:28:40 -06:00
2021-10-11 14:52:02 +02:00
2021-08-13 13:18:15 +02:00
2023-05-09 11:54:42 +02:00
2023-08-18 11:28:40 -06:00
2019-09-03 19:35:41 -07:00
2021-09-28 12:45:21 +02:00
2020-10-30 13:07:01 +01:00
2023-08-07 00:01:41 +05:30
2023-08-07 00:01:41 +05:30
2020-10-30 13:14:29 +01:00
2021-02-04 10:21:50 +01:00
2023-03-27 16:10:20 +02:00
2021-10-11 14:52:02 +02:00
2020-10-30 13:12:39 +01:00
2021-08-13 13:18:15 +02:00
2023-08-18 11:28:40 -06:00
2022-02-23 11:36:24 +01:00
2023-08-23 17:31:27 +02:00
2013-02-24 14:49:53 -08:00
2020-10-30 13:14:29 +01:00
2023-07-19 23:15:21 +02:00
2020-11-13 15:03:49 -07:00
2023-08-18 11:28:40 -06:00
2013-12-06 14:46:32 -06:00
2014-07-16 21:17:41 +02:00
2015-06-01 16:08:24 +05:30
2020-10-30 13:07:01 +01:00
2020-10-30 13:12:39 +01:00
2023-04-20 19:06:12 +02:00
2020-10-30 13:14:29 +01:00
2021-09-21 18:31:17 +02:00
2023-02-13 22:34:33 +11:00
2022-03-11 11:54:45 +00:00
2021-09-21 18:31:15 +02:00
2020-10-30 13:07:02 +01:00
2020-10-30 13:14:29 +01:00
2020-10-30 13:14:29 +01:00