public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hao-Wen Ting <haowen.ting@realtek.com>,
	daniel.lezcano@linaro.org, tglx@linutronix.de
Cc: oe-kbuild-all@lists.linux.dev, jinn.cheng@realtek.com,
	edwardwu@realtek.com, phelic@realtek.com,
	shawn.huang724@realtek.com, haowen.ting@realtek.com,
	cy.huang@realtek.com, james.tai@realtek.com, cylee12@realtek.com,
	phinex@realtek.com, conor+dt@kernel.org, krzk+dt@kernel.org,
	robh@kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, stanley_chang@realtek.com
Subject: Re: [PATCH v3 2/2] clocksource: Add Realtek systimer as tick broadcast driver
Date: Wed, 19 Nov 2025 20:34:29 +0800	[thread overview]
Message-ID: <202511192029.jlDLXPI0-lkp@intel.com> (raw)
In-Reply-To: <20251117073408.428190-3-haowen.ting@realtek.com>

Hi Hao-Wen,

kernel test robot noticed the following build errors:

[auto build test ERROR on 948b99877bf5a1cd58bee930e455b7574daba5c3]

url:    https://github.com/intel-lab-lkp/linux/commits/Hao-Wen-Ting/dt-bindings-timer-Add-Realtek-SYSTIMER/20251117-153806
base:   948b99877bf5a1cd58bee930e455b7574daba5c3
patch link:    https://lore.kernel.org/r/20251117073408.428190-3-haowen.ting%40realtek.com
patch subject: [PATCH v3 2/2] clocksource: Add Realtek systimer as tick broadcast driver
config: arm-randconfig-001-20251119 (https://download.01.org/0day-ci/archive/20251119/202511192029.jlDLXPI0-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251119/202511192029.jlDLXPI0-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/202511192029.jlDLXPI0-lkp@intel.com/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: drivers/clocksource/timer-realtek.o: in function `rtk_syst_clkevt_next_ktime':
>> drivers/clocksource/timer-realtek.c:79: undefined reference to `__aeabi_ldivmod'
>> arm-linux-gnueabi-ld: drivers/clocksource/timer-realtek.c:86: undefined reference to `__aeabi_ldivmod'


vim +79 drivers/clocksource/timer-realtek.c

    71	
    72	static int rtk_syst_clkevt_next_ktime(ktime_t expires,
    73					      struct clock_event_device *clkevt)
    74	{
    75		u64 cmp_val;
    76		unsigned long flags;
    77		ktime_t now = ktime_get();
    78		s64 delta_ns = ktime_to_ns(ktime_sub(expires, now));
  > 79		u64 delta_us = delta_ns / 1000;
    80	
    81		pr_debug("delta_ns = %lld, clkevt.min_delta_ns = %llu\n",
    82			 delta_ns, clkevt->min_delta_ns);
    83	
    84		if (delta_ns <= (s64)clkevt->min_delta_ns) {
    85			delta_ns = clkevt->min_delta_ns;
  > 86			delta_us = delta_ns / 1000;
    87			pr_debug("Clamping delta_ns to min_delta_ns\n");
    88		}
    89	
    90		rtk_cmp_en_write(DSBL);
    91		local_irq_save(flags);
    92		cmp_val = rtk_ts64_read();
    93	
    94		/* Set CMP value to current timestamp plus delta_us */
    95		rtk_cmp_value_write(cmp_val + delta_us);
    96		rtk_cmp_en_write(ENBL);
    97		local_irq_restore(flags);
    98		return 0;
    99	}
   100	

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

      parent reply	other threads:[~2025-11-19 12:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-17  7:34 [PATCH v3 0/2] Add Realtek System Timer driver Hao-Wen Ting
2025-11-17  7:34 ` [PATCH v3 1/2] dt-bindings: timer: Add Realtek SYSTIMER Hao-Wen Ting
2025-11-17  7:42   ` Krzysztof Kozlowski
2025-11-17  7:34 ` [PATCH v3 2/2] clocksource: Add Realtek systimer as tick broadcast driver Hao-Wen Ting
2025-11-17  9:16   ` Thomas Gleixner
2025-11-19 12:34   ` kernel test robot [this message]

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=202511192029.jlDLXPI0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=cy.huang@realtek.com \
    --cc=cylee12@realtek.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=edwardwu@realtek.com \
    --cc=haowen.ting@realtek.com \
    --cc=james.tai@realtek.com \
    --cc=jinn.cheng@realtek.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=phelic@realtek.com \
    --cc=phinex@realtek.com \
    --cc=robh@kernel.org \
    --cc=shawn.huang724@realtek.com \
    --cc=stanley_chang@realtek.com \
    --cc=tglx@linutronix.de \
    /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