]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd: Only restore cached manual clock settings in restore if OD enabled
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 16 Sep 2025 01:59:02 +0000 (20:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Sep 2025 21:47:46 +0000 (17:47 -0400)
commit1a4dd33cc6e1baaa81efdbe68227a19f51c50f20
treedc4452e81b14e91c8b60fa2b4f5fdf03d50496a7
parent49e957b2899c2f1c4ea44527727e46923d057a86
drm/amd: Only restore cached manual clock settings in restore if OD enabled

If OD is not enabled then restoring cached clock settings doesn't make
sense and actually leads to errors in resume.

Check if enabled before restoring settings.

Fixes: 4e9526924d09 ("drm/amd: Restore cached manual clock settings during resume")
Reported-by: Jérôme Lécuyer <jerome.4a4c@gmail.com>
Closes: https://lore.kernel.org/amd-gfx/0ffe2692-7bfa-4821-856e-dd0f18e2c32b@amd.com/T/#me6db8ddb192626360c462b7570ed7eba0c6c9733
Suggested-by: Jérôme Lécuyer <jerome.4a4c@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c