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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Feb 2024 00:41:20 +0000 (08:41 +0800)
commitdf018f82002a8b4dc407bc9a6f416b9241d14415
treeb124dc8d6f9df47ff7e070adc39ac8d70b82e737
parentbca79b9f5639b2fd4692904bce696291336e0246
crypto: qat - fix ring to service map for dcc in 4xxx

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>
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c