public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>,
	thierry.bultel@linatsea.fr
Cc: oe-kbuild-all@lists.linux.dev, linux-renesas-soc@vger.kernel.org,
	geert@linux-m68k.org, paul.barker.ct@bp.renesas.com,
	Thierry Bultel <thierry.bultel.yh@bp.renesas.com>,
	linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH v3 06/13] clk: renesas: Add support for R9A09G077 SoC
Date: Fri, 28 Feb 2025 00:32:29 +0800	[thread overview]
Message-ID: <202502280006.8lJfdpzm-lkp@intel.com> (raw)
In-Reply-To: <20250226130935.3029927-7-thierry.bultel.yh@bp.renesas.com>

Hi Thierry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tty/tty-testing]
[also build test WARNING on tty/tty-next tty/tty-linus geert-renesas-devel/next linus/master v6.14-rc4 next-20250227]
[cannot apply to geert-renesas-drivers/renesas-clk]
[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/Thierry-Bultel/dt-bindings-clock-Add-cpg-for-the-Renesas-RZ-T2H-SoC/20250226-221033
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link:    https://lore.kernel.org/r/20250226130935.3029927-7-thierry.bultel.yh%40bp.renesas.com
patch subject: [PATCH v3 06/13] clk: renesas: Add support for R9A09G077 SoC
config: arc-randconfig-r122-20250227 (https://download.01.org/0day-ci/archive/20250228/202502280006.8lJfdpzm-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250228/202502280006.8lJfdpzm-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502280006.8lJfdpzm-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/clk/renesas/renesas-cpg-mssr.c:216:49: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *base @@     got void [noderef] __iomem * @@
   drivers/clk/renesas/renesas-cpg-mssr.c:216:49: sparse:     expected void *base
   drivers/clk/renesas/renesas-cpg-mssr.c:216:49: sparse:     got void [noderef] __iomem *
>> drivers/clk/renesas/renesas-cpg-mssr.c:294:51: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void * @@
   drivers/clk/renesas/renesas-cpg-mssr.c:294:51: sparse:     expected void [noderef] __iomem *addr
   drivers/clk/renesas/renesas-cpg-mssr.c:294:51: sparse:     got void *

vim +216 drivers/clk/renesas/renesas-cpg-mssr.c

   211	
   212	static void *cpg_rzt2h_addr_from_offset(struct clk_hw *hw, u16 offset)
   213	{
   214		struct mstp_clock *clock = to_mstp_clock(hw);
   215		struct cpg_mssr_priv *priv = clock->priv;
 > 216		void *base = RZT2H_MSTPCR_BLOCK(offset) ? priv->pub.base1 : priv->pub.base0;
   217	
   218		return base + RZT2H_MSTPCR_OFFSET(offset);
   219	}
   220	
   221	static int cpg_mstp_clock_endisable(struct clk_hw *hw, bool enable)
   222	{
   223		struct mstp_clock *clock = to_mstp_clock(hw);
   224		struct cpg_mssr_priv *priv = clock->priv;
   225		unsigned int reg = clock->index / 32;
   226		unsigned int bit = clock->index % 32;
   227		struct device *dev = priv->dev;
   228		u32 bitmask = BIT(bit);
   229		unsigned long flags;
   230		u32 value;
   231		int error;
   232	
   233		dev_dbg(dev, "MSTP %u%02u/%pC %s\n", reg, bit, hw->clk,
   234			enable ? "ON" : "OFF");
   235		spin_lock_irqsave(&priv->pub.rmw_lock, flags);
   236	
   237		if (priv->reg_layout == CLK_REG_LAYOUT_RZ_A) {
   238			value = readb(priv->pub.base0 + priv->control_regs[reg]);
   239			if (enable)
   240				value &= ~bitmask;
   241			else
   242				value |= bitmask;
   243			writeb(value, priv->pub.base0 + priv->control_regs[reg]);
   244	
   245			/* dummy read to ensure write has completed */
   246			readb(priv->pub.base0 + priv->control_regs[reg]);
   247			barrier_data(priv->pub.base0 + priv->control_regs[reg]);
   248	
   249		} else {
   250			value = readl(priv->pub.base0 + priv->control_regs[reg]);
   251			if (enable)
   252				value &= ~bitmask;
   253			else
   254				value |= bitmask;
   255			writel(value, priv->pub.base0 + priv->control_regs[reg]);
   256		}
   257	
   258		spin_unlock_irqrestore(&priv->pub.rmw_lock, flags);
   259	
   260		if (!enable || priv->reg_layout == CLK_REG_LAYOUT_RZ_A ||
   261			priv->reg_layout == CLK_REG_LAYOUT_RZ_T2H)
   262			return 0;
   263	
   264		error = readl_poll_timeout_atomic(priv->pub.base0 + priv->status_regs[reg],
   265						  value, !(value & bitmask), 0, 10);
   266		if (error)
   267			dev_err(dev, "Failed to enable SMSTP %p[%d]\n",
   268				priv->pub.base0 + priv->control_regs[reg], bit);
   269	
   270		return error;
   271	}
   272	
   273	static int cpg_mstp_clock_enable(struct clk_hw *hw)
   274	{
   275		return cpg_mstp_clock_endisable(hw, true);
   276	}
   277	
   278	static void cpg_mstp_clock_disable(struct clk_hw *hw)
   279	{
   280		cpg_mstp_clock_endisable(hw, false);
   281	}
   282	
   283	static int cpg_mstp_clock_is_enabled(struct clk_hw *hw)
   284	{
   285		struct mstp_clock *clock = to_mstp_clock(hw);
   286		struct cpg_mssr_priv *priv = clock->priv;
   287		unsigned int reg = clock->index / 32;
   288		u32 value;
   289	
   290		if (priv->reg_layout == CLK_REG_LAYOUT_RZ_A)
   291			value = readb(priv->pub.base0 + priv->control_regs[reg]);
   292		else if (priv->reg_layout == CLK_REG_LAYOUT_RZ_T2H) {
   293			void __iomem *addr =
 > 294				cpg_rzt2h_addr_from_offset(hw,
   295							   priv->control_regs[reg]);
   296			value = readw(addr);
   297		}
   298		else
   299			value = readl(priv->pub.base0 + priv->status_regs[reg]);
   300	
   301		return !(value & BIT(clock->index % 32));
   302	}
   303	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-02-27 16:33 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250226130935.3029927-1-thierry.bultel.yh@bp.renesas.com>
2025-02-26 13:09 ` [PATCH v3 01/13] dt-bindings: soc: Add Renesas RZ/T2H (R9A09G077) SoC Thierry Bultel
2025-02-26 14:26   ` Krzysztof Kozlowski
2025-02-26 13:09 ` [PATCH v3 02/13] dt-bindings: clock: Add cpg for the Renesas RZ/T2H SoC Thierry Bultel
2025-02-26 14:44   ` Rob Herring (Arm)
2025-02-26 13:09 ` [PATCH v3 03/13] dt-bindings: serial: Add compatible for Renesas RZ/T2H SoC in sci Thierry Bultel
2025-03-03 13:35   ` Rob Herring
2025-03-03 15:10     ` Thierry Bultel
2025-03-03 15:42       ` Geert Uytterhoeven
2025-02-26 13:09 ` [PATCH v3 04/13] soc: renesas: Add RZ/T2H (R9A09G077) config option Thierry Bultel
2025-03-06 14:13   ` Geert Uytterhoeven
2025-02-26 13:09 ` [PATCH v3 05/13] clk: renesas: Pass sub struct of cpg_mssr_priv to cpg_clk_register Thierry Bultel
2025-02-26 13:09 ` [PATCH v3 06/13] clk: renesas: Add support for R9A09G077 SoC Thierry Bultel
2025-02-27 14:55   ` kernel test robot
2025-02-27 16:32   ` kernel test robot [this message]
2025-02-26 13:09 ` [PATCH v3 07/13] serial: sh-sci: Fix a comment about SCIFA Thierry Bultel
2025-02-26 13:09 ` [PATCH v3 08/13] serial: sh-sci: Introduced function pointers Thierry Bultel
2025-02-27 14:15   ` kernel test robot
2025-02-26 13:09 ` [PATCH v3 09/13] serial: sh-sci: Introduced sci_of_data Thierry Bultel
2025-02-27 13:23   ` kernel test robot
2025-03-06 10:17   ` Geert Uytterhoeven
2025-02-26 13:09 ` [PATCH v3 10/13] serial: sh-sci: Add support for RZ/T2H SCI Thierry Bultel
2025-02-26 13:09 ` [PATCH v3 11/13] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Thierry Bultel
2025-02-26 13:09 ` [PATCH v3 12/13] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board Thierry Bultel
2025-02-26 14:23   ` Krzysztof Kozlowski
2025-02-26 14:46     ` Paul Barker
2025-02-26 15:13       ` Krzysztof Kozlowski
2025-02-26 13:09 ` [PATCH v3 13/13] arm64: defconfig: Enable Renesas RZ/T2H SoC option Thierry Bultel
2025-02-26 14:22   ` Krzysztof Kozlowski
2025-02-26 14:32     ` Thierry Bultel
2025-02-26 14:39       ` Krzysztof Kozlowski
2025-02-26 15:44         ` Thierry Bultel
2025-02-27  9:24         ` Geert Uytterhoeven
2025-02-27  9:43           ` Krzysztof Kozlowski
2025-02-27 10:48             ` Thierry Bultel
2025-02-27 11:48               ` Krzysztof Kozlowski
2025-02-27 13:25                 ` Geert Uytterhoeven
2025-02-27 13:34                   ` Krzysztof Kozlowski

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=202502280006.8lJfdpzm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paul.barker.ct@bp.renesas.com \
    --cc=thierry.bultel.yh@bp.renesas.com \
    --cc=thierry.bultel@linatsea.fr \
    /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