From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg'.
Date: Fri, 27 Sep 2024 12:57:34 +0800 [thread overview]
Message-ID: <202409271221.3LDHDPch-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Vamsi Attunuru <vattunuru@marvell.com>
CC: Srujana Challa <schalla@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 075dbe9f6e3c21596c5245826a4ee1f1c1676eb8
commit: 5f67eef6dff39421215e9134f1eaae51b67a73b7 misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver
date: 3 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 3 months ago
config: arm64-randconfig-r072-20240925 (https://download.01.org/0day-ci/archive/20240927/202409271221.3LDHDPch-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202409271221.3LDHDPch-lkp@intel.com/
smatch warnings:
drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg'.
vim +/reg +231 drivers/misc/mrvl_cn10k_dpi.c
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 208
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 209 static int dpi_queue_init(struct dpipf *dpi, struct dpipf_vf *dpivf, u8 vf)
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 210 {
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 211 u16 sso_pf_func = dpivf->vf_config.sso_pf_func;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 212 u16 npa_pf_func = dpivf->vf_config.npa_pf_func;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 213 u16 csize = dpivf->vf_config.csize;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 214 u32 aura = dpivf->vf_config.aura;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 215 unsigned long timeout;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 216 u64 reg;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 217
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 218 dpi_reg_write(dpi, DPI_DMAX_QRST(vf), DPI_DMA_QRST);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 219
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 220 /* Wait for a maximum of 3 sec */
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 221 timeout = jiffies + msecs_to_jiffies(3000);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 222 while (!time_after(jiffies, timeout)) {
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 223 reg = dpi_reg_read(dpi, DPI_DMAX_QRST(vf));
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 224 if (!(reg & DPI_DMA_QRST))
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 225 break;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 226
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 227 /* Reset would take time for the request cache to drain */
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 228 usleep_range(500, 1000);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 229 }
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 230
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 @231 if (reg & DPI_DMA_QRST) {
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 232 dev_err(&dpi->pdev->dev, "Queue reset failed\n");
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 233 return -EBUSY;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 234 }
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 235
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 236 dpi_reg_write(dpi, DPI_DMAX_IDS2(vf), 0);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 237 dpi_reg_write(dpi, DPI_DMAX_IDS(vf), 0);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 238
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 239 reg = DPI_DMA_IBUFF_CSIZE_CSIZE(csize) | DPI_DMA_IBUFF_CSIZE_NPA_FREE;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 240 dpi_reg_write(dpi, DPI_DMAX_IBUFF_CSIZE(vf), reg);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 241
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 242 reg = dpi_reg_read(dpi, DPI_DMAX_IDS2(vf));
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 243 reg |= DPI_DMA_IDS2_INST_AURA(aura);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 244 dpi_reg_write(dpi, DPI_DMAX_IDS2(vf), reg);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 245
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 246 reg = dpi_reg_read(dpi, DPI_DMAX_IDS(vf));
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 247 reg |= DPI_DMA_IDS_DMA_NPA_PF_FUNC(npa_pf_func);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 248 reg |= DPI_DMA_IDS_DMA_SSO_PF_FUNC(sso_pf_func);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 249 reg |= DPI_DMA_IDS_DMA_STRM(vf + 1);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 250 reg |= DPI_DMA_IDS_INST_STRM(vf + 1);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 251 dpi_reg_write(dpi, DPI_DMAX_IDS(vf), reg);
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 252
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 253 return 0;
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 254 }
5f67eef6dff3942 Vamsi Attunuru 2024-07-06 255
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-09-27 4:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-27 4:57 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-09 4:56 drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg' kernel test robot
2024-08-12 18:51 kernel test robot
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=202409271221.3LDHDPch-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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.