From: kernel test robot <lkp@intel.com>
To: Magnus Karlsson <magnus.karlsson@gmail.com>,
magnus.karlsson@intel.com, bjorn@kernel.org, ast@kernel.org,
daniel@iogearbox.net, netdev@vger.kernel.org,
maciej.fijalkowski@intel.com, ciara.loftus@intel.com
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
jonathan.lemon@gmail.com, bpf@vger.kernel.org,
anthony.l.nguyen@intel.com
Subject: Re: [PATCH bpf-next 06/13] xsk: optimize for aligned case
Date: Wed, 29 Sep 2021 23:33:12 +0800 [thread overview]
Message-ID: <202109292354.EUZ90A4C-lkp@intel.com> (raw)
In-Reply-To: <20210922075613.12186-7-magnus.karlsson@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4775 bytes --]
Hi Magnus,
I love your patch! Yet something to improve:
[auto build test ERROR on 17b52c226a9a170f1611f69d12a71be05748aefd]
url: https://github.com/0day-ci/linux/commits/Magnus-Karlsson/xsk-i40e-ice-introduce-batching-for-Rx-buffer-allocation/20210929-210813
base: 17b52c226a9a170f1611f69d12a71be05748aefd
config: riscv-buildonly-randconfig-r003-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/5a3442cd30198f6a7fb37ec0b8cad12bea1d5178
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Magnus-Karlsson/xsk-i40e-ice-introduce-batching-for-Rx-buffer-allocation/20210929-210813
git checkout 5a3442cd30198f6a7fb37ec0b8cad12bea1d5178
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> net/xdp/xsk_buff_pool.c:465:15: error: variable 'xskb' is uninitialized when used here [-Werror,-Wuninitialized]
xp_release(xskb);
^~~~
net/xdp/xsk_buff_pool.c:455:27: note: initialize the variable 'xskb' to silence this warning
struct xdp_buff_xsk *xskb;
^
= NULL
1 error generated.
vim +/xskb +465 net/xdp/xsk_buff_pool.c
2b43470add8c8f Björn Töpel 2020-05-20 452
2b43470add8c8f Björn Töpel 2020-05-20 453 static struct xdp_buff_xsk *__xp_alloc(struct xsk_buff_pool *pool)
2b43470add8c8f Björn Töpel 2020-05-20 454 {
2b43470add8c8f Björn Töpel 2020-05-20 455 struct xdp_buff_xsk *xskb;
2b43470add8c8f Björn Töpel 2020-05-20 456 u64 addr;
2b43470add8c8f Björn Töpel 2020-05-20 457 bool ok;
2b43470add8c8f Björn Töpel 2020-05-20 458
2b43470add8c8f Björn Töpel 2020-05-20 459 if (pool->free_heads_cnt == 0)
2b43470add8c8f Björn Töpel 2020-05-20 460 return NULL;
2b43470add8c8f Björn Töpel 2020-05-20 461
2b43470add8c8f Björn Töpel 2020-05-20 462 for (;;) {
2b43470add8c8f Björn Töpel 2020-05-20 463 if (!xskq_cons_peek_addr_unchecked(pool->fq, &addr)) {
8aa5a33578e968 Ciara Loftus 2020-07-08 464 pool->fq->queue_empty_descs++;
2b43470add8c8f Björn Töpel 2020-05-20 @465 xp_release(xskb);
2b43470add8c8f Björn Töpel 2020-05-20 466 return NULL;
2b43470add8c8f Björn Töpel 2020-05-20 467 }
2b43470add8c8f Björn Töpel 2020-05-20 468
2b43470add8c8f Björn Töpel 2020-05-20 469 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) :
2b43470add8c8f Björn Töpel 2020-05-20 470 xp_check_aligned(pool, &addr);
2b43470add8c8f Björn Töpel 2020-05-20 471 if (!ok) {
2b43470add8c8f Björn Töpel 2020-05-20 472 pool->fq->invalid_descs++;
2b43470add8c8f Björn Töpel 2020-05-20 473 xskq_cons_release(pool->fq);
2b43470add8c8f Björn Töpel 2020-05-20 474 continue;
2b43470add8c8f Björn Töpel 2020-05-20 475 }
2b43470add8c8f Björn Töpel 2020-05-20 476 break;
2b43470add8c8f Björn Töpel 2020-05-20 477 }
2b43470add8c8f Björn Töpel 2020-05-20 478
5a3442cd30198f Magnus Karlsson 2021-09-22 479 if (pool->unaligned) {
5a3442cd30198f Magnus Karlsson 2021-09-22 480 xskb = pool->free_heads[--pool->free_heads_cnt];
5a3442cd30198f Magnus Karlsson 2021-09-22 481 xp_init_xskb_addr(xskb, pool, addr);
5a3442cd30198f Magnus Karlsson 2021-09-22 482 if (pool->dma_pages_cnt)
5a3442cd30198f Magnus Karlsson 2021-09-22 483 xp_init_xskb_dma(xskb, pool, pool->dma_pages, addr);
5a3442cd30198f Magnus Karlsson 2021-09-22 484 } else {
5a3442cd30198f Magnus Karlsson 2021-09-22 485 xskb = &pool->heads[xp_aligned_extract_idx(pool, addr)];
2b43470add8c8f Björn Töpel 2020-05-20 486 }
5a3442cd30198f Magnus Karlsson 2021-09-22 487
5a3442cd30198f Magnus Karlsson 2021-09-22 488 xskq_cons_release(pool->fq);
2b43470add8c8f Björn Töpel 2020-05-20 489 return xskb;
2b43470add8c8f Björn Töpel 2020-05-20 490 }
2b43470add8c8f Björn Töpel 2020-05-20 491
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38714 bytes --]
next prev parent reply other threads:[~2021-09-29 15:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 7:56 [PATCH bpf-next 00/13] xsk: i40e: ice: introduce batching for Rx buffer allocation Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 01/13] xsk: get rid of unused entry in struct xdp_buff_xsk Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 02/13] xsk: batched buffer allocation for the pool Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 03/13] ice: use xdp_buf instead of rx_buf for xsk zero-copy Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 04/13] ice: use the xsk batched rx allocation interface Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 05/13] i40e: " Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 06/13] xsk: optimize for aligned case Magnus Karlsson
2021-09-28 23:15 ` Nathan Chancellor
2021-09-29 5:52 ` Magnus Karlsson
2021-09-29 15:33 ` kernel test robot [this message]
2021-09-22 7:56 ` [PATCH bpf-next 07/13] selftests: xsk: fix missing initialization Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 08/13] selftests: xsk: put the same buffer only once in the fill ring Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 09/13] selftests: xsk: fix socket creation retry Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 10/13] selftests: xsk: introduce pacing of traffic Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 11/13] selftests: xsk: add single packet test Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 12/13] selftests: xsk: change interleaving of packets in unaligned mode Magnus Karlsson
2021-09-22 7:56 ` [PATCH bpf-next 13/13] selftests: xsk: add frame_headroom test Magnus Karlsson
2021-09-27 22:30 ` [PATCH bpf-next 00/13] xsk: i40e: ice: introduce batching for Rx buffer allocation patchwork-bot+netdevbpf
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=202109292354.EUZ90A4C-lkp@intel.com \
--to=lkp@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=ciara.loftus@intel.com \
--cc=daniel@iogearbox.net \
--cc=jonathan.lemon@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@gmail.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).