]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: qat - fix ring to service map for dcc in 4xxx
authorDamian Muszynski <damian.muszynski@intel.com>
Fri, 16 Feb 2024 17:21:54 +0000 (18:21 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:51 +0000 (18:19 -0400)
commit7c5001d9d8e453ff83021ef6e69f3488bf80e940
tree25cc04557c428bf6722721e6abdd705457fb99bf
parent9ca3af17808d7886886631791c1994f5377cd05e
crypto: qat - fix ring to service map for dcc in 4xxx

[ Upstream commit df018f82002a8b4dc407bc9a6f416b9241d14415 ]

If a device is configured for data compression chaining (dcc), half of the
engines are loaded with the symmetric crypto image and the rest are loaded
with the compression image.
However, in such configuration all rings can handle compression requests.

Fix the ring to service mapping so that when a device is configured for
dcc, the ring to service mapping reports that all rings in a bank can
be used for compression.

Fixes: a238487f7965 ("crypto: qat - fix ring to service map for QAT GEN4")
Signed-off-by: Damian Muszynski <damian.muszynski@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c