]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/pm: restore SCLK settings after S0ix resume
authormythilam <mythilam@amd.com>
Thu, 4 Dec 2025 05:34:12 +0000 (11:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 19:16:48 +0000 (14:16 -0500)
commit7a372e214f6b814253e940334ab6eabb5181fc6f
treec9eaf82205f5e118924f4e6d87d281818d2c968d
parent77f73253015cbc7893fca1821ac3eae9eb4bc943
drm/amd/pm: restore SCLK settings after S0ix resume

User-configured SCLK(GPU core clock)frequencies were not persisting
across S0ix suspend/resume cycles on smu v14 hardware.
The issue occurred because of the code resetting clock frequency
to zero during resume.

This patch addresses the problem by:
- Preserving user-configured values in driver and sets the
  clock frequency across resume
- Preserved settings are sent to the hardware during resume

Signed-off-by: mythilam <mythilam@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 20ba98326f4c69e6bf8d1f42942ece485a675b27)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c