From: kernel test robot <lkp@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix for failed to init adminq while VF reset
Date: Tue, 8 Dec 2020 03:18:17 +0800 [thread overview]
Message-ID: <202012080348.xDUe7ilV-lkp@intel.com> (raw)
In-Reply-To: <20201207114223.29030-1-mateusz.palczewski@intel.com>
Hi Mateusz,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net/master]
url: https://github.com/0day-ci/linux/commits/Mateusz-Palczewski/i40e-Fix-for-failed-to-init-adminq-while-VF-reset/20201207-194429
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 10c678bd0a035ac2c64a9b26b222f20556227a53
config: alpha-randconfig-r034-20201207 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
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
# https://github.com/0day-ci/linux/commit/3473ae8b20a6b744f90aa0479ad4d66567f8d832
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mateusz-Palczewski/i40e-Fix-for-failed-to-init-adminq-while-VF-reset/20201207-194429
git checkout 3473ae8b20a6b744f90aa0479ad4d66567f8d832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 >>):
In file included from drivers/net/ethernet/intel/i40e/i40e_type.h:8,
from drivers/net/ethernet/intel/i40e/i40e.h:40,
from drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:4:
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c: In function 'i40e_sync_vfr_reset':
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:1315:18: error: implicit declaration of function 'I40E_VFINT_ICR0_ENA'; did you mean 'I40E_PFINT_ICR0_ENA'? [-Werror=implicit-function-declaration]
1315 | reg = rd32(hw, I40E_VFINT_ICR0_ENA(vf_id)) &
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_osdep.h:27:45: note: in definition of macro 'rd32'
27 | #define rd32(a, reg) readl((a)->hw_addr + (reg))
| ^~~
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:1316:7: error: 'I40E_VFINT_ICR0_ADMINQ_MASK' undeclared (first use in this function); did you mean 'I40E_PFINT_ICR0_ADMINQ_MASK'?
1316 | I40E_VFINT_ICR0_ADMINQ_MASK;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| I40E_PFINT_ICR0_ADMINQ_MASK
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:1316:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c: In function 'i40e_trigger_vf_reset':
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:1360:8: error: 'I40E_VFINT_ICR0_ADMINQ_MASK' undeclared (first use in this function); did you mean 'I40E_PFINT_ICR0_ADMINQ_MASK'?
1360 | I40E_VFINT_ICR0_ADMINQ_MASK;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| I40E_PFINT_ICR0_ADMINQ_MASK
cc1: some warnings being treated as errors
vim +1315 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
1299
1300 /**
1301 * i40e_sync_vfr_reset
1302 * @hw: pointer to hw struct
1303 * @vf_id: VF identifier
1304 *
1305 * Before trigger hardware reset, we need to know if no other process has
1306 * reserved the hardware for any reset operations. This check is done by
1307 * examining the status of the ADMINQ bit in VF interrupt register.
1308 **/
1309 static int i40e_sync_vfr_reset(struct i40e_hw *hw, int vf_id)
1310 {
1311 u32 reg;
1312 int i;
1313
1314 for (i = 0; i < I40E_VFR_WAIT_COUNT; i++) {
> 1315 reg = rd32(hw, I40E_VFINT_ICR0_ENA(vf_id)) &
> 1316 I40E_VFINT_ICR0_ADMINQ_MASK;
1317 if (reg)
1318 return 0;
1319
1320 usleep_range(10, 200);
1321 }
1322
1323 return -EAGAIN;
1324 }
1325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28591 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20201208/5cd5ec94/attachment-0001.bin>
next prev parent reply other threads:[~2020-12-07 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 11:42 [Intel-wired-lan] [PATCH net v1] i40e: Fix for failed to init adminq while VF reset Mateusz Palczewski
2020-12-07 13:32 ` Paul Menzel
2020-12-07 19:18 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-30 7:32 Sornek, Karen
2021-11-30 21:42 ` Nguyen, Anthony L
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=202012080348.xDUe7ilV-lkp@intel.com \
--to=lkp@intel.com \
--cc=intel-wired-lan@osuosl.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).