linux-yocto/drivers/crypto
Giovanni Cabiddu 075d3edd72 crypto: qat - fix ring to service map for QAT GEN4
commit a238487f79 upstream.

The 4xxx drivers hardcode the ring to service mapping. However, when
additional configurations where added to the driver, the mappings were
not updated. This implies that an incorrect mapping might be reported
through pfvf for certain configurations.

Add an algorithm that computes the correct ring to service mapping based
on the firmware loaded on the device.

Fixes: 0cec19c761 ("crypto: qat - add support for compression for 4xxx")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Reviewed-by: Tero Kristo <tero.kristo@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[Giovanni: backport to 6.1.y, conflict resolved simplifying the logic
in the function get_ring_to_svc_map() as the QAT driver in v6.1 supports
only limited configurations (crypto only and compression).  Differs from
upstream as the ring to service mapping is hardcoded rather than being
dynamically computed.]
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Tested-by: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:26:12 +02:00
..
allwinner crypto: sun8i-ce - fix nents passed to dma_unmap_sg() 2025-08-15 12:05:01 +02:00
amcc
amlogic
aspeed
axis
bcm crypto: bcm - add error check in the ahash_hmac_init function 2024-12-14 19:53:18 +01:00
caam crypto: caam/qi - Fix drv_ctx refcount bug 2025-04-25 10:43:53 +02:00
cavium crypto: cavium - Fix an error handling path in cpt_ucode_load_fw() 2024-12-14 19:53:18 +01:00
ccp crypto: ccp - Fix crash when rebind ccp device for ccp.ko 2025-08-15 12:05:02 +02:00
ccree
chelsio
gemini
hisilicon crypto: hisilicon/hpre - fix dma unmap sequence 2025-08-28 16:25:59 +02:00
inside-secure crypto: inside-secure - Fix dma_unmap_sg() nents value 2025-08-15 12:05:02 +02:00
keembay crypto: keembay - Fix dma_unmap_sg() nents value 2025-08-15 12:05:04 +02:00
marvell crypto: octeontx2 - add timeout for load_fvc completion poll 2025-08-28 16:26:01 +02:00
nx crypto: nx - Fix uninitialised hv_nxc on error 2025-04-10 14:33:35 +02:00
qat crypto: qat - fix ring to service map for QAT GEN4 2025-08-28 16:26:12 +02:00
qce crypto: qce - unregister previously registered algos in error path 2025-02-21 13:49:49 +01:00
rockchip
stm32
ux500
virtio
vmx powerpc/64: Add big-endian ELFv2 flavour to crypto VMX asm generation 2024-10-22 15:56:51 +02:00
xilinx
atmel-aes-regs.h
atmel-aes.c
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c
atmel-sha204a.c crypto: atmel-sha204a - Set hwrng quality to lowest possible 2025-05-02 07:47:08 +02:00
atmel-tdes-regs.h
atmel-tdes.c
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c crypto: img-hash - Fix dma_unmap_sg() nents value 2025-08-15 12:05:04 +02:00
ixp4xx_crypto.c crypto: ixp4xx - fix OF node reference leaks in init_ixp_crypto() 2025-02-21 13:49:08 +01:00
Kconfig
Makefile
mxs-dcp.c
n2_asm.S
n2_core.c
n2_core.h
omap-aes-gcm.c
omap-aes.c
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c
omap-sham.c
padlock-aes.c
padlock-sha.c
qcom-rng.c
s5p-sss.c
sa2ul.c
sa2ul.h
sahara.c
talitos.c
talitos.h