Summary: | >=sys-kernel/gentoo-sources-6.1.76: rtc-cmos clock issue (acpi_alarm wrongly enabled on unsupported system) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David Duchesne <aether> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | aether |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
David Duchesne
2024-02-15 02:03:47 UTC
(In reply to David Duchesne from comment #0) > If I set : > use_acpi_alarm = false (at line 839 in drivers/rtc/rtc-cmos.c) > > then hwclock works fine again. Also, if I change the year here : ---- if (dmi_get_bios_year() < 2021) return; break; ---- from 2021 to 2025 for example it works fine as well. (since the year reported by my bios is 2024 so acpi_alarm is not enabled) ---- with 6.1.76 without modification : [ 5.628018] rtc_cmos 00:01: RTC can wake from S4 [ 5.628339] rtc_cmos 00:01: registered as rtc0 [ 5.628367] rtc_cmos 00:01: setting system clock to 2024-02-14T23:35:38 UTC (1707953738) [ 5.628411] rtc_cmos 00:01: alarms up to one day, 114 bytes nvram with 6.1.76 with either year changed or acpi_alarm set to false : [ 5.635879] rtc_cmos 00:01: RTC can wake from S4 [ 5.636201] rtc_cmos 00:01: registered as rtc0 [ 5.636229] rtc_cmos 00:01: setting system clock to 2024-02-15T00:11:45 UTC (1707955905) [ 5.636271] rtc_cmos 00:01: alarms up to one day, 114 bytes nvram, hpet irqs Notice hpet irqs is missing without modification (and hwclock error is triggred) So the manufacturer is reporting the incorrect date and therefore the code fails. This feels like an upstream issue and not something we can fix. |