]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Update TTU properly
authorAlvin Lee <alvin.lee2@amd.com>
Thu, 13 Feb 2020 14:58:36 +0000 (09:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:09:25 +0000 (11:09 -0500)
commit15c61595827c0bd32d2fa67885c312c82d660cb6
treec435f8bd8991a11585c6394be0afee8469f5de19
parentb43c3840176bb7b4e4988237ca86fc2974cc4a15
drm/amd/display: Update TTU properly

[Why]
We need to update TTU properly if DRAMClockChangeWatermark changes. If
TTU < DRAMClockChangeWatermark, we pstate won't be allowed and we will
hang in some PSR cases.

[How]
Update TTU if DramClockChangeWatermark value increases (only if TTU was
dependent on the watermark value on the DRAMClockChangeWatermark value
in the first place).

Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c