* drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg'.
@ 2024-09-27 4:57 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-09-27 4:57 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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
^ permalink raw reply [flat|nested] 3+ messages in thread* drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg'.
@ 2024-12-09 4:56 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-12-09 4:56 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
commit: 5f67eef6dff39421215e9134f1eaae51b67a73b7 misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver
date: 5 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 months ago
config: s390-randconfig-r071-20241208 (https://download.01.org/0day-ci/archive/20241209/202412090848.aNybV8pK-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
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/202412090848.aNybV8pK-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
^ permalink raw reply [flat|nested] 3+ messages in thread* drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg'.
@ 2024-08-12 18:51 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2024-08-12 18:51 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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: d74da846046aeec9333e802f5918bd3261fb5509
commit: 5f67eef6dff39421215e9134f1eaae51b67a73b7 misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver
date: 5 weeks ago
:::::: branch date: 3 hours ago
:::::: commit date: 5 weeks ago
config: alpha-randconfig-r072-20240812 (https://download.01.org/0day-ci/archive/20240813/202408130248.lLDrBrk0-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
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/202408130248.lLDrBrk0-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
5f67eef6dff394 Vamsi Attunuru 2024-07-06 208
5f67eef6dff394 Vamsi Attunuru 2024-07-06 209 static int dpi_queue_init(struct dpipf *dpi, struct dpipf_vf *dpivf, u8 vf)
5f67eef6dff394 Vamsi Attunuru 2024-07-06 210 {
5f67eef6dff394 Vamsi Attunuru 2024-07-06 211 u16 sso_pf_func = dpivf->vf_config.sso_pf_func;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 212 u16 npa_pf_func = dpivf->vf_config.npa_pf_func;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 213 u16 csize = dpivf->vf_config.csize;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 214 u32 aura = dpivf->vf_config.aura;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 215 unsigned long timeout;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 216 u64 reg;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 217
5f67eef6dff394 Vamsi Attunuru 2024-07-06 218 dpi_reg_write(dpi, DPI_DMAX_QRST(vf), DPI_DMA_QRST);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 219
5f67eef6dff394 Vamsi Attunuru 2024-07-06 220 /* Wait for a maximum of 3 sec */
5f67eef6dff394 Vamsi Attunuru 2024-07-06 221 timeout = jiffies + msecs_to_jiffies(3000);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 222 while (!time_after(jiffies, timeout)) {
5f67eef6dff394 Vamsi Attunuru 2024-07-06 223 reg = dpi_reg_read(dpi, DPI_DMAX_QRST(vf));
5f67eef6dff394 Vamsi Attunuru 2024-07-06 224 if (!(reg & DPI_DMA_QRST))
5f67eef6dff394 Vamsi Attunuru 2024-07-06 225 break;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 226
5f67eef6dff394 Vamsi Attunuru 2024-07-06 227 /* Reset would take time for the request cache to drain */
5f67eef6dff394 Vamsi Attunuru 2024-07-06 228 usleep_range(500, 1000);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 229 }
5f67eef6dff394 Vamsi Attunuru 2024-07-06 230
5f67eef6dff394 Vamsi Attunuru 2024-07-06 @231 if (reg & DPI_DMA_QRST) {
5f67eef6dff394 Vamsi Attunuru 2024-07-06 232 dev_err(&dpi->pdev->dev, "Queue reset failed\n");
5f67eef6dff394 Vamsi Attunuru 2024-07-06 233 return -EBUSY;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 234 }
5f67eef6dff394 Vamsi Attunuru 2024-07-06 235
5f67eef6dff394 Vamsi Attunuru 2024-07-06 236 dpi_reg_write(dpi, DPI_DMAX_IDS2(vf), 0);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 237 dpi_reg_write(dpi, DPI_DMAX_IDS(vf), 0);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 238
5f67eef6dff394 Vamsi Attunuru 2024-07-06 239 reg = DPI_DMA_IBUFF_CSIZE_CSIZE(csize) | DPI_DMA_IBUFF_CSIZE_NPA_FREE;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 240 dpi_reg_write(dpi, DPI_DMAX_IBUFF_CSIZE(vf), reg);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 241
5f67eef6dff394 Vamsi Attunuru 2024-07-06 242 reg = dpi_reg_read(dpi, DPI_DMAX_IDS2(vf));
5f67eef6dff394 Vamsi Attunuru 2024-07-06 243 reg |= DPI_DMA_IDS2_INST_AURA(aura);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 244 dpi_reg_write(dpi, DPI_DMAX_IDS2(vf), reg);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 245
5f67eef6dff394 Vamsi Attunuru 2024-07-06 246 reg = dpi_reg_read(dpi, DPI_DMAX_IDS(vf));
5f67eef6dff394 Vamsi Attunuru 2024-07-06 247 reg |= DPI_DMA_IDS_DMA_NPA_PF_FUNC(npa_pf_func);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 248 reg |= DPI_DMA_IDS_DMA_SSO_PF_FUNC(sso_pf_func);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 249 reg |= DPI_DMA_IDS_DMA_STRM(vf + 1);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 250 reg |= DPI_DMA_IDS_INST_STRM(vf + 1);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 251 dpi_reg_write(dpi, DPI_DMAX_IDS(vf), reg);
5f67eef6dff394 Vamsi Attunuru 2024-07-06 252
5f67eef6dff394 Vamsi Attunuru 2024-07-06 253 return 0;
5f67eef6dff394 Vamsi Attunuru 2024-07-06 254 }
5f67eef6dff394 Vamsi Attunuru 2024-07-06 255
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-09 4:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 4:57 drivers/misc/mrvl_cn10k_dpi.c:231 dpi_queue_init() error: uninitialized symbol 'reg' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-12-09 4:56 kernel test robot
2024-08-12 18:51 kernel test robot
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.