Enable suspend/resume on Pi 5#7514
Conversation
Signed-off-by: Peter Bailey <peter.bailey@raspberrypi.com>
|
Can you describe your use case? |
|
This is just for testing how the drivers handle suspend/resume. The firmware does not support suspend yet. It currently stops the arm and then starts it again after one second. The first commit should only be merged if the firmware supports suspend. The other commits should do nothing if suspend is not enabled so they could be merged before suspend works. |
|
The commits look plausible to me. Claude had some comments (that may not be an issue):
|
Signed-off-by: Peter Bailey <peter.bailey@raspberrypi.com>
Signed-off-by: Peter Bailey <peter.bailey@raspberrypi.com>
This makes the NVMe driver reset drives during suspend/resume. Signed-off-by: Peter Bailey <peter.bailey@raspberrypi.com>
|
I've updated the watchdog driver with the extra check. The wireless driver prevents runtime PM while it is bound I've added a temporary fix for NVMe drives. It works by overriding |
This enables suspend/resume support for Pi 5.
The watchdog should be stopped when suspending.
The wireless can be turned off with
cap-power-off-card. It could be left on withkeep-power-in-suspendbut that does not have any benefits currently.NVME drives currently do not work. The NVME driver puts the drive in a low power state and expects the link to be left on. The PCIe driver then turns off the link. This stops the NVME driver waking up the drive. Adding NVME_QUIRK_SIMPLE_SUSPEND to a drive fixes it.