Public bug reported:

On Raspberry Pi 5 devices, setting an RTC alarm for 30s using rtcwake
takes much longer than expected, empirically many (3-8) minutes.

Affected hardware:
- Raspberry Pi 5 Model B 8GB
- Raspberry Pi Compute Module 5 Lite

Observed kernel versions:
Ubuntu 24.04 LTS (noble) and core24:
- linux-raspi 6.8.0-1058
- linux-raspi 6.8.0-1061
- linux-raspi / pi-kernel 6.8.0-1064.68
- linux-raspi / pi-kernel 6.8.0-1067.71
- linux-raspi 6.8.0-1068.72

Ubuntu 26.04 (resolute):
- linux-raspi 7.0.0-1019.19
- linux-raspi 7.0.0-1021.21
- linux-raspi 7.0.0-1022.22
- linux-raspi 7.0.0-1023.23

Steps to reproduce:
1. On a Raspberry Pi 5 running Ubuntu noble or resolute, execute:
   `rtcwake -v -d rtc0 -m on -s 30`
2. Measure the elapsed wall clock time until the command exits.

Expected result:
rtcwake schedules the alarm for 30 seconds and exits after approximately 30 
seconds.

Actual result:
- rtcwake sets the alarm correctly in sysfs.
- The command blocks waiting for the alarm interrupt for 177 to 668 seconds (3 
to 11 minutes) before returning.
- Observed elapsed durations on lab hardware:
  - cert-raspi-sru-resolute-server-arm64-rpicm5l build 20: 177 seconds
  - cert-raspi-sru-resolute-server-arm64-rpi5b8g build 14: 213 seconds
  - cert-raspi-sru-resolute-server-arm64-rpi5b8g build 15: 282 seconds
  - cert-raspi-sru-noble-server-arm64-rpicm5l build 23: 668 seconds

** Affects: linux-raspi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173148

Title:
  Raspberry Pi 5 RTC alarm interrupt delayed by many minutes on rtcwake

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2173148/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to