[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202512051151.N3iZUKEG-lkp@intel.com>
Date: Fri, 5 Dec 2025 11:51:12 +0800
From: kernel test robot <lkp@...el.com>
To: Brian Masney <bmasney@...hat.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Maxime Ripard <mripard@...nel.org>,
Claudiu Beznea <claudiu.beznea@...on.dev>,
Conor Dooley <conor@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, Brian Masney <bmasney@...hat.com>
Subject: Re: [PATCH v2 3/3] clk: microchip: core: allow driver to be compiled
with COMPILE_TEST
Hi Brian,
kernel test robot noticed the following build errors:
[auto build test ERROR on 92fd6e84175befa1775e5c0ab682938eca27c0b2]
url: https://github.com/intel-lab-lkp/linux/commits/Brian-Masney/clk-microchip-core-remove-duplicate-determine_rate-on-pic32_sclk_ops/20251202-060924
base: 92fd6e84175befa1775e5c0ab682938eca27c0b2
patch link: https://lore.kernel.org/r/20251201-clk-microchip-fixes-v2-3-9d5a0daadd98%40redhat.com
patch subject: [PATCH v2 3/3] clk: microchip: core: allow driver to be compiled with COMPILE_TEST
config: openrisc-allmodconfig (https://download.01.org/0day-ci/archive/20251205/202512051151.N3iZUKEG-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251205/202512051151.N3iZUKEG-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512051151.N3iZUKEG-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/microchip/clk-core.c: Assembler messages:
>> drivers/clk/microchip/clk-core.c:721: Error: unrecognized instruction `nop'
>> drivers/clk/microchip/clk-core.c:721: Error: unrecognized instruction `nop'
>> drivers/clk/microchip/clk-core.c:721: Error: unrecognized instruction `nop'
>> drivers/clk/microchip/clk-core.c:721: Error: unrecognized instruction `nop'
>> drivers/clk/microchip/clk-core.c:721: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:722: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:722: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:722: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:722: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:722: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:862: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:862: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:862: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:862: Error: unrecognized instruction `nop'
drivers/clk/microchip/clk-core.c:862: Error: unrecognized instruction `nop'
vim +721 drivers/clk/microchip/clk-core.c
ce6e11884659988 Purna Chandra Mandal 2016-05-13 682
ce6e11884659988 Purna Chandra Mandal 2016-05-13 683 static int spll_clk_set_rate(struct clk_hw *hw, unsigned long rate,
ce6e11884659988 Purna Chandra Mandal 2016-05-13 684 unsigned long parent_rate)
ce6e11884659988 Purna Chandra Mandal 2016-05-13 685 {
ce6e11884659988 Purna Chandra Mandal 2016-05-13 686 struct pic32_sys_pll *pll = clkhw_to_spll(hw);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 687 unsigned long ret, flags;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 688 u32 mult, odiv, v;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 689 int err;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 690
ce6e11884659988 Purna Chandra Mandal 2016-05-13 691 ret = spll_calc_mult_div(pll, rate, parent_rate, &mult, &odiv);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 692 if (!ret)
ce6e11884659988 Purna Chandra Mandal 2016-05-13 693 return -EINVAL;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 694
ce6e11884659988 Purna Chandra Mandal 2016-05-13 695 /*
ce6e11884659988 Purna Chandra Mandal 2016-05-13 696 * We can't change SPLL counters when it is in-active use
ce6e11884659988 Purna Chandra Mandal 2016-05-13 697 * by SYSCLK. So check before applying new counters/rate.
ce6e11884659988 Purna Chandra Mandal 2016-05-13 698 */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 699
ce6e11884659988 Purna Chandra Mandal 2016-05-13 700 /* Is spll_clk active parent of sys_clk ? */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 701 if (unlikely(clk_hw_get_parent(pic32_sclk_hw) == hw)) {
ce6e11884659988 Purna Chandra Mandal 2016-05-13 702 pr_err("%s: failed, clk in-use\n", __func__);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 703 return -EBUSY;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 704 }
ce6e11884659988 Purna Chandra Mandal 2016-05-13 705
ce6e11884659988 Purna Chandra Mandal 2016-05-13 706 spin_lock_irqsave(&pll->core->reg_lock, flags);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 707
ce6e11884659988 Purna Chandra Mandal 2016-05-13 708 /* apply new multiplier & divisor */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 709 v = readl(pll->ctrl_reg);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 710 v &= ~(PLL_MULT_MASK << PLL_MULT_SHIFT);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 711 v &= ~(PLL_ODIV_MASK << PLL_ODIV_SHIFT);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 712 v |= (mult << PLL_MULT_SHIFT) | (odiv << PLL_ODIV_SHIFT);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 713
ce6e11884659988 Purna Chandra Mandal 2016-05-13 714 /* sys unlock before write */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 715 pic32_syskey_unlock();
ce6e11884659988 Purna Chandra Mandal 2016-05-13 716
ce6e11884659988 Purna Chandra Mandal 2016-05-13 717 writel(v, pll->ctrl_reg);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 718 cpu_relax();
ce6e11884659988 Purna Chandra Mandal 2016-05-13 719
ce6e11884659988 Purna Chandra Mandal 2016-05-13 720 /* insert few nops (5-stage) to ensure CPU does not hang */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 @721 cpu_nop5();
ce6e11884659988 Purna Chandra Mandal 2016-05-13 722 cpu_nop5();
ce6e11884659988 Purna Chandra Mandal 2016-05-13 723
ce6e11884659988 Purna Chandra Mandal 2016-05-13 724 /* Wait until PLL is locked (maximum 100 usecs). */
ce6e11884659988 Purna Chandra Mandal 2016-05-13 725 err = readl_poll_timeout_atomic(pll->status_reg, v,
ce6e11884659988 Purna Chandra Mandal 2016-05-13 726 v & pll->lock_mask, 1, 100);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 727 spin_unlock_irqrestore(&pll->core->reg_lock, flags);
ce6e11884659988 Purna Chandra Mandal 2016-05-13 728
ce6e11884659988 Purna Chandra Mandal 2016-05-13 729 return err;
ce6e11884659988 Purna Chandra Mandal 2016-05-13 730 }
ce6e11884659988 Purna Chandra Mandal 2016-05-13 731
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists