All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Junxian Huang <huangjunxian6@hisilicon.com>,
	jgg@ziepe.ca, leon@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-rdma@vger.kernel.org,
	linuxarm@huawei.com, linux-kernel@vger.kernel.org,
	huangjunxian6@hisilicon.com
Subject: Re: [PATCH for-next] RDMA/hns: Support SRQ record doorbell
Date: Wed, 20 Sep 2023 13:17:12 +0800	[thread overview]
Message-ID: <202309201334.ecTzlCD0-lkp@intel.com> (raw)
In-Reply-To: <20230920033005.1557-1-huangjunxian6@hisilicon.com>

Hi Junxian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rdma/for-next]
[also build test WARNING on linus/master v6.6-rc2 next-20230920]
[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/Junxian-Huang/RDMA-hns-Support-SRQ-record-doorbell/20230920-113419
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
patch link:    https://lore.kernel.org/r/20230920033005.1557-1-huangjunxian6%40hisilicon.com
patch subject: [PATCH for-next] RDMA/hns: Support SRQ record doorbell
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230920/202309201334.ecTzlCD0-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309201334.ecTzlCD0-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309201334.ecTzlCD0-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/infiniband/hw/hns/hns_roce_hw_v2.c: In function 'hns_roce_v2_post_srq_recv':
>> drivers/infiniband/hw/hns/hns_roce_hw_v2.c:960:30: warning: unused variable 'hr_dev' [-Wunused-variable]
     960 |         struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);
         |                              ^~~~~~


vim +/hr_dev +960 drivers/infiniband/hw/hns/hns_roce_hw_v2.c

2b035e7312b508 Yixing Liu    2021-06-21   955  
ffb1308b88b602 Yixian Liu    2020-04-28   956  static int hns_roce_v2_post_srq_recv(struct ib_srq *ibsrq,
ffb1308b88b602 Yixian Liu    2020-04-28   957  				     const struct ib_recv_wr *wr,
ffb1308b88b602 Yixian Liu    2020-04-28   958  				     const struct ib_recv_wr **bad_wr)
ffb1308b88b602 Yixian Liu    2020-04-28   959  {
ffb1308b88b602 Yixian Liu    2020-04-28  @960  	struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);
ffb1308b88b602 Yixian Liu    2020-04-28   961  	struct hns_roce_srq *srq = to_hr_srq(ibsrq);
ffb1308b88b602 Yixian Liu    2020-04-28   962  	unsigned long flags;
ffb1308b88b602 Yixian Liu    2020-04-28   963  	int ret = 0;
2e07a3d945851f Wenpeng Liang 2021-01-30   964  	u32 max_sge;
2e07a3d945851f Wenpeng Liang 2021-01-30   965  	u32 wqe_idx;
ffb1308b88b602 Yixian Liu    2020-04-28   966  	void *wqe;
2e07a3d945851f Wenpeng Liang 2021-01-30   967  	u32 nreq;
ffb1308b88b602 Yixian Liu    2020-04-28   968  
ffb1308b88b602 Yixian Liu    2020-04-28   969  	spin_lock_irqsave(&srq->lock, flags);
ffb1308b88b602 Yixian Liu    2020-04-28   970  
9dd052474a2645 Lang Cheng    2021-01-30   971  	max_sge = srq->max_gs - srq->rsv_sge;
ffb1308b88b602 Yixian Liu    2020-04-28   972  	for (nreq = 0; wr; ++nreq, wr = wr->next) {
2e07a3d945851f Wenpeng Liang 2021-01-30   973  		ret = check_post_srq_valid(srq, max_sge, wr);
2e07a3d945851f Wenpeng Liang 2021-01-30   974  		if (ret) {
ffb1308b88b602 Yixian Liu    2020-04-28   975  			*bad_wr = wr;
ffb1308b88b602 Yixian Liu    2020-04-28   976  			break;
ffb1308b88b602 Yixian Liu    2020-04-28   977  		}
ffb1308b88b602 Yixian Liu    2020-04-28   978  
6b981e2bd9251f Xi Wang       2021-01-30   979  		ret = get_srq_wqe_idx(srq, &wqe_idx);
6b981e2bd9251f Xi Wang       2021-01-30   980  		if (unlikely(ret)) {
ffb1308b88b602 Yixian Liu    2020-04-28   981  			*bad_wr = wr;
ffb1308b88b602 Yixian Liu    2020-04-28   982  			break;
ffb1308b88b602 Yixian Liu    2020-04-28   983  		}
ffb1308b88b602 Yixian Liu    2020-04-28   984  
6b981e2bd9251f Xi Wang       2021-01-30   985  		wqe = get_srq_wqe_buf(srq, wqe_idx);
6b981e2bd9251f Xi Wang       2021-01-30   986  		fill_recv_sge_to_wqe(wr, wqe, max_sge, srq->rsv_sge);
2e07a3d945851f Wenpeng Liang 2021-01-30   987  		fill_wqe_idx(srq, wqe_idx);
ffb1308b88b602 Yixian Liu    2020-04-28   988  		srq->wrid[wqe_idx] = wr->wr_id;
ffb1308b88b602 Yixian Liu    2020-04-28   989  	}
ffb1308b88b602 Yixian Liu    2020-04-28   990  
ffb1308b88b602 Yixian Liu    2020-04-28   991  	if (likely(nreq)) {
14d4b5285cbe41 Yangyang Li   2023-09-20   992  		if (srq->cap_flags & HNS_ROCE_SRQ_CAP_RECORD_DB)
14d4b5285cbe41 Yangyang Li   2023-09-20   993  			*srq->rdb.db_record = srq->idx_que.head &
14d4b5285cbe41 Yangyang Li   2023-09-20   994  					      V2_DB_PRODUCER_IDX_M;
14d4b5285cbe41 Yangyang Li   2023-09-20   995  		else
14d4b5285cbe41 Yangyang Li   2023-09-20   996  			update_srq_db(srq);
ffb1308b88b602 Yixian Liu    2020-04-28   997  	}
ffb1308b88b602 Yixian Liu    2020-04-28   998  
ffb1308b88b602 Yixian Liu    2020-04-28   999  	spin_unlock_irqrestore(&srq->lock, flags);
ffb1308b88b602 Yixian Liu    2020-04-28  1000  
ffb1308b88b602 Yixian Liu    2020-04-28  1001  	return ret;
ffb1308b88b602 Yixian Liu    2020-04-28  1002  }
ffb1308b88b602 Yixian Liu    2020-04-28  1003  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2023-09-20  5:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-20  3:30 [PATCH for-next] RDMA/hns: Support SRQ record doorbell Junxian Huang
2023-09-20  5:17 ` kernel test robot [this message]
2023-09-26  9:30 ` Leon Romanovsky
2023-09-26 10:39   ` Junxian Huang

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=202309201334.ecTzlCD0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=huangjunxian6@hisilicon.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=oe-kbuild-all@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.