On Fri, Dec 22, 2023 at 02:15:35PM +0100, Damian Muszynski wrote: > The thread-to-arbiter mapping describes which arbiter can assign jobs > to an acceleration engine thread. > The existing mappings are functionally correct, but hardcoded and not > optimized. > > Replace the static mappings with an algorithm that generates optimal > mappings, based on the loaded configuration. > > The logic has been made common so that it can be shared between all > QAT GEN4 devices. > > Signed-off-by: Damian Muszynski <damian.muszynski@xxxxxxxxx> > Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx> > --- > .../intel/qat/qat_420xx/adf_420xx_hw_data.c | 131 +++++++----------- > .../intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 110 ++++++++++----- > .../intel/qat/qat_common/adf_accel_devices.h | 4 + > .../intel/qat/qat_common/adf_gen4_hw_data.c | 90 ++++++++++++ > .../intel/qat/qat_common/adf_gen4_hw_data.h | 12 ++ > 5 files changed, 235 insertions(+), 112 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