lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <202505071416.T1HY7g1G-lkp@intel.com> Date: Wed, 7 May 2025 14:42:50 +0800 From: kernel test robot <lkp@...el.com> To: Tanmay Jagdale <tanmay@...vell.com>, bbrezillon@...nel.org, arno@...isbad.org, schalla@...vell.com, herbert@...dor.apana.org.au, davem@...emloft.net, sgoutham@...vell.com, lcherian@...vell.com, gakula@...vell.com, jerinj@...vell.com, hkelam@...vell.com, sbhatta@...vell.com, andrew+netdev@...n.ch, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, bbhushan2@...vell.com, bhelgaas@...gle.com, pstanner@...hat.com, gregkh@...uxfoundation.org, peterz@...radead.org, linux@...blig.org, krzysztof.kozlowski@...aro.org, giovanni.cabiddu@...el.com Cc: oe-kbuild-all@...ts.linux.dev, linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org, netdev@...r.kernel.org, rkannoth@...vell.com, sumang@...vell.com, gcherian@...vell.com, Tanmay Jagdale <tanmay@...vell.com> Subject: Re: [net-next PATCH v1 15/15] octeontx2-pf: ipsec: Add XFRM state and policy hooks for inbound flows Hi Tanmay, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Tanmay-Jagdale/crypto-octeontx2-Share-engine-group-info-with-AF-driver/20250502-213203 base: net-next/main patch link: https://lore.kernel.org/r/20250502132005.611698-16-tanmay%40marvell.com patch subject: [net-next PATCH v1 15/15] octeontx2-pf: ipsec: Add XFRM state and policy hooks for inbound flows config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250507/202505071416.T1HY7g1G-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071416.T1HY7g1G-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@...el.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505071416.T1HY7g1G-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c: In function 'cn10k_ipsec_npa_refill_inb_ipsecq': drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:868:27: warning: variable 'qset' set but not used [-Wunused-but-set-variable] 868 | struct otx2_qset *qset = NULL; | ^~~~ drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c: In function 'cn10k_inb_cpt_init': drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:932:15: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] 932 | void *ptr; | ^~~ drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c: In function 'cn10k_inb_write_sa': >> drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:1214:9: error: implicit declaration of function 'dmb'; did you mean 'rmb'? [-Wimplicit-function-declaration] 1214 | dmb(sy); | ^~~ | rmb >> drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:1214:13: error: 'sy' undeclared (first use in this function); did you mean 's8'? 1214 | dmb(sy); | ^~ | s8 drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:1214:13: note: each undeclared identifier is reported only once for each function it appears in vim +1214 drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c 1164 1165 static int cn10k_inb_write_sa(struct otx2_nic *pf, 1166 struct xfrm_state *x, 1167 struct cn10k_inb_sw_ctx_info *inb_ctx_info) 1168 { 1169 dma_addr_t res_iova, dptr_iova, sa_iova; 1170 struct cn10k_rx_sa_s *sa_dptr, *sa_cptr; 1171 struct cpt_inst_s inst; 1172 u32 sa_size, off; 1173 struct cpt_res_s *res; 1174 u64 reg_val; 1175 int ret; 1176 1177 res = dma_alloc_coherent(pf->dev, sizeof(struct cpt_res_s), 1178 &res_iova, GFP_ATOMIC); 1179 if (!res) 1180 return -ENOMEM; 1181 1182 sa_cptr = inb_ctx_info->sa_entry; 1183 sa_iova = inb_ctx_info->sa_iova; 1184 sa_size = sizeof(struct cn10k_rx_sa_s); 1185 1186 sa_dptr = dma_alloc_coherent(pf->dev, sa_size, &dptr_iova, GFP_ATOMIC); 1187 if (!sa_dptr) { 1188 dma_free_coherent(pf->dev, sizeof(struct cpt_res_s), res, 1189 res_iova); 1190 return -ENOMEM; 1191 } 1192 1193 for (off = 0; off < (sa_size / 8); off++) 1194 *((u64 *)sa_dptr + off) = cpu_to_be64(*((u64 *)sa_cptr + off)); 1195 1196 memset(&inst, 0, sizeof(struct cpt_inst_s)); 1197 1198 res->compcode = 0; 1199 inst.res_addr = res_iova; 1200 inst.dptr = (u64)dptr_iova; 1201 inst.param2 = sa_size >> 3; 1202 inst.dlen = sa_size; 1203 inst.opcode_major = CN10K_IPSEC_MAJOR_OP_WRITE_SA; 1204 inst.opcode_minor = CN10K_IPSEC_MINOR_OP_WRITE_SA; 1205 inst.cptr = sa_iova; 1206 inst.ctx_val = 1; 1207 inst.egrp = CN10K_DEF_CPT_IPSEC_EGRP; 1208 1209 /* Re-use Outbound CPT LF to install Ingress SAs as well because 1210 * the driver does not own the ingress CPT LF. 1211 */ 1212 pf->ipsec.io_addr = (__force u64)otx2_get_regaddr(pf, CN10K_CPT_LF_NQX(0)); 1213 cn10k_cpt_inst_flush(pf, &inst, sizeof(struct cpt_inst_s)); > 1214 dmb(sy); 1215 1216 ret = cn10k_wait_for_cpt_respose(pf, res); 1217 if (ret) 1218 goto out; 1219 1220 /* Trigger CTX flush to write dirty data back to DRAM */ 1221 reg_val = FIELD_PREP(GENMASK_ULL(45, 0), sa_iova >> 7); 1222 otx2_write64(pf, CN10K_CPT_LF_CTX_FLUSH, reg_val); 1223 1224 out: 1225 dma_free_coherent(pf->dev, sa_size, sa_dptr, dptr_iova); 1226 dma_free_coherent(pf->dev, sizeof(struct cpt_res_s), res, res_iova); 1227 return ret; 1228 } 1229 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists