From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3661C54EE9 for ; Sat, 17 Sep 2022 14:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229505AbiIQOJE (ORCPT ); Sat, 17 Sep 2022 10:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiIQOJD (ORCPT ); Sat, 17 Sep 2022 10:09:03 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E4730556; Sat, 17 Sep 2022 07:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663423742; x=1694959742; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yGIXuREaWoLe0WPT2nvuRiw9PSzoGU9WanFwfFa5ATk=; b=GksfVfVzN0NfNALqb/JHRpqyl45yos4B1aqwxd7kj68eVm4sanYsRhdE WSUNTyPn01OPp6UbZe1mD2bn3WdxdLoYdyF2wTTM27C3qZ6yNdePtqpq0 FoID1ZIPhHwvp8d5JKAIF31Pk7InaUQ9Ut4itWOGAVq24e348XFiMn05N 6I5Yzcw6h5kSg3gWkC7edg1njVkp784qG6VoRUvEuD/66JPB3kr6NRvVg DV/enJRbyg5VmgsMcpgf1wpf+OanuFn1eNoIrvs47CsIxMbvrd2+ms6OE 2eSWSQBpChrWpOj7yNkISRVYJOqo/9ki4qZb6HvJEI7ZykfILt1IU/IN9 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="299977728" X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="299977728" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2022 07:09:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="569136903" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 17 Sep 2022 07:08:59 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZYV8-0000OF-2a; Sat, 17 Sep 2022 14:08:58 +0000 Date: Sat, 17 Sep 2022 22:08:29 +0800 From: kernel test robot To: Lizhi Hou , vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, trix@redhat.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Lizhi Hou , max.zhen@amd.com, sonal.santan@amd.com, larry.liu@amd.com, brian.xu@amd.com Subject: Re: [PATCH V2 XDMA 1/1] dmaengine: xilinx: xdma: add xilinx xdma driver Message-ID: <202209172136.OvN8TzRL-lkp@intel.com> References: <1663341985-65589-2-git-send-email-lizhi.hou@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1663341985-65589-2-git-send-email-lizhi.hou@amd.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Hi Lizhi, I love your patch! Yet something to improve: [auto build test ERROR on vkoul-dmaengine/next] [also build test ERROR on linus/master v6.0-rc5 next-20220916] [cannot apply to xilinx-xlnx/master] [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/Lizhi-Hou/xilinx-XDMA-driver/20220916-232740 base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next config: arm-randconfig-r003-20220918 (https://download.01.org/0day-ci/archive/20220917/202209172136.OvN8TzRL-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/f624c2f1706209a308a17cc8799995dc478c3d00 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Lizhi-Hou/xilinx-XDMA-driver/20220916-232740 git checkout f624c2f1706209a308a17cc8799995dc478c3d00 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma/xilinx/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/dma/xilinx/xdma.c:540:7: error: incompatible pointer types assigning to 'u64 *' (aka 'unsigned long long *') from 'dma_addr_t *' (aka 'unsigned int *') [-Werror,-Wincompatible-pointer-types] src = &addr; ^ ~~~~~ drivers/dma/xilinx/xdma.c:545:7: error: incompatible pointer types assigning to 'u64 *' (aka 'unsigned long long *') from 'dma_addr_t *' (aka 'unsigned int *') [-Werror,-Wincompatible-pointer-types] dst = &addr; ^ ~~~~~ 2 errors generated. vim +540 drivers/dma/xilinx/xdma.c 504 505 /** 506 * xdma_prep_device_sg - prepare a descriptor for a 507 * DMA transaction 508 * @chan: DMA channel pointer 509 * @sgl: Transfer scatter gather list 510 * @sg_len: Length of scatter gather list 511 * @dir: Transfer direction 512 * @flags: transfer ack flags 513 * @context: APP words of the descriptor 514 */ 515 static struct dma_async_tx_descriptor * 516 xdma_prep_device_sg(struct dma_chan *chan, struct scatterlist *sgl, 517 unsigned int sg_len, enum dma_transfer_direction dir, 518 unsigned long flags, void *context) 519 { 520 struct xdma_chan *xdma_chan = to_xdma_chan(chan); 521 struct dma_async_tx_descriptor *tx_desc; 522 u32 desc_num = 0, i, len, rest; 523 struct xdma_desc_block *dblk; 524 struct xdma_desc *sw_desc; 525 struct scatterlist *sg; 526 dma_addr_t addr; 527 u64 dev_addr, *src, *dst; 528 struct xdma_hw_desc *desc; 529 530 for_each_sg(sgl, sg, sg_len, i) 531 desc_num += DIV_ROUND_UP(sg_dma_len(sg), XDMA_DESC_BLEN_MAX); 532 533 sw_desc = xdma_alloc_desc(xdma_chan, desc_num); 534 if (!sw_desc) 535 return NULL; 536 sw_desc->dir = dir; 537 538 if (dir == DMA_MEM_TO_DEV) { 539 dev_addr = xdma_chan->cfg.dst_addr; > 540 src = &addr; 541 dst = &dev_addr; 542 } else { 543 dev_addr = xdma_chan->cfg.src_addr; 544 src = &dev_addr; 545 dst = &addr; 546 } 547 548 dblk = sw_desc->desc_blocks; 549 desc = dblk->virt_addr; 550 desc_num = 1; 551 for_each_sg(sgl, sg, sg_len, i) { 552 addr = sg_dma_address(sg); 553 rest = sg_dma_len(sg); 554 555 do { 556 len = min_t(u32, rest, XDMA_DESC_BLEN_MAX); 557 /* set hardware descriptor */ 558 desc->bytes = cpu_to_le32(len); 559 desc->src_addr = cpu_to_le64(*src); 560 desc->dst_addr = cpu_to_le64(*dst); 561 562 if (!(desc_num & XDMA_DESC_ADJACENT_MASK)) { 563 dblk++; 564 desc = dblk->virt_addr; 565 } else { 566 desc++; 567 } 568 569 desc_num++; 570 dev_addr += len; 571 addr += len; 572 rest -= len; 573 } while (rest); 574 } 575 576 tx_desc = vchan_tx_prep(&xdma_chan->vchan, &sw_desc->vdesc, flags); 577 if (!tx_desc) 578 goto failed; 579 580 return tx_desc; 581 582 failed: 583 xdma_free_desc(&sw_desc->vdesc); 584 585 return NULL; 586 } 587 -- 0-DAY CI Kernel Test Service https://01.org/lkp