With nouveau, the iMac G4 (PowerMac6,1, NV34M) only offers s2idle, and
when PMU sleep is forced on, the panel stays dark after resume.

The dark panel happens because the VBIOS init tables, which nouveau
runs on every resume, reset the backlight PWM that Open Firmware set
up. Patch 1 saves and restores it.

PMU sleep is missing because boards flagged PMAC_MB_MAY_SLEEP need the
video driver to call PMAC_FTR_DEVICE_CAN_WAKE, as radeonfb and
aty128fb do. Patch 2 makes that call for the NV34M.

With CONFIG_STRICT_KERNEL_RWX=y, PMU sleep also needs "powerpc/powermac:
Fix low_sleep_handler with STRICT_KERNEL_RWX", which goes through the
powerpc tree. The testing here included it.

Signed-off-by: Matt Turner <[email protected]>
---
Matt Turner (2):
      drm/nouveau/dispnv04: Restore Apple backlight PWM on resume
      drm/nouveau/dispnv04: Allow PMU sleep on iMac G4 with NV34M

 drivers/gpu/drm/nouveau/dispnv04/dfp.c  |  6 +----
 drivers/gpu/drm/nouveau/dispnv04/disp.c | 41 +++++++++++++++++++++++++++++++++
 drivers/gpu/drm/nouveau/dispnv04/disp.h |  2 ++
 3 files changed, 44 insertions(+), 5 deletions(-)
---
base-commit: 8e2afcd2b57990465f132367fd8fdc2e55c1adad
change-id: 20261119-nouveau-pmac-sleep-c54e062bc2e7

Best regards,
--  
Matt Turner <[email protected]>


Reply via email to