public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	shawnguo@kernel.org, s.hauer@pengutronix.de
Cc: kbuild-all@lists.01.org, aisheng.dong@nxp.com,
	l.stach@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, linux-imx@nxp.com,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH V5 3/6] soc: imx: add i.MX93 SRC power domain driver
Date: Sat, 16 Jul 2022 03:02:15 +0800	[thread overview]
Message-ID: <202207160211.szAgqVtl-lkp@intel.com> (raw)
In-Reply-To: <20220711062452.3575032-4-peng.fan@oss.nxp.com>

Hi "Peng,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on shawnguo/for-next]
[also build test WARNING on linus/master v5.19-rc6 next-20220715]
[cannot apply to robh/for-next]
[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/Peng-Fan-OSS/imx-support-i-MX93-SRC-and-mediamix-blk-ctrl/20220711-142509
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
config: nios2-randconfig-s042-20220715 (https://download.01.org/0day-ci/archive/20220716/202207160211.szAgqVtl-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/intel-lab-lkp/linux/commit/f4041693bcbc49608e02f34daad89d9ace678cfd
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Peng-Fan-OSS/imx-support-i-MX93-SRC-and-mediamix-blk-ctrl/20220711-142509
        git checkout f4041693bcbc49608e02f34daad89d9ace678cfd
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/iio/adc/ drivers/soc/imx/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/soc/imx/imx93-pd.c:48:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:48:26: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:48:26: sparse:     got void *
>> drivers/soc/imx/imx93-pd.c:50:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:50:26: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:50:26: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:52:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:52:15: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:52:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:52:15: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:70:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:70:26: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:70:26: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:72:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:72:26: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:72:26: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:74:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:74:15: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:74:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:74:15: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:111:22: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[noderef] addr @@     got void [noderef] __iomem * @@
   drivers/soc/imx/imx93-pd.c:111:22: sparse:     expected void *[noderef] addr
   drivers/soc/imx/imx93-pd.c:111:22: sparse:     got void [noderef] __iomem *
   drivers/soc/imx/imx93-pd.c:125:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/soc/imx/imx93-pd.c:125:47: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/imx/imx93-pd.c:125:47: sparse:     got void *
   drivers/soc/imx/imx93-pd.c:38:31: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:48:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:48:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:50:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:50:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:52:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:65:31: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:70:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:70:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:72:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:72:21: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:74:15: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:112:20: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:112:20: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:113:32: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:113:32: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:125:34: sparse: sparse: dereference of noderef expression
   drivers/soc/imx/imx93-pd.c:125:34: sparse: sparse: dereference of noderef expression

vim +48 drivers/soc/imx/imx93-pd.c

    34	
    35	static int imx93_pd_on(struct generic_pm_domain *genpd)
    36	{
    37		struct imx93_power_domain *domain = to_imx93_pd(genpd);
    38		void * __iomem addr = domain->addr;
    39		u32 val;
    40		int ret;
    41	
    42		ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks);
    43		if (ret) {
    44			dev_err(domain->dev, "failed to enable clocks for domain: %s\n", genpd->name);
    45			return ret;
    46		}
    47	
  > 48		val = readl(addr + MIX_SLICE_SW_CTRL_OFF);
    49		val &= ~SLICE_SW_CTRL_PDN_SOFT_MASK;
  > 50		writel(val, addr + MIX_SLICE_SW_CTRL_OFF);
    51	
    52		ret = readl_poll_timeout(addr + MIX_FUNC_STAT_OFF, val,
    53					 !(val & FUNC_STAT_ISO_STAT_MASK), 1, 10000);
    54		if (ret) {
    55			dev_err(domain->dev, "pd_on timeout: name: %s, stat: %x\n", genpd->name, val);
    56			return ret;
    57		}
    58	
    59		return 0;
    60	}
    61	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  parent reply	other threads:[~2022-07-15 19:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11  6:24 [PATCH V5 0/6] imx: support i.MX93 SRC and mediamix blk ctrl Peng Fan (OSS)
2022-07-11  6:24 ` [PATCH V5 1/6] dt-bindings: soc: add i.MX93 SRC Peng Fan (OSS)
2022-07-18 18:01   ` Rob Herring
2022-07-11  6:24 ` [PATCH V5 2/6] dt-bindings: soc: add i.MX93 mediamix blk ctrl Peng Fan (OSS)
2022-07-11  6:24 ` [PATCH V5 3/6] soc: imx: add i.MX93 SRC power domain driver Peng Fan (OSS)
2022-07-11 22:03   ` Randy Dunlap
2022-07-15 15:17   ` kernel test robot
2022-07-15 19:02   ` kernel test robot [this message]
2022-07-11  6:24 ` [PATCH V5 4/6] soc: imx: add i.MX93 media blk ctrl driver Peng Fan (OSS)
2022-07-11  6:24 ` [PATCH V5 5/6] arm64: dts: imx93: add src node Peng Fan (OSS)
2022-07-11  6:24 ` [PATCH V5 6/6] arm64: dts: imx93: add mediamix blk ctrl node Peng Fan (OSS)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207160211.szAgqVtl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aisheng.dong@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@pengutronix.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=peng.fan@oss.nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox