On Mon, Jan 04, 2021 at 04:55:46PM +0000, Giovanni Cabiddu wrote: > From: Wojciech Ziemba <wojciech.ziemba@xxxxxxxxx> > > 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@xxxxxxxxx> > Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx> > Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx> > --- > .../crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 14 ++-------- > .../crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c | 17 +++-------- > .../crypto/qat/qat_c62x/adf_c62x_hw_data.c | 27 ++++-------------- > .../crypto/qat/qat_common/adf_accel_devices.h | 3 +- > .../crypto/qat/qat_common/adf_hw_arbiter.c | 8 ++---- > .../qat/qat_dh895xcc/adf_dh895xcc_hw_data.c | 28 +++---------------- > 6 files changed, 20 insertions(+), 77 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt