Public bug reported: [Impact]
RTC based wakeup is not supported natively by the hardware for s0i3. [Fix] A firmware and driver updates were implemented. The driver passes wakeup time to SMU to to enable RTC from S0i3. Note this s0i3 RTC wake up also requires new firmware. The first patch is the prerequisite actual fix (patch 2 and 3). [Test] This is requested by AMD and tested by an AMD developer as below: Testing a suspend run with RTC for 15 seconds and then 30 seconds: ``` $ sudo rtcwake --seconds 15 -m mem rtcwake: assuming RTC uses UTC ... rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:31:45 2021 $ sudo rtcwake --seconds 30 -m mem rtcwake: assuming RTC uses UTC ... rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:33:13 2021 $ sudo cat /sys/kernel/debug/amd_pmc/s0ix_stats === S0ix statistics === S0ix Entry Time: 4793618285 S0ix Exit Time: 6209036738 Residency Time: 29487884 ``` Residency divided by 1000000 is 29.4 seconds. Reading idle mask works fine too. [Where problems could occur] Low risk. First patch only exports Idlemask value. The actual fix only affects a specific AMD CPU (CZN). ** Affects: hwe-next Importance: Undecided Assignee: Alex Hung (alexhung) Status: New ** Affects: linux-oem-5.14 (Ubuntu) Importance: Undecided Status: New ** Affects: linux-oem-5.14 (Ubuntu Focal) Importance: Undecided Status: New ** Tags: amd oem-priority originate-from-1947889 ** Also affects: linux-oem-5.14 (Ubuntu Focal) Importance: Undecided Status: New ** Description changed: [Impact] - RTC based wakeup is not supported natively by the hardware for s0i3. + RTC based wakeup is not supported natively by the hardware for s0i3. [Fix] - A firmware and driver updates were implemented. The driver passes + A firmware and driver updates were implemented. The driver passes wakeup time to SMU to to enable RTC from S0i3. - Note this s0i3 RTC wake up also requires new firmware. + Note this s0i3 RTC wake up also requires new firmware. - The first patch is the prerequisite actual fix (patch 2 and 3). + The first patch is the prerequisite actual fix (patch 2 and 3). [Test] - This is requested by AMD and tested by an AMD developer as below: + This is requested by AMD and tested by an AMD developer as below: - Testing a suspend run with RTC for 15 seconds and then 30 seconds: - ``` - $ sudo rtcwake --seconds 15 -m mem - rtcwake: assuming RTC uses UTC ... - rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:31:45 2021 - $ sudo rtcwake --seconds 30 -m mem - rtcwake: assuming RTC uses UTC ... - rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:33:13 2021 - $ sudo cat /sys/kernel/debug/amd_pmc/s0ix_stats - === S0ix statistics === - S0ix Entry Time: 4793618285 - S0ix Exit Time: 6209036738 - Residency Time: 29487884 - ``` - Residency divided by 1000000 is 29.4 seconds. + Testing a suspend run with RTC for 15 seconds and then 30 seconds: + ``` + $ sudo rtcwake --seconds 15 -m mem + rtcwake: assuming RTC uses UTC ... + rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:31:45 2021 + $ sudo rtcwake --seconds 30 -m mem + rtcwake: assuming RTC uses UTC ... + rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Nov 5 02:33:13 2021 + $ sudo cat /sys/kernel/debug/amd_pmc/s0ix_stats + === S0ix statistics === + S0ix Entry Time: 4793618285 + S0ix Exit Time: 6209036738 + Residency Time: 29487884 + ``` + Residency divided by 1000000 is 29.4 seconds. - Reading idle mask works fine too. + Reading idle mask works fine too. [Where problems could occur] - Low risk. + Low risk. - First patch only exports Idlemask value. - The actual fix only affects a specific AMD CPU (CZN). + First patch only exports Idlemask value. + The actual fix only affects a specific AMD CPU (CZN). ** Tags added: amd oem-priority originate-from-1947889 ** Changed in: hwe-next Assignee: (unassigned) => Alex Hung (alexhung) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1950013 Title: Add s0i3 RTC wake up for AMD systems To manage notifications about this bug go to: https://bugs.launchpad.net/hwe-next/+bug/1950013/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs