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 E7080C433F5 for ; Mon, 11 Apr 2022 12:04:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345952AbiDKMGc (ORCPT ); Mon, 11 Apr 2022 08:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343842AbiDKMG1 (ORCPT ); Mon, 11 Apr 2022 08:06:27 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411F9B879; Mon, 11 Apr 2022 05:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649678652; x=1681214652; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=o3dD+/n6JyhaejWNWTKICDnSKZHjfajSAJG8ZEeyBzY=; b=BQzAJSGsWLCKN3+ncNNkTvNY3iaJDJeEg409cqoipmJaGduAWaZ/yJdX wj1VhSlJGuoJXuxjnp6Idcf3g5Ft//TlNVrQs58cdznrDXXfNagF829tO VvB5ROoxiwB75qDwi1/W9Vy4NFdIRchLkdPpiDubKkoWGwRpWEtvuqNCq 77+hiYRuFLuRRwFxX9bF6sHC2eP8Akvo2D+wOLJl6nBssaN0lKjLuG0tN QGMqSYohxvVQI0k9IZL47HxvjdQzfOaKg7pVW6MzKTd5WT5WJH5/q19Bm kf8ywtAce+aiUuGxvUK5JYpsDCe0JoRJ3gmnlxj+B2c7fxyBxPQvgbMUO Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="249379783" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="249379783" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 05:04:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="699347471" Received: from lkp-server02.sh.intel.com (HELO d3fc50ef50de) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 11 Apr 2022 05:03:58 -0700 Received: from kbuild by d3fc50ef50de with local (Exim 4.95) (envelope-from ) id 1ndslx-0001pL-T7; Mon, 11 Apr 2022 12:03:57 +0000 Date: Mon, 11 Apr 2022 20:03:46 +0800 From: kernel test robot To: Samuel Holland , Vinod Koul , dmaengine@vger.kernel.org Cc: kbuild-all@lists.01.org, Samuel Holland , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH v2 3/4] dmaengine: sun6i: Add support for 34-bit physical addresses Message-ID: <202204111937.ZQ1e600D-lkp@intel.com> References: <20220411044633.39014-4-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220411044633.39014-4-samuel@sholland.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Samuel, I love your patch! Perhaps something to improve: [auto build test WARNING on vkoul-dmaengine/next] [also build test WARNING on sunxi/sunxi/for-next v5.18-rc2 next-20220411] [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/intel-lab-lkp/linux/commits/Samuel-Holland/dmaengine-sun6i-Allwinner-D1-support/20220411-124826 base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next config: nios2-randconfig-r011-20220410 (https://download.01.org/0day-ci/archive/20220411/202204111937.ZQ1e600D-lkp@intel.com/config) compiler: nios2-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/intel-lab-lkp/linux/commit/2e9c7977b871d504bca4e9ee88d3b322a21f3fb7 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Samuel-Holland/dmaengine-sun6i-Allwinner-D1-support/20220411-124826 git checkout 2e9c7977b871d504bca4e9ee88d3b322a21f3fb7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/dma/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/dmaengine.h:8, from drivers/dma/sun6i-dma.c:12: drivers/dma/sun6i-dma.c: In function 'sun6i_dma_dump_chan_regs': drivers/dma/sun6i-dma.c:259:34: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'int' [-Wformat=] 259 | dev_dbg(sdev->slave.dev, "Chan %d reg: 0x%lx\n" | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk' 129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:158:37: note: in expansion of macro 'dev_fmt' 158 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/dma/sun6i-dma.c:259:9: note: in expansion of macro 'dev_dbg' 259 | dev_dbg(sdev->slave.dev, "Chan %d reg: 0x%lx\n" | ^~~~~~~ drivers/dma/sun6i-dma.c:259:52: note: format string is defined here 259 | dev_dbg(sdev->slave.dev, "Chan %d reg: 0x%lx\n" | ~~^ | | | long unsigned int | %x drivers/dma/sun6i-dma.c: In function 'sun6i_dma_prep_dma_memcpy': >> drivers/dma/sun6i-dma.c:99:48: warning: right shift count >= width of type [-Wshift-count-overflow] 99 | #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) | ^~ drivers/dma/sun6i-dma.c:674:32: note: in expansion of macro 'SET_SRC_HIGH_ADDR' 674 | v_lli->para |= SET_SRC_HIGH_ADDR(src) | | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c:100:48: warning: right shift count >= width of type [-Wshift-count-overflow] 100 | #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) | ^~ drivers/dma/sun6i-dma.c:675:32: note: in expansion of macro 'SET_DST_HIGH_ADDR' 675 | SET_DST_HIGH_ADDR(dest); | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c: In function 'sun6i_dma_prep_slave_sg': >> drivers/dma/sun6i-dma.c:99:48: warning: right shift count >= width of type [-Wshift-count-overflow] 99 | #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) | ^~ drivers/dma/sun6i-dma.c:737:48: note: in expansion of macro 'SET_SRC_HIGH_ADDR' 737 | v_lli->para |= SET_SRC_HIGH_ADDR(sg_dma_address(sg)) | | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c:100:48: warning: right shift count >= width of type [-Wshift-count-overflow] 100 | #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) | ^~ drivers/dma/sun6i-dma.c:738:48: note: in expansion of macro 'SET_DST_HIGH_ADDR' 738 | SET_DST_HIGH_ADDR(sconfig->dst_addr); | ^~~~~~~~~~~~~~~~~ >> drivers/dma/sun6i-dma.c:99:48: warning: right shift count >= width of type [-Wshift-count-overflow] 99 | #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) | ^~ drivers/dma/sun6i-dma.c:753:48: note: in expansion of macro 'SET_SRC_HIGH_ADDR' 753 | v_lli->para |= SET_SRC_HIGH_ADDR(sconfig->src_addr) | | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c:100:48: warning: right shift count >= width of type [-Wshift-count-overflow] 100 | #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) | ^~ drivers/dma/sun6i-dma.c:754:48: note: in expansion of macro 'SET_DST_HIGH_ADDR' 754 | SET_DST_HIGH_ADDR(sg_dma_address(sg)); | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c: In function 'sun6i_dma_prep_dma_cyclic': >> drivers/dma/sun6i-dma.c:99:48: warning: right shift count >= width of type [-Wshift-count-overflow] 99 | #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) | ^~ drivers/dma/sun6i-dma.c:826:48: note: in expansion of macro 'SET_SRC_HIGH_ADDR' 826 | v_lli->para |= SET_SRC_HIGH_ADDR(buf_addr + period_len * i) | | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c:100:48: warning: right shift count >= width of type [-Wshift-count-overflow] 100 | #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) | ^~ drivers/dma/sun6i-dma.c:827:48: note: in expansion of macro 'SET_DST_HIGH_ADDR' 827 | SET_DST_HIGH_ADDR(sconfig->dst_addr); | ^~~~~~~~~~~~~~~~~ >> drivers/dma/sun6i-dma.c:99:48: warning: right shift count >= width of type [-Wshift-count-overflow] 99 | #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) | ^~ drivers/dma/sun6i-dma.c:835:48: note: in expansion of macro 'SET_SRC_HIGH_ADDR' 835 | v_lli->para |= SET_SRC_HIGH_ADDR(sconfig->src_addr) | | ^~~~~~~~~~~~~~~~~ drivers/dma/sun6i-dma.c:100:48: warning: right shift count >= width of type [-Wshift-count-overflow] 100 | #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) | ^~ drivers/dma/sun6i-dma.c:836:48: note: in expansion of macro 'SET_DST_HIGH_ADDR' 836 | SET_DST_HIGH_ADDR(buf_addr + period_len * i); | ^~~~~~~~~~~~~~~~~ vim +99 drivers/dma/sun6i-dma.c 92 93 /* 94 * LLI address mangling 95 * 96 * The LLI link physical address is also mangled, but we avoid dealing 97 * with that by allocating LLIs from the DMA32 zone. 98 */ > 99 #define SET_SRC_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 16) 100 #define SET_DST_HIGH_ADDR(x) ((((x) >> 32) & 0x3U) << 18) 101 -- 0-DAY CI Kernel Test Service https://01.org/lkp