1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd
Aric Cyr 34955a1e79 drm/amd/display: Don't adjust VRR unnecessarily
[why]
Do not need to spend time reprogramming DRR if there were no updates to
the parameters.

[how]
Compare the current stream state to the requested one to determine if an
update is required.

In amdgpu_dm the timing_changed flag is set but never used so can remove it.
Similarly, the stream update for VRR is done after dc_commit and should
not update its adjust field until after the update is completed.  The
adjust field is managed by dc_stream_adjust_vmin_vmax and should not be
manually updated in amdgpu_dm.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-09-13 14:33:00 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: Skip reset error status for psp v13_0_0 2022-09-13 14:32:59 -04:00
amdkfd drm/amdkfd: Migrate in CPU page fault use current mm 2022-09-13 14:32:05 -04:00
display drm/amd/display: Don't adjust VRR unnecessarily 2022-09-13 14:33:00 -04:00
include drm/amd/amdgpu: update GC 10.3.0 pwrdec 2022-09-13 12:54:23 -04:00
pm drm/amd/pm: disable BACO entry/exit completely on several sienna cichlid cards 2022-09-13 12:54:22 -04:00