Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp461442rdb; Thu, 5 Oct 2023 10:48:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQX66i3xQNMexsAFPpUBP7qHP4q9pcXlWBLSXhRzQEz9zo/8UNz3RbCVtCwVoJ7rctjPgZ X-Received: by 2002:a17:902:6ac4:b0:1c6:d34:5279 with SMTP id i4-20020a1709026ac400b001c60d345279mr5630153plt.13.1696528125632; Thu, 05 Oct 2023 10:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696528125; cv=none; d=google.com; s=arc-20160816; b=iQsjF8X9iYMhJQ+IqYc5ofPh4f+kFlzIfLV39NEe3+0CSQnwnWdErR+f6LA5SMX/83 Fys6lod/HUmHuotEwM+wpovynndZJsbm/+H+f7njF53i2VcqiincG21E+dcFojjmzWdk OLiDvxBzZ/V+InAbw5wsPeW3iBlrG6QPgmECJysh6VZE5GjThAvufQUFRe9spCBXd2EW aWTrtqW4y8a/4E/cMXAmjRarGz+BNvg5O3mwVG96Mqtg2wrlUKAY26IawfecM4PGOI5J +pQW8qOZTG8T0egtSamCVJyTdnqKTgFS+I0iho30ISnHn14ysYVU5OPAbxksKGisheKU x9gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Cyfd8OwcJh+TnCbFFIsK8s4Jv9do7WNssIWaGuXij5w=; fh=W095SU3qdmxsTM29auvx59e2fdWsdtQ+IO/7+lgAflw=; b=nIf5SQTyFGJXQQvgBH7CnXtW7Zl744csvgd3KE6Yc4sNodb8iAg3UZ2Y+oF2va/1yL dLSd+jhG3Z/zI/akWInUpBzFY+Dqv2frpqzaQXscS72m2SkLCRumit84L3VlJP/T6RTk ebcNyBENsyg0+vYGOLTtrMVEQdtrxHtnQRkM9xtovzBFJJe+miazOt723iCbp34x8PdE f1TcJwdbgyYeQzmxWKBDxBOLF814nxVVYrVpS/698EL4Gi1TlBwYMjzTXZp3VbNh4Czq mBJBVY+zn7qI9CfXii/gz66m9gW5OnjzZ8fji29mPtrqZ5nLDh7vikp5GpGj1NWRKS8o IH1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Owds59HO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i17-20020a170902c95100b001b9dda4e1e7si2084300pla.154.2023.10.05.10.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 10:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Owds59HO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9510E804F60A; Thu, 5 Oct 2023 10:48:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbjJERsJ (ORCPT + 99 others); Thu, 5 Oct 2023 13:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbjJERri (ORCPT ); Thu, 5 Oct 2023 13:47:38 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C112AC6; Thu, 5 Oct 2023 10:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696528056; x=1728064056; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m2KYgIJRlXqKxK7hnx7y4PECzNsQwX7LLE3ZQMk+OyI=; b=Owds59HOIwsn26C5y+acD5+rqcfnqz0U/W9s3DCU9up2NOhquY0Ihckv v7LKBeltlyak5w1SrUNR6XMxyoEdOk1r2JBqeNH5oHhM8aeAjhrb6dzZj pzBwoOnbP18l2aoKliYsyYMtNWwUNwJcJEYYO3XtprDbcwKzIVGv+txUN pawjaOon9JtAzEXNDFHj7bsW97XLj5omNKP2I2LDEv8CdSZc8Ra++T1qe 5ZQeZiOaNL/RUM08n4kB5g4rp6WWnZkcd9Dzdy60xRyRcukGNCLwpGDx+ Vs/NlpbR1RrvDXH/LUVQt2+KKleRbKsCmd+mlAhgfUHP9Umuq3on9YW1V A==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="387444251" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="387444251" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 10:47:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="999034222" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="999034222" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 05 Oct 2023 10:47:33 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qoSRf-000Ljc-1n; Thu, 05 Oct 2023 17:47:31 +0000 Date: Fri, 6 Oct 2023 01:46:59 +0800 From: kernel test robot To: Sergey Khimich , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Eugeniy Paltsev , Vinod Koul , Philipp Zabel Subject: Re: [PATCH] dmaengine: dw-axi-dmac: Add support DMAX_NUM_CHANNELS > 16 Message-ID: <202310060144.oLP6NoVL-lkp@intel.com> References: <20231005113638.2039726-1-serghox@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231005113638.2039726-1-serghox@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 10:48:44 -0700 (PDT) Hi Sergey, kernel test robot noticed the following build warnings: [auto build test WARNING on vkoul-dmaengine/next] [also build test WARNING on linus/master v6.6-rc4 next-20231005] [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/Sergey-Khimich/dmaengine-dw-axi-dmac-Add-support-DMAX_NUM_CHANNELS-16/20231006-002509 base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next patch link: https://lore.kernel.org/r/20231005113638.2039726-1-serghox%40gmail.com patch subject: [PATCH] dmaengine: dw-axi-dmac: Add support DMAX_NUM_CHANNELS > 16 config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231006/202310060144.oLP6NoVL-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231006/202310060144.oLP6NoVL-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310060144.oLP6NoVL-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c: In function 'axi_chan_disable': >> drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:202:33: warning: left shift count >= width of type [-Wshift-count-overflow] 202 | << (DMAC_CHAN_EN_SHIFT + DMAC_CHAN_BLOCK_SHIFT)); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:204:33: warning: left shift count >= width of type [-Wshift-count-overflow] 204 | << (DMAC_CHAN_EN2_WE_SHIFT + DMAC_CHAN_BLOCK_SHIFT); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c: In function 'axi_chan_enable': drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:229:33: warning: left shift count >= width of type [-Wshift-count-overflow] 229 | << (DMAC_CHAN_EN_SHIFT + DMAC_CHAN_BLOCK_SHIFT) | | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:231:33: warning: left shift count >= width of type [-Wshift-count-overflow] 231 | << (DMAC_CHAN_EN2_WE_SHIFT + DMAC_CHAN_BLOCK_SHIFT); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c: In function 'axi_chan_is_hw_enable': drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:260:66: warning: left shift count >= width of type [-Wshift-count-overflow] 260 | return !!(val & ((BIT(chan->id) >> DMAC_CHAN_16) << DMAC_CHAN_BLOCK_SHIFT)); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c: In function 'dma_chan_pause': drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1232:33: warning: left shift count >= width of type [-Wshift-count-overflow] 1232 | << (DMAC_CHAN_SUSP2_SHIFT + DMAC_CHAN_BLOCK_SHIFT) | | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1234:33: warning: left shift count >= width of type [-Wshift-count-overflow] 1234 | << (DMAC_CHAN_SUSP2_WE_SHIFT + DMAC_CHAN_BLOCK_SHIFT); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c: In function 'axi_chan_resume': drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1279:33: warning: left shift count >= width of type [-Wshift-count-overflow] 1279 | << (DMAC_CHAN_SUSP2_SHIFT + DMAC_CHAN_BLOCK_SHIFT)); | ^~ drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1281:33: warning: left shift count >= width of type [-Wshift-count-overflow] 1281 | << (DMAC_CHAN_SUSP2_WE_SHIFT + DMAC_CHAN_BLOCK_SHIFT)); | ^~ vim +202 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c 193 194 static inline void axi_chan_disable(struct axi_dma_chan *chan) 195 { 196 u64 val; 197 198 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { 199 val = axi_dma_ioread64(chan->chip, DMAC_CHEN); 200 if (chan->id >= DMAC_CHAN_16) { 201 val &= ~((BIT(chan->id) >> DMAC_CHAN_16) > 202 << (DMAC_CHAN_EN_SHIFT + DMAC_CHAN_BLOCK_SHIFT)); 203 val |= (BIT(chan->id) >> DMAC_CHAN_16) 204 << (DMAC_CHAN_EN2_WE_SHIFT + DMAC_CHAN_BLOCK_SHIFT); 205 } else { 206 val &= ~(BIT(chan->id) << DMAC_CHAN_EN_SHIFT); 207 val |= BIT(chan->id) << DMAC_CHAN_EN2_WE_SHIFT; 208 } 209 axi_dma_iowrite64(chan->chip, DMAC_CHEN, val); 210 } else { 211 val = axi_dma_ioread32(chan->chip, DMAC_CHEN); 212 val &= ~(BIT(chan->id) << DMAC_CHAN_EN_SHIFT); 213 if (chan->chip->dw->hdata->reg_map_8_channels) 214 val |= BIT(chan->id) << DMAC_CHAN_EN_WE_SHIFT; 215 else 216 val |= BIT(chan->id) << DMAC_CHAN_EN2_WE_SHIFT; 217 axi_dma_iowrite32(chan->chip, DMAC_CHEN, (u32)val); 218 } 219 } 220 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki