2021-11-05 20:38:38 |
Alex Hung |
bug |
|
|
added bug |
2021-11-05 20:39:33 |
Alex Hung |
nominated for series |
|
Ubuntu Focal |
|
2021-11-05 20:39:33 |
Alex Hung |
bug task added |
|
linux-oem-5.14 (Ubuntu Focal) |
|
2021-11-05 20:40:43 |
Alex Hung |
description |
[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). |
[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). |
|
2021-11-05 20:42:22 |
Alex Hung |
bug |
|
|
added subscriber Canonical Hardware Enablement |
2021-11-05 20:42:27 |
Alex Hung |
tags |
|
amd oem-priority originate-from-1947889 |
|
2021-11-05 20:42:37 |
Alex Hung |
hwe-next: assignee |
|
Alex Hung (alexhung) |
|
2021-11-08 14:24:07 |
Timo Aaltonen |
bug task added |
|
linux (Ubuntu) |
|
2021-11-08 14:24:12 |
Timo Aaltonen |
linux (Ubuntu Focal): status |
New |
Invalid |
|
2021-11-08 14:30:17 |
Ubuntu Kernel Bot |
linux (Ubuntu): status |
New |
Incomplete |
|
2021-11-10 09:28:55 |
Timo Aaltonen |
linux-oem-5.14 (Ubuntu Focal): status |
New |
Fix Committed |
|
2021-11-10 09:28:58 |
Timo Aaltonen |
linux-oem-5.14 (Ubuntu): status |
New |
Invalid |
|
2021-11-10 12:05:27 |
Michel-Ekimia |
bug |
|
|
added subscriber Michel-Ekimia |
2021-11-11 01:06:32 |
Ubuntu Kernel Bot |
tags |
amd oem-priority originate-from-1947889 |
amd oem-priority originate-from-1947889 verification-needed-focal |
|
2021-11-11 01:40:04 |
Alex Hung |
tags |
amd oem-priority originate-from-1947889 verification-needed-focal |
amd oem-priority originate-from-1947889 verification-done-focal |
|
2021-11-29 20:31:24 |
Launchpad Janitor |
linux-oem-5.14 (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-11-29 20:31:24 |
Launchpad Janitor |
cve linked |
|
2021-42327 |
|
2021-11-29 21:40:17 |
Alex Hung |
hwe-next: status |
New |
Fix Released |
|
2022-01-17 16:49:01 |
Launchpad Janitor |
linux (Ubuntu): status |
Incomplete |
Fix Released |
|