2022-10-18 02:36:50

by Todd Brandt

[permalink] [raw]
Subject: RTC wakealarm file is missing in v6.1-rc1

In the v6.1-rc1 kernel release from about 24 hours ago, the wakealarm
file for the real time clock appears to be missing. Specifically:

/sys/class/rtc/rtc0/wakealarm

Without this sysfs file, the rtcwake and sleepgraph tools no longer
function properly (and probably all tools that use the RTC through
sysfs). I've tested on 10 machines so far and this occurs on all of
them regardless of the specific hardware.

The issue is in this patch set for the rtc subsystem. If I remove this
commit and rebuild, the issue goes away. I'm in the process of
bisecting further.

commit b7270c69a36efc61ed6ebd31a8a458f354a6edc0
Merge: 4ce1b97949cb e5f12a398371
Author: Linus Torvalds <[email protected]>
Date: Fri Oct 14 18:36:42 2022 -0700

I've opened a bugzilla issue here:
https://bugzilla.kernel.org/show_bug.cgi?id=216600


2022-10-18 04:38:12

by Todd Brandt

[permalink] [raw]
Subject: Re: RTC wakealarm file is missing in v6.1-rc1

On Mon, 2022-10-17 at 19:19 -0700, Todd Brandt wrote:
> In the v6.1-rc1 kernel release from about 24 hours ago, the wakealarm
> file for the real time clock appears to be missing. Specifically:
>
> /sys/class/rtc/rtc0/wakealarm
>
> Without this sysfs file, the rtcwake and sleepgraph tools no longer
> function properly (and probably all tools that use the RTC through
> sysfs). I've tested on 10 machines so far and this occurs on all of
> them regardless of the specific hardware.
>
> The issue is in this patch set for the rtc subsystem. If I remove
> this
> commit and rebuild, the issue goes away. I'm in the process of
> bisecting further.
>
> commit b7270c69a36efc61ed6ebd31a8a458f354a6edc0
> Merge: 4ce1b97949cb e5f12a398371
> Author: Linus Torvalds <[email protected]>
> Date:   Fri Oct 14 18:36:42 2022 -0700
>
> I've opened a bugzilla issue here:
> https://bugzilla.kernel.org/show_bug.cgi?id=216600
>
I've bisected this issue to a single commit. I recommend that this
commit be reverted immediately while Raphael creates a fix. It breaks
linux tools that use the rtc wakealarm.

commit 4919d3eb2ec0ee364f7e3cf2d99646c1b224fae8
Author: Rafael J. Wysocki <[email protected]>
Date: Wed Oct 12 20:07:01 2022 +0200

rtc: cmos: Fix event handler registration ordering issue