mirror_ubuntu-kernels/drivers/gpu/drm/amd
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
..
acp
amdgpu drm/amdgpu/soc21: Add video cap query support for VCN_4_0_4 2023-03-09 22:06:19 -05:00
amdkfd drm/amdkfd: fix a potential double free in pqm_create_queue 2023-03-14 10:30:29 -04:00
display drm/amd/display: Update clock table to include highest clock setting 2023-03-07 15:57:13 -05:00
include drm/amd/display: disable SubVP + DRR to prevent underflow 2023-02-15 22:26:22 -05:00
pm drm/amd/pm: Fix sienna cichlid incorrect OD volage after resume 2023-03-14 10:36:25 -04:00