From: kernel test robot <lkp@intel.com>
To: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: oe-kbuild-all@lists.linux.dev, andrew.gospodarek@broadcom.com,
davem@davemloft.net, edumazet@google.com, jgg@ziepe.ca,
kuba@kernel.org, leon@kernel.org, linux-kernel@vger.kernel.org,
linux-rdma@vger.kernel.org, michael.chan@broadcom.com,
netdev@vger.kernel.org, pabeni@redhat.com,
selvin.xavier@broadcom.com
Subject: Re: [PATCH v2 5/6] bnxt_en: Use auxiliary bus calls over proprietary calls
Date: Wed, 26 Oct 2022 05:18:11 +0800 [thread overview]
Message-ID: <202210260543.0m3bOvAM-lkp@intel.com> (raw)
In-Reply-To: <20221025173110.33192-6-ajit.khaparde@broadcom.com>
[-- Attachment #1: Type: text/plain, Size: 4495 bytes --]
Hi Ajit,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.1-rc2 next-20221025]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ajit-Khaparde/bnxt_en-Add-auxiliary-driver-support/20221026-023141
patch link: https://lore.kernel.org/r/20221025173110.33192-6-ajit.khaparde%40broadcom.com
patch subject: [PATCH v2 5/6] bnxt_en: Use auxiliary bus calls over proprietary calls
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/f04080c956abfeabf32961081d0401a800163d99
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Ajit-Khaparde/bnxt_en-Add-auxiliary-driver-support/20221026-023141
git checkout f04080c956abfeabf32961081d0401a800163d99
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/hw/bnxt_re/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/infiniband/hw/bnxt_re/main.c:1585:5: warning: no previous prototype for 'bnxt_re_suspend' [-Wmissing-prototypes]
1585 | int bnxt_re_suspend(struct auxiliary_device *adev, pm_message_t state)
| ^~~~~~~~~~~~~~~
>> drivers/infiniband/hw/bnxt_re/main.c:1623:5: warning: no previous prototype for 'bnxt_re_resume' [-Wmissing-prototypes]
1623 | int bnxt_re_resume(struct auxiliary_device *adev)
| ^~~~~~~~~~~~~~
vim +/bnxt_re_suspend +1585 drivers/infiniband/hw/bnxt_re/main.c
1584
> 1585 int bnxt_re_suspend(struct auxiliary_device *adev, pm_message_t state)
1586 {
1587 struct bnxt_re_dev *rdev = auxiliary_get_drvdata(adev);
1588 struct bnxt *bp;
1589
1590 if (!rdev)
1591 return 0;
1592
1593 mutex_lock(&bnxt_re_mutex);
1594 /* L2 driver may invoke this callback during device error/crash or device
1595 * reset. Current RoCE driver doesn't recover the device in case of
1596 * error. Handle the error by dispatching fatal events to all qps
1597 * ie. by calling bnxt_re_dev_stop and release the MSIx vectors as
1598 * L2 driver want to modify the MSIx table.
1599 */
1600 bp = netdev_priv(rdev->netdev);
1601
1602 ibdev_info(&rdev->ibdev, "Handle device suspend call");
1603 /* Check the current device state from L2 structure and move the
1604 * device to detached state if FW_FATAL_COND is set.
1605 * This prevents more commands to HW during clean-up,
1606 * in case the device is already in error.
1607 */
1608 if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state))
1609 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags);
1610
1611 bnxt_re_dev_stop(rdev);
1612 bnxt_re_stop_irq(rdev);
1613 /* Move the device states to detached and avoid sending any more
1614 * commands to HW
1615 */
1616 set_bit(BNXT_RE_FLAG_ERR_DEVICE_DETACHED, &rdev->flags);
1617 set_bit(ERR_DEVICE_DETACHED, &rdev->rcfw.cmdq.flags);
1618 mutex_unlock(&bnxt_re_mutex);
1619
1620 return 0;
1621 }
1622
> 1623 int bnxt_re_resume(struct auxiliary_device *adev)
1624 {
1625 struct bnxt_re_dev *rdev = auxiliary_get_drvdata(adev);
1626
1627 if (!rdev)
1628 return 0;
1629
1630 mutex_lock(&bnxt_re_mutex);
1631 /* L2 driver may invoke this callback during device recovery, resume.
1632 * reset. Current RoCE driver doesn't recover the device in case of
1633 * error. Handle the error by dispatching fatal events to all qps
1634 * ie. by calling bnxt_re_dev_stop and release the MSIx vectors as
1635 * L2 driver want to modify the MSIx table.
1636 */
1637
1638 ibdev_info(&rdev->ibdev, "Handle device resume call");
1639 mutex_unlock(&bnxt_re_mutex);
1640
1641 return 0;
1642 }
1643
--
0-DAY CI Kernel Test Service
https://01.org/lkp
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 75055 bytes --]
next prev parent reply other threads:[~2022-10-25 21:18 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-24 23:14 [PATCH 0/2] Add Auxiliary driver support Ajit Khaparde
2022-07-24 23:14 ` [PATCH 1/2] net/bnxt: Add auxiliary " Ajit Khaparde
2022-08-02 12:50 ` kernel test robot
2022-07-24 23:14 ` [PATCH 2/2] RDMA/bnxt_re: Use auxiliary driver interface Ajit Khaparde
2022-07-25 12:15 ` Leon Romanovsky
2022-07-26 4:58 ` Ajit Khaparde
2022-07-26 5:36 ` Leon Romanovsky
2022-07-26 14:31 ` Ajit Khaparde
2022-10-25 17:31 ` [PATCH v2 0/6] Add Auxiliary driver support Ajit Khaparde
2022-10-25 17:31 ` [PATCH v2 1/6] bnxt_en: Add auxiliary " Ajit Khaparde
2022-10-25 17:31 ` [PATCH v2 2/6] RDMA/bnxt_re: Use auxiliary driver interface Ajit Khaparde
2022-10-26 9:24 ` Leon Romanovsky
2022-10-26 15:58 ` Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 0/6] Add Auxiliary driver support Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 1/6] bnxt_en: Add auxiliary " Ajit Khaparde
2022-11-08 7:21 ` kernel test robot
2022-11-04 16:27 ` [PATCH v3 2/6] RDMA/bnxt_re: Use auxiliary driver interface Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 3/6] bnxt_en: Remove usage of ulp_id Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 4/6] bnxt_en: Use direct API instead of indirection Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 5/6] bnxt_en: Use auxiliary bus calls over proprietary calls Ajit Khaparde
2022-11-07 6:41 ` Leon Romanovsky
2022-11-09 18:45 ` Ajit Khaparde
2022-11-04 16:27 ` [PATCH v3 6/6] bnxt_en: Remove struct bnxt access from RoCE driver Ajit Khaparde
2022-11-07 6:37 ` [PATCH v3 0/6] Add Auxiliary driver support Leon Romanovsky
2022-11-07 16:06 ` Jakub Kicinski
2022-11-07 17:26 ` Leon Romanovsky
2022-11-07 18:21 ` Ajit Khaparde
2022-10-25 17:31 ` [PATCH v2 3/6] bnxt_en: Remove usage of ulp_id Ajit Khaparde
2022-10-26 0:57 ` kernel test robot
2022-10-25 17:31 ` [PATCH v2 4/6] bnxt_en: Use direct API instead of indirection Ajit Khaparde
2022-10-27 17:56 ` kernel test robot
2022-10-25 17:31 ` [PATCH v2 5/6] bnxt_en: Use auxiliary bus calls over proprietary calls Ajit Khaparde
2022-10-25 21:18 ` kernel test robot [this message]
2022-10-26 3:21 ` kernel test robot
2022-10-25 17:31 ` [PATCH v2 6/6] bnxt_en: Remove struct bnxt access from RoCE driver Ajit Khaparde
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=202210260543.0m3bOvAM-lkp@intel.com \
--to=lkp@intel.com \
--cc=ajit.khaparde@broadcom.com \
--cc=andrew.gospodarek@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jgg@ziepe.ca \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=selvin.xavier@broadcom.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 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.