mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Błażej Szczygieł a9386ee968 drm/amd/pm: Fix sienna cichlid incorrect OD volage after resume
Always setup overdrive tables after resume. Preserve only some
user-defined settings in user_overdrive_table if they're set.

Copy restored user_overdrive_table into od_table to get correct
values.

On cold boot, BTC was triggered and GfxVfCurve was calibrated. We
got VfCurve settings (a). On resuming back, BTC will be triggered
again and GfxVfCurve will be recalibrated. VfCurve settings (b)
got may be different from those of cold boot.  So if we reuse
those VfCurve settings (a) got on cold boot on suspend, we can
run into discrepencies.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1897
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2276
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Błażej Szczygieł <mumei6102@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2023-03-14 10:36:25 -04:00
..
inc drm/amd/amdgpu: implement mode2 reset on smu_v13_0_10 2023-02-14 15:47:15 -05:00
legacy-dpm drm/amd: Use amdgpu_ucode_release helper for si 2023-01-10 14:32:58 -05:00
powerplay drm/amd/pm: avoid unaligned access warnings 2023-02-15 22:25:01 -05:00
swsmu drm/amd/pm: Fix sienna cichlid incorrect OD volage after resume 2023-03-14 10:36:25 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/amdgpu: implement mode2 reset on smu_v13_0_10 2023-02-14 15:47:15 -05:00
amdgpu_pm.c drm/amdgpu: Add unique_id support for GC 11.0.1/2 2023-02-08 17:36:38 -05:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00