crypto: qat - fix ring to service map for dcc in 420xx
authorDamian Muszynski <damian.muszynski@intel.com>
Fri, 16 Feb 2024 17:21:55 +0000 (18:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Feb 2024 00:41:20 +0000 (08:41 +0800)
commita20a6060e0dd57fecaf55487985aef28bd08c6bf
treee233fe7d9ad7abc8d42e23e77e1a52ebde615ac2
parentdf018f82002a8b4dc407bc9a6f416b9241d14415
crypto: qat - fix ring to service map for dcc in 420xx

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: fcf60f4bcf54 ("crypto: qat - add support for 420xx devices")
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_420xx/adf_420xx_hw_data.c