]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: qat - configure arbiter mapping based on engines enabled
authorWojciech Ziemba <wojciech.ziemba@intel.com>
Mon, 4 Jan 2021 16:55:46 +0000 (16:55 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 14 Jan 2021 06:10:26 +0000 (17:10 +1100)
commit0db0d797abca574a3a4fa141a82ea44c270c2dd8
tree16790d5ead131b046a36d72b26959ca776328d93
parentd6cbf4eaa46794b173c691a71211d882398d7977
crypto: qat - configure arbiter mapping based on engines enabled

The hardware specific function adf_get_arbiter_mapping() modifies
the static array thrd_to_arb_map to disable mappings for AEs
that are disabled. This static array is used for each device
of the same type. If the ae mask is not identical for all devices
of the same type then the arbiter mapping returned by
adf_get_arbiter_mapping() may be wrong.

This patch fixes this problem by ensuring the static arbiter
mapping is unchanged and the device arbiter mapping is re-calculated
each time based on the static mapping.

Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c
drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c
drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c
drivers/crypto/qat/qat_common/adf_accel_devices.h
drivers/crypto/qat/qat_common/adf_hw_arbiter.c
drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c