On Tue, Jan 18, 2022 at 10:35:15AM +0000, Giovanni Cabiddu wrote: > The logic that detects, enables and disables pfvf interrupts was > expecting a single CSR per VF. Instead, the source and mask register are > two registers with a bit per VF. > Due to this, the driver is reading and setting reserved CSRs and not > masking the correct source of interrupts. > > Fix the access to the source and mask register for QAT GEN4 devices by > removing the outer loop in adf_gen4_get_vf2pf_sources(), > adf_gen4_enable_vf2pf_interrupts() and > adf_gen4_disable_vf2pf_interrupts() and changing the helper macros > ADF_4XXX_VM2PF_SOU and ADF_4XXX_VM2PF_MSK. > > Fixes: a9dc0d966605 ("crypto: qat - add PFVF support to the GEN4 host driver") > Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx> > Co-developed-by: Siming Wan <siming.wan@xxxxxxxxx> > Signed-off-by: Siming Wan <siming.wan@xxxxxxxxx> > Reviewed-by: Xin Zeng <xin.zeng@xxxxxxxxx> > Reviewed-by: Wojciech Ziemba <wojciech.ziemba@xxxxxxxxx> > Reviewed-by: Marco Chiappero <marco.chiappero@xxxxxxxxx> > --- > drivers/crypto/qat/qat_common/adf_gen4_pfvf.c | 42 ++++--------------- > 1 file changed, 9 insertions(+), 33 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