Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - fix VF IDs in PFVF log messages

PFVF debug messages use a mix of zero and one based VF IDs.
Switch to zero based VF numbers in all log messages.

Signed-off-by: Marco Chiappero <marco.chiappero@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>

authored by

Marco Chiappero and committed by
Herbert Xu
1d9a915f e669b4de

+6 -6
+1 -1
drivers/crypto/qat/qat_common/adf_isr.c
··· 123 123 if (!__ratelimit(&vf_info->vf2pf_ratelimit)) { 124 124 dev_info(&GET_DEV(accel_dev), 125 125 "Too many ints from VF%d\n", 126 - vf_info->vf_nr + 1); 126 + vf_info->vf_nr); 127 127 continue; 128 128 } 129 129
+5 -5
drivers/crypto/qat/qat_common/adf_pfvf_pf_proto.c
··· 50 50 51 51 dev_dbg(&GET_DEV(accel_dev), 52 52 "Compatibility Version Request from VF%d vers=%u\n", 53 - vf_nr + 1, vf_compat_ver); 53 + vf_nr, vf_compat_ver); 54 54 55 55 if (vf_compat_ver <= ADF_PFVF_COMPAT_THIS_VERSION) { 56 56 compat = ADF_PF2VF_VF_COMPATIBLE; ··· 78 78 79 79 dev_dbg(&GET_DEV(accel_dev), 80 80 "Legacy VersionRequest received from VF%d 0x%x\n", 81 - vf_nr + 1, msg); 81 + vf_nr, msg); 82 82 83 83 /* PF always newer than legacy VF */ 84 84 compat = ADF_PF2VF_VF_COMPATIBLE; ··· 96 96 { 97 97 dev_dbg(&GET_DEV(accel_dev), 98 98 "Init message received from VF%d 0x%x\n", 99 - vf_nr + 1, msg); 99 + vf_nr, msg); 100 100 vf_info->init = true; 101 101 } 102 102 break; ··· 104 104 { 105 105 dev_dbg(&GET_DEV(accel_dev), 106 106 "Shutdown message received from VF%d 0x%x\n", 107 - vf_nr + 1, msg); 107 + vf_nr, msg); 108 108 vf_info->init = false; 109 109 } 110 110 break; 111 111 default: 112 112 dev_dbg(&GET_DEV(accel_dev), "Unknown message from VF%d (0x%x)\n", 113 - vf_nr + 1, msg); 113 + vf_nr, msg); 114 114 return -ENOMSG; 115 115 } 116 116