Hi,
After a stable kernel update, the hwclock command seems no longer functional on my SPARC system with an ST M48T59Y-70PC1 RTC:
# hwclock [...long delay...] hwclock: select() to /dev/rtc0 to wait for clock tick timed out
On prior kernels, there is no problem:
# hwclock 2025-10-22 22:21:04.806992-04:00
I reproduced the same failure on 6.18-rc2 and bisected to this commit:
commit 795cda8338eab036013314dbc0b04aae728880ab Author: Esben Haabendal esben@geanix.com Date: Fri May 16 09:23:35 2025 +0200
rtc: interface: Fix long-standing race when setting alarm
This commit was backported to all current 6.x stable branches, as well as 5.15.x, so they all have the same regression.
Reverting this commit on top of 6.18-rc2 corrects the problem.
Let me know if you need any more info!
Thanks, Nick
On Thursday, 23 October 2025 at 06:45, Nick Bowler nbowler@draconx.ca wrote:
After a stable kernel update, the hwclock command seems no longer functional on my SPARC system with an ST M48T59Y-70PC1 RTC:
# hwclock [...long delay...]
I assume this is 10 seconds long.
hwclock: select() to /dev/rtc0 to wait for clock tick timed out
And this is 100% reproducible, or does it sometimes work and sometimes fail?
On prior kernels, there is no problem:
# hwclock 2025-10-22 22:21:04.806992-04:00
I reproduced the same failure on 6.18-rc2 and bisected to this commit:
commit 795cda8338eab036013314dbc0b04aae728880ab Author: Esben Haabendal esben@geanix.com
Date: Fri May 16 09:23:35 2025 +0200
rtc: interface: Fix long-standing race when setting alarm
This commit was backported to all current 6.x stable branches, as well as 5.15.x, so they all have the same regression.
Reverting this commit on top of 6.18-rc2 corrects the problem.
Let me know if you need any more info!
Are you using the util-linux hwclock command? Which version?
Do you have CONFIG_RTC_INTF_DEV_UIE_EMUL enabled?
Can you run `hwclock --verbose`, both with and without the reverted commit, and send the output from that?
/Esben
On Thu, Oct 23, 2025 at 07:21:21AM +0000, Esben Haabendal wrote:
On Thursday, 23 October 2025 at 06:45, Nick Bowler nbowler@draconx.ca wrote:
After a stable kernel update, the hwclock command seems no longer functional on my SPARC system with an ST M48T59Y-70PC1 RTC:
# hwclock [...long delay...]
I assume this is 10 seconds long.
Yeah, about that.
hwclock: select() to /dev/rtc0 to wait for clock tick timed out
And this is 100% reproducible, or does it sometimes work and sometimes fail?
It fails every time.
Are you using the util-linux hwclock command? Which version?
hwclock from util-linux 2.40.2
Do you have CONFIG_RTC_INTF_DEV_UIE_EMUL enabled?
No, this option is not enabled.
Can you run `hwclock --verbose`, both with and without the reverted commit, and send the output from that?
6.18-rc2 (broken):
# hwclock --verbose hwclock from util-linux 2.40.2 System Time: 1761226454.799573 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 1657523820 seconds after 1969 Last calibration done at 1657523820 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... hwclock: select() to /dev/rtc0 to wait for clock tick timed out ...synchronization failed
6.18-rc2 w/ revert (working):
# hwclock --verbose hwclock from util-linux 2.40.2 System Time: 1761226685.238753 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 1657523820 seconds after 1969 Last calibration done at 1657523820 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... ioctl(3, RTC_UIE_ON, 0): Input/output error Waiting in loop for time from /dev/rtc0 to change ...got clock tick Time read from Hardware Clock: 2025/10/23 13:38:06 Hw clock time : 2025/10/23 13:38:06 = 1761226686 seconds since 1969 Time since last adjustment is 103702866 seconds Calculated Hardware Clock drift is 0.000000 seconds 2025-10-23 09:38:05.239100-04:00
Thanks, Nick
linux-stable-mirror@lists.linaro.org