Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1779084imi; Sat, 23 Jul 2022 17:53:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vcsCsdWJlAKvcWL9UfQpbfxbvGQSEvyJJlUY9BhbIBQ1/OkWvZvcDGqoNxZPA50pxeCT0l X-Received: by 2002:a17:90a:1117:b0:1f0:5361:1712 with SMTP id d23-20020a17090a111700b001f053611712mr7316221pja.239.1658624011784; Sat, 23 Jul 2022 17:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658624011; cv=none; d=google.com; s=arc-20160816; b=PNrKAS+NLI3kZms548wX7dJCuBUIOdEwoJqJ8kLnccaZr+qT7EByqxJZka3f0fvl+a uj7rVMqX9CCjHdsNN8WCELsnAPw/08Y63SISV2FJkHkOJ/MuKMdRI0QPgOLbL39MSBlC EQjSwtkEND+lc9Y1rfv1ie85XJveFm0VXQd3iZSlsPF65Mt3FnCL9fAnFAghrx4ZaNtf JiaIpEPH8a4iyoYJxggNnqL489w2jsegAEbYEwD7bglWd+Fy/qCV7KkTe5Hva7+tz3o4 7c5BCYn1HWCYzXkUjUy/h9bYa/1T1PuRtlCYZ73KivaiprM69WH/QE75AAsEf3fWqlGs OEwQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CKm+DMfuxNOVPIKny/OSMeqUyrjS8+Y6lu6+j4Z5Vcc=; b=wHqrImIYW3I4iKMo42T28+9Tst5RN4965OPC5tXMpPmofT6W8B0rJdtiA25W3jbqWy aFVvsmsI+SeW2f9ymI6+cGwfugHNytUx8mpYqIju4Km1F1tVBug1EAlfylhQcFyWorQa oHGmlMgsQyQtXQ7Eb61VsVyXBOp84cRffIjN1s2tDZSM1WTc5tD9mZVtdGSF9o/9lo67 pf0VNqSgqw20+cwhGEGIOaTj3vmM6AQIVqxT/B8YeXZswjf6bNqq6/w/bY165awBh2ib 91hZTSFqKy3JpTI68pRG0n9h2x8FPkWTi/0nOXG59aQ4QAqSwQ/BfRt37UasF4Z0xRpJ qOVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WIEN0zIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a63e747000000b003fcdc3249b8si10962181pgk.494.2022.07.23.17.53.15; Sat, 23 Jul 2022 17:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WIEN0zIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236125AbiGXAoX (ORCPT + 99 others); Sat, 23 Jul 2022 20:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiGXAoV (ORCPT ); Sat, 23 Jul 2022 20:44:21 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD71317064; Sat, 23 Jul 2022 17:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658623460; x=1690159460; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=p8OqWEFGhu6pLUfSsWTBU7kSxbLrZ2r0vLX0FImwX1o=; b=WIEN0zIoav+0nfx5IK14xbkAw7mvdabPFY+3vDNj9IOgQv63fTZLrm6m D1wb3Zfg5deaAK+maTO+QwxrKVSkZc0EKlPzHqT27wUlXPq2TdaLhB5hm /cvzfS6dlQVK7wJMeee3f48PD7ZTnSBgvP0/zRmCqbcPsy4oL97vQ4hVU jqj6Naa2P3yGGyxSSIr8AAXPfXBJVItwBCHuO3cqSmMZ6f+d7eaO6Vkzr j0mTCinsVvfePow4AEynHIIjkFjNTCGKHBEl4uzMPbxXhFb9Kq7LPLk0a X4+BINzi387h95pF7hCX6mlkgp6H7WS+wmDKtrsAnEr8P4P51BcVxkLJN g==; X-IronPort-AV: E=McAfee;i="6400,9594,10417"; a="267895880" X-IronPort-AV: E=Sophos;i="5.93,189,1654585200"; d="scan'208";a="267895880" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2022 17:44:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,189,1654585200"; d="scan'208";a="845131504" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 23 Jul 2022 17:44:15 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oFPjC-0003Iz-1A; Sun, 24 Jul 2022 00:44:14 +0000 Date: Sun, 24 Jul 2022 08:43:18 +0800 From: kernel test robot To: =?utf-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: kbuild-all@lists.01.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, aidanmacdonald.0x0@gmail.com, tmn505@gmail.com, paul@crapouillou.net, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, jinghui.liu@ingenic.com, sernia.zhou@foxmail.com, reimu@sudomaker.com Subject: Re: [PATCH 3/3] SPI: Ingenic: Add SFC support for Ingenic SoCs. Message-ID: <202207240839.YeZ8uQ0T-lkp@intel.com> References: <1658508510-15400-4-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1658508510-15400-4-git-send-email-zhouyanjie@wanyeetech.com> X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Hi "周琰杰, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on broonie-spi/for-next] [also build test WARNING on mtd/spi-nor/next linus/master v5.19-rc7 next-20220722] [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/Zhou-Yanjie/Add-SFC-support-for-Ingenic-SoCs/20220723-005011 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220724/202207240839.YeZ8uQ0T-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.1.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/0d9d0e60238025a04d428e64e18211c037229284 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zhou-Yanjie/Add-SFC-support-for-Ingenic-SoCs/20220723-005011 git checkout 0d9d0e60238025a04d428e64e18211c037229284 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/spi/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/spi/spi-ingenic-sfc.c: In function 'ingenic_sfc_exec_op_pio': >> drivers/spi/spi-ingenic-sfc.c:299:16: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709551595' to '4294967275' [-Woverflow] 299 | writel(~(INTC_MASK_END | INTC_MASK_RREQ), sfc->base + SFC_REG_INTC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/spi/spi-ingenic-sfc.c: In function 'ingenic_sfc_exec_op_dma': drivers/spi/spi-ingenic-sfc.c:356:16: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709551599' to '4294967279' [-Woverflow] 356 | writel(~INTC_MASK_END, sfc->base + SFC_REG_INTC); drivers/spi/spi-ingenic-sfc.c: In function 'ingenic_sfc_poll_status': drivers/spi/spi-ingenic-sfc.c:469:16: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709551599' to '4294967279' [-Woverflow] 469 | writel(~INTC_MASK_END, sfc->base + SFC_REG_INTC); vim +299 drivers/spi/spi-ingenic-sfc.c 267 268 static int ingenic_sfc_exec_op_pio(struct ingenic_sfc *sfc, const struct spi_mem_op *op) 269 { 270 int ret, val; 271 272 val = readl(sfc->base + SFC_REG_GLB); 273 u32p_replace_bits(&val, GLB_TRAN_DIR_READ, GLB_TRAN_DIR_MASK); 274 u32p_replace_bits(&val, GLB_OP_MODE_SLAVE, GLB_OP_MODE_MASK); 275 writel(val, sfc->base + SFC_REG_GLB); 276 277 val = TRAN_CONF_CMD_EN | op->cmd.opcode; 278 279 if (op->addr.nbytes > 0) { 280 val |= FIELD_PREP(TRAN_CONF_ADDR_WIDTH_MASK, op->addr.nbytes); 281 282 writel(op->addr.val & 0xffffffff, sfc->base + SFC_REG_DEV_ADDR(0)); 283 writel(op->addr.val >> 32, sfc->base + SFC_REG_DEV_ADDR_PLUS(0)); 284 } 285 286 if (op->dummy.nbytes > 0) 287 val |= FIELD_PREP(TRAN_CONF_DMY_BITS_MASK, 288 op->dummy.nbytes * 8 / op->dummy.buswidth); 289 290 if (op->data.nbytes > 0) 291 val |= TRAN_CONF_DATA_EN; 292 293 writel(val, sfc->base + SFC_REG_TRAN_CONF(0)); 294 writel(op->data.nbytes, sfc->base + SFC_REG_TRAN_LEN); 295 296 ingenic_sfc_set_transfer_mode(sfc, op); 297 298 writel(0x1f, sfc->base + SFC_REG_SCR); > 299 writel(~(INTC_MASK_END | INTC_MASK_RREQ), sfc->base + SFC_REG_INTC); 300 301 writel(0, sfc->base + SFC_REG_MEM_ADDR); 302 303 writel(TRIG_FLUSH, sfc->base + SFC_REG_TRIG); 304 writel(TRIG_START, sfc->base + SFC_REG_TRIG); 305 306 ret = wait_for_completion_timeout(&sfc->completion, 307 msecs_to_jiffies(INGENIC_SFC_TRANSFER_TIMEOUT)); 308 if (!ret) { 309 writel(0x1f, sfc->base + SFC_REG_INTC); 310 writel(0x1f, sfc->base + SFC_REG_SCR); 311 dev_err(sfc->dev, "line:%d Timeout for ACK from SFC device\n", __LINE__); 312 return -ETIMEDOUT; 313 } 314 315 ingenic_sfc_read_rxfifo(sfc, op->data.buf.in, op->data.nbytes); 316 readl_poll_timeout(sfc->base + SFC_REG_SR, val, val & SR_END, 10, 0); 317 318 writel(INTC_MASK_END | INTC_MASK_RREQ, sfc->base + SFC_REG_SCR); 319 writel(TRIG_STOP, sfc->base + SFC_REG_TRIG); 320 321 return 0; 322 } 323 -- 0-DAY CI Kernel Test Service https://01.org/lkp