Content-Type: multipart/mixed; boundary="===============0653276602590999675==" MIME-Version: 1.0 From: haijie To: kbuild-all@lists.01.org Subject: Re: [PATCH 2/8] dmaengine: hisilicon: Fix CQ head update Date: Mon, 27 Jun 2022 06:55:40 +0000 Message-ID: <25b3ee4b9c574856aee9ed9c5293d43f@huawei.com> In-Reply-To: <202206262132.9GLS9dHC-lkp@intel.com> List-Id: --===============0653276602590999675== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, kernel test robot, Thanks and this will be corrected in the next version. -----Original Message----- From: kernel test robot [mailto:lkp(a)intel.com] = Sent: Sunday, June 26, 2022 9:38 PM To: haijie ; vkoul(a)kernel.org; Wangzhou (B) Cc: kbuild-all(a)lists.01.org; dmaengine(a)vger.kernel.org; linux-kernel(a)= vger.kernel.org Subject: Re: [PATCH 2/8] dmaengine: hisilicon: Fix CQ head update Hi Jie, Thank you for the patch! Yet something to improve: [auto build test ERROR on vkoul-dmaengine/next] [also build test ERROR on l= inus/master v5.19-rc3 next-20220624] [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 http= s://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Jie-Hai/dmaengine-hi= silicon-Add-support-for-hisi-dma-driver/20220625-154524 base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git= next config: arc-allyesconfig compiler: arceb-elf-gcc (GCC) 11.3.0 reproduce (this is a W=3D1 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/4a79d13d35e4f95c88b= c0dfb44923dbd030bb126 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jie-Hai/dmaengine-hisilicon-Add-su= pport-for-hisi-dma-driver/20220625-154524 git checkout 4a79d13d35e4f95c88bc0dfb44923dbd030bb126 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.3.0 make.cross= W=3D1 O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: the linux-review/Jie-Hai/dmaengine-hisilicon-Add-support-for-hisi-dma= -driver/20220625-154524 HEAD e823cc5940ad1d20993113591a7ba26946ae0840 build= s fine. It only hurts bisectability. All errors (new ones prefixed by >>): drivers/dma/hisi_dma.c: In function 'hisi_dma_irq': >> drivers/dma/hisi_dma.c:441:37: error: 'q_base' undeclared (first use = >> in this function) 441 | hisi_dma_chan_write(q_base, HISI_DMA_Q_CQ_HEAD_P= TR, | ^~~~~~ drivers/dma/hisi_dma.c:441:37: note: each undeclared identifier is repor= ted only once for each function it appears in >> drivers/dma/hisi_dma.c:441:45: error: 'HISI_DMA_Q_CQ_HEAD_PTR' undeclare= d (first use in this function); did you mean 'HISI_DMA_CQ_HEAD_PTR'? 441 | hisi_dma_chan_write(q_base, HISI_DMA_Q_CQ_HEAD_P= TR, | ^~~~~~~~~~~~~~~~~~~~= ~~ | HISI_DMA_CQ_HEAD_PTR vim +/q_base +441 drivers/dma/hisi_dma.c 426 = 427 static irqreturn_t hisi_dma_irq(int irq, void *data) 428 { 429 struct hisi_dma_chan *chan =3D data; 430 struct hisi_dma_dev *hdma_dev =3D chan->hdma_dev; 431 struct hisi_dma_desc *desc; 432 struct hisi_dma_cqe *cqe; 433 = 434 spin_lock(&chan->vc.lock); 435 = 436 desc =3D chan->desc; 437 cqe =3D chan->cq + chan->cq_head; 438 if (desc) { 439 chan->cq_head =3D (chan->cq_head + 1) % 440 hdma_dev->chan_depth; > 441 hisi_dma_chan_write(q_base, HISI_DMA_Q_CQ_HEAD_PTR, 442 chan->qp_num, chan->cq_head); 443 if (FIELD_GET(STATUS_MASK, cqe->w0) =3D=3D STATUS_SUCC) { 444 vchan_cookie_complete(&desc->vd); 445 } else { 446 dev_err(&hdma_dev->pdev->dev, "task error!\n"); 447 } 448 = 449 chan->desc =3D NULL; 450 } 451 = 452 spin_unlock(&chan->vc.lock); 453 = 454 return IRQ_HANDLED; 455 } 456 = -- 0-DAY CI Kernel Test Service https://01.org/lkp --===============0653276602590999675==--