diff mbox series

[rdma-rc,1/3] RDMA/bnxt_re: Disable atomic support on VFs

Message ID 1629320256-4034-2-git-send-email-selvin.xavier@broadcom.com (mailing list archive)
State Superseded
Headers show
Series RDMA/bnxt_re: Bug fixes | expand

Commit Message

Selvin Xavier Aug. 18, 2021, 8:57 p.m. UTC
Atomics is not currently supported for VFs. Enabling only
for PFs.

Fixes: 35f5ace5dea4 ("RDMA/bnxt_re: Enable global atomic ops if platform supports")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
 drivers/infiniband/hw/bnxt_re/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

kernel test robot Aug. 19, 2021, 2:34 a.m. UTC | #1
Hi Selvin,

I love your patch! Yet something to improve:

[auto build test ERROR on rdma/for-next]
[also build test ERROR on v5.14-rc6 next-20210818]
[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]

url:    https://github.com/0day-ci/linux/commits/Selvin-Xavier/RDMA-bnxt_re-Bug-fixes/20210819-045917
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.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/5b4e1e8d37b166a3d6c7468eb96a8d7bc77740dd
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Selvin-Xavier/RDMA-bnxt_re-Bug-fixes/20210819-045917
        git checkout 5b4e1e8d37b166a3d6c7468eb96a8d7bc77740dd
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/hw/bnxt_re/

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 >>):

   drivers/infiniband/hw/bnxt_re/main.c: In function 'bnxt_re_setup_chip_ctx':
>> drivers/infiniband/hw/bnxt_re/main.c:131:29: error: 'struct bnxt_qplib_res' has no member named 'is_vf'
     131 |         if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
         |                             ^


vim +131 drivers/infiniband/hw/bnxt_re/main.c

   109	
   110	static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)
   111	{
   112		struct bnxt_qplib_chip_ctx *chip_ctx;
   113		struct bnxt_en_dev *en_dev;
   114		struct bnxt *bp;
   115	
   116		en_dev = rdev->en_dev;
   117		bp = netdev_priv(en_dev->net);
   118	
   119		chip_ctx = kzalloc(sizeof(*chip_ctx), GFP_KERNEL);
   120		if (!chip_ctx)
   121			return -ENOMEM;
   122		chip_ctx->chip_num = bp->chip_num;
   123	
   124		rdev->chip_ctx = chip_ctx;
   125		/* rest members to follow eventually */
   126	
   127		rdev->qplib_res.cctx = rdev->chip_ctx;
   128		rdev->rcfw.res = &rdev->qplib_res;
   129	
   130		bnxt_re_set_drv_mode(rdev, wqe_mode);
 > 131		if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
   132			ibdev_info(&rdev->ibdev,
   133				   "platform doesn't support global atomics.");
   134		return 0;
   135	}
   136	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
index a8688a9..f6d4c54 100644
--- a/drivers/infiniband/hw/bnxt_re/main.c
+++ b/drivers/infiniband/hw/bnxt_re/main.c
@@ -129,7 +129,7 @@  static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)
 	rdev->rcfw.res = &rdev->qplib_res;
 
 	bnxt_re_set_drv_mode(rdev, wqe_mode);
-	if (bnxt_qplib_determine_atomics(en_dev->pdev))
+	if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
 		ibdev_info(&rdev->ibdev,
 			   "platform doesn't support global atomics.");
 	return 0;