From: kernel test robot <lkp@intel.com>
To: Ratheesh Kannoth <rkannoth@marvell.com>,
davem@davemloft.net, gakula@marvell.com, horms@kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, andrew+netdev@lunn.ch,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
sgoutham@marvell.com, Subbaraya Sundeep <sbhatta@marvell.com>,
Ratheesh Kannoth <rkannoth@marvell.com>
Subject: Re: [PATCH net] octeontx2-af: nix: Remove redundant BPID setup from block init
Date: Wed, 16 Sep 2026 07:10:10 +0800 [thread overview]
Message-ID: <202609160743.DeZuvi8V-lkp@intel.com> (raw)
In-Reply-To: <20260915072029.975824-1-rkannoth@marvell.com>
Hi Ratheesh,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/Ratheesh-Kannoth/octeontx2-af-nix-Remove-redundant-BPID-setup-from-block-init/20260915-125029
base: net/main
patch link: https://lore.kernel.org/r/20260915072029.975824-1-rkannoth%40marvell.com
patch subject: [PATCH net] octeontx2-af: nix: Remove redundant BPID setup from block init
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260916/202609160743.DeZuvi8V-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260916/202609160743.DeZuvi8V-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/202609160743.DeZuvi8V-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:516:12: warning: 'nix_setup_bpids' defined but not used [-Wunused-function]
516 | static int nix_setup_bpids(struct rvu *rvu, struct nix_hw *hw, int blkaddr)
| ^~~~~~~~~~~~~~~
vim +/nix_setup_bpids +516 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4b05528ebf0c3f Sunil Goutham 2018-10-22 513
d6212d2e41a0cb Geetha sowjanya 2024-01-31 514 #define NIX_BPIDS_PER_LMAC 8
d6212d2e41a0cb Geetha sowjanya 2024-01-31 515 #define NIX_BPIDS_PER_CPT 1
d6212d2e41a0cb Geetha sowjanya 2024-01-31 @516 static int nix_setup_bpids(struct rvu *rvu, struct nix_hw *hw, int blkaddr)
d6212d2e41a0cb Geetha sowjanya 2024-01-31 517 {
d6212d2e41a0cb Geetha sowjanya 2024-01-31 518 struct nix_bp *bp = &hw->bp;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 519 int err, max_bpids;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 520 u64 cfg;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 521
d6212d2e41a0cb Geetha sowjanya 2024-01-31 522 cfg = rvu_read64(rvu, blkaddr, NIX_AF_CONST1);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 523 max_bpids = FIELD_GET(NIX_CONST_MAX_BPIDS, cfg);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 524
d6212d2e41a0cb Geetha sowjanya 2024-01-31 525 /* Reserve the BPIds for CGX and SDP */
d6212d2e41a0cb Geetha sowjanya 2024-01-31 526 bp->cgx_bpid_cnt = rvu->hw->cgx_links * NIX_BPIDS_PER_LMAC;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 527 bp->sdp_bpid_cnt = rvu->hw->sdp_links * FIELD_GET(NIX_CONST_SDP_CHANS, cfg);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 528 bp->free_pool_base = bp->cgx_bpid_cnt + bp->sdp_bpid_cnt +
d6212d2e41a0cb Geetha sowjanya 2024-01-31 529 NIX_BPIDS_PER_CPT;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 530 bp->bpids.max = max_bpids - bp->free_pool_base;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 531
d6212d2e41a0cb Geetha sowjanya 2024-01-31 532 err = rvu_alloc_bitmap(&bp->bpids);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 533 if (err)
d6212d2e41a0cb Geetha sowjanya 2024-01-31 534 return err;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 535
d6212d2e41a0cb Geetha sowjanya 2024-01-31 536 bp->fn_map = devm_kcalloc(rvu->dev, bp->bpids.max,
d6212d2e41a0cb Geetha sowjanya 2024-01-31 537 sizeof(u16), GFP_KERNEL);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 538 if (!bp->fn_map)
36323f54cd3231 Haoxiang Li 2026-06-23 539 goto free_bpids;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 540
d6212d2e41a0cb Geetha sowjanya 2024-01-31 541 bp->intf_map = devm_kcalloc(rvu->dev, bp->bpids.max,
d6212d2e41a0cb Geetha sowjanya 2024-01-31 542 sizeof(u8), GFP_KERNEL);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 543 if (!bp->intf_map)
36323f54cd3231 Haoxiang Li 2026-06-23 544 goto free_bpids;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 545
d6212d2e41a0cb Geetha sowjanya 2024-01-31 546 bp->ref_cnt = devm_kcalloc(rvu->dev, bp->bpids.max,
d6212d2e41a0cb Geetha sowjanya 2024-01-31 547 sizeof(u8), GFP_KERNEL);
d6212d2e41a0cb Geetha sowjanya 2024-01-31 548 if (!bp->ref_cnt)
36323f54cd3231 Haoxiang Li 2026-06-23 549 goto free_bpids;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 550
d6212d2e41a0cb Geetha sowjanya 2024-01-31 551 return 0;
36323f54cd3231 Haoxiang Li 2026-06-23 552
36323f54cd3231 Haoxiang Li 2026-06-23 553 free_bpids:
36323f54cd3231 Haoxiang Li 2026-06-23 554 rvu_free_bitmap(&bp->bpids);
36323f54cd3231 Haoxiang Li 2026-06-23 555 bp->bpids.bmap = NULL;
36323f54cd3231 Haoxiang Li 2026-06-23 556 return -ENOMEM;
d6212d2e41a0cb Geetha sowjanya 2024-01-31 557 }
d6212d2e41a0cb Geetha sowjanya 2024-01-31 558
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-09-15 23:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 7:20 Ratheesh Kannoth
2026-09-15 23:10 ` kernel test robot [this message]
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=202609160743.DeZuvi8V-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=rkannoth@marvell.com \
--cc=sbhatta@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®