From: kernel test robot <lkp@intel.com>
To: Srujana Challa <schalla@marvell.com>,
herbert@gondor.apana.org.au, davem@davemloft.net,
kuba@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-crypto@vger.kernel.org,
netdev@vger.kernel.org, linux-doc@vger.kernel.org,
bbrezillon@kernel.org, arno@natisbad.org, pabeni@redhat.com,
edumazet@google.com, ndabilpuram@marvell.com,
sgoutham@marvell.com, jerinj@marvell.com, sbhatta@marvell.com,
hkelam@marvell.com, lcherian@marvell.com, gakula@marvell.com,
schalla@marvell.com
Subject: Re: [PATCH net-next 02/10] crypto: octeontx2: add SGv2 support for CN10KB or CN10KA B0
Date: Mon, 27 Nov 2023 19:39:50 +0800 [thread overview]
Message-ID: <202311271719.io1crN0R-lkp@intel.com> (raw)
In-Reply-To: <20231124125047.2329693-3-schalla@marvell.com>
Hi Srujana,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Srujana-Challa/crypto-octeontx2-remove-CPT-block-reset/20231124-210255
base: net-next/main
patch link: https://lore.kernel.org/r/20231124125047.2329693-3-schalla%40marvell.com
patch subject: [PATCH net-next 02/10] crypto: octeontx2: add SGv2 support for CN10KB or CN10KA B0
config: sparc-randconfig-r113-20231127 (https://download.01.org/0day-ci/archive/20231127/202311271719.io1crN0R-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231127/202311271719.io1crN0R-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311271719.io1crN0R-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c: note: in included file (through drivers/crypto/marvell/octeontx2/otx2_cptlf.h, drivers/crypto/marvell/octeontx2/otx2_cptvf.h):
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len0 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: expected restricted __be16 [usertype] len0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len1 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: expected restricted __be16 [usertype] len1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len2 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: expected restricted __be16 [usertype] len2
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr0 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: expected restricted __be64 [usertype] ptr0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr1 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: expected restricted __be64 [usertype] ptr1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr2 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: expected restricted __be64 [usertype] ptr2
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] valid_segs @@ got int @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: expected restricted __be16 [usertype] valid_segs
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: got int
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] valid_segs @@ got int [assigned] components @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: expected restricted __be16 [usertype] valid_segs
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: got int [assigned] components
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len1 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: expected restricted __be16 [usertype] len1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: got unsigned short [usertype] size
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr1 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: expected restricted __be64 [usertype] ptr1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: got unsigned long long [usertype] dma_addr
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len0 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: expected restricted __be16 [usertype] len0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: got unsigned short [usertype] size
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr0 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: expected restricted __be64 [usertype] ptr0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len0 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: expected restricted __be16 [usertype] len0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:301:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len1 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: expected restricted __be16 [usertype] len1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:302:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len2 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: expected restricted __be16 [usertype] len2
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:303:30: sparse: got unsigned short [usertype] size
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr0 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: expected restricted __be64 [usertype] ptr0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:304:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr1 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: expected restricted __be64 [usertype] ptr1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:305:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr2 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: expected restricted __be64 [usertype] ptr2
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:306:30: sparse: got unsigned long long [usertype] dma_addr
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] valid_segs @@ got int @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: expected restricted __be16 [usertype] valid_segs
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:307:36: sparse: got int
>> drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] valid_segs @@ got int [assigned] components @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: expected restricted __be16 [usertype] valid_segs
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:312:28: sparse: got int [assigned] components
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len1 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: expected restricted __be16 [usertype] len1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:315:30: sparse: got unsigned short [usertype] size
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr1 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: expected restricted __be64 [usertype] ptr1
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:316:30: sparse: got unsigned long long [usertype] dma_addr
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len0 @@ got unsigned short [usertype] size @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: expected restricted __be16 [usertype] len0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:319:30: sparse: got unsigned short [usertype] size
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] ptr0 @@ got unsigned long long [usertype] dma_addr @@
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: expected restricted __be64 [usertype] ptr0
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h:320:30: sparse: got unsigned long long [usertype] dma_addr
vim +301 drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h
272
273 static inline int sgv2io_components_setup(struct pci_dev *pdev,
274 struct otx2_cpt_buf_ptr *list,
275 int buf_count, u8 *buffer)
276 {
277 struct cn10kb_cpt_sglist_component *sg_ptr = NULL;
278 int ret = 0, i, j;
279 int components;
280
281 if (unlikely(!list)) {
282 dev_err(&pdev->dev, "Input list pointer is NULL\n");
283 return -EFAULT;
284 }
285
286 for (i = 0; i < buf_count; i++) {
287 if (unlikely(!list[i].vptr))
288 continue;
289 list[i].dma_addr = dma_map_single(&pdev->dev, list[i].vptr,
290 list[i].size,
291 DMA_BIDIRECTIONAL);
292 if (unlikely(dma_mapping_error(&pdev->dev, list[i].dma_addr))) {
293 dev_err(&pdev->dev, "Dma mapping failed\n");
294 ret = -EIO;
295 goto sg_cleanup;
296 }
297 }
298 components = buf_count / 3;
299 sg_ptr = (struct cn10kb_cpt_sglist_component *)buffer;
300 for (i = 0; i < components; i++) {
> 301 sg_ptr->len0 = list[i * 3 + 0].size;
> 302 sg_ptr->len1 = list[i * 3 + 1].size;
> 303 sg_ptr->len2 = list[i * 3 + 2].size;
> 304 sg_ptr->ptr0 = list[i * 3 + 0].dma_addr;
> 305 sg_ptr->ptr1 = list[i * 3 + 1].dma_addr;
> 306 sg_ptr->ptr2 = list[i * 3 + 2].dma_addr;
> 307 sg_ptr->valid_segs = 3;
308 sg_ptr++;
309 }
310 components = buf_count % 3;
311
> 312 sg_ptr->valid_segs = components;
313 switch (components) {
314 case 2:
315 sg_ptr->len1 = list[i * 3 + 1].size;
316 sg_ptr->ptr1 = list[i * 3 + 1].dma_addr;
317 fallthrough;
318 case 1:
319 sg_ptr->len0 = list[i * 3 + 0].size;
320 sg_ptr->ptr0 = list[i * 3 + 0].dma_addr;
321 break;
322 default:
323 break;
324 }
325 return ret;
326
327 sg_cleanup:
328 for (j = 0; j < i; j++) {
329 if (list[j].dma_addr) {
330 dma_unmap_single(&pdev->dev, list[j].dma_addr,
331 list[j].size, DMA_BIDIRECTIONAL);
332 }
333
334 list[j].dma_addr = 0;
335 }
336 return ret;
337 }
338
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-11-27 11:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 12:50 [PATCH net-next 00/10] Add Marvell CPT CN10KB/CN10KA B0 support Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 01/10] crypto: octeontx2: remove CPT block reset Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 02/10] crypto: octeontx2: add SGv2 support for CN10KB or CN10KA B0 Srujana Challa
2023-11-27 11:39 ` kernel test robot [this message]
2023-11-24 12:50 ` [PATCH net-next 03/10] crypto: octeontx2: add devlink option to set max_rxc_icb_cnt Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 04/10] crypto: octeontx2: add devlink option to set t106 mode Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 05/10] crypto: octeontx2: remove errata workaround for CN10KB or CN10KA B0 chip Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 06/10] crypto: octeontx2: add LF reset on queue disable Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 07/10] octeontx2-af: update CPT inbound inline IPsec mailbox Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 08/10] crypto: octeontx2: add ctx_val workaround Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 09/10] crypto/octeontx2: register error interrupts for inline cptlf Srujana Challa
2023-11-24 12:50 ` [PATCH net-next 10/10] crypto: octeontx2: support setting ctx ilen for inline CPT LF Srujana Challa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202311271719.io1crN0R-lkp@intel.com \
--to=lkp@intel.com \
--cc=arno@natisbad.org \
--cc=bbrezillon@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=herbert@gondor.apana.org.au \
--cc=hkelam@marvell.com \
--cc=jerinj@marvell.com \
--cc=kuba@kernel.org \
--cc=lcherian@marvell.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=ndabilpuram@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=sbhatta@marvell.com \
--cc=schalla@marvell.com \
--cc=sgoutham@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.