drm/amd/display: reprogram VM config when system resume
authorLewis Huang <Lewis.Huang@amd.com>
Mon, 22 Jul 2019 19:23:32 +0000 (15:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:55:42 +0000 (10:55 -0500)
commite5382701c3520b3ed66169a6e4aa6ce5df8c56e0
tree3a6a2b51904e21813b76cfd2f0f9be13fa6dc7d3
parentb5b1f45549041c853568fe23a2da8bdc14d14190
drm/amd/display: reprogram VM config when system resume

[Why]
The vm config will be clear to 0 when system enter S4. It will
cause hubbub didn't know how to fetch data when system resume.
The flip always pending because earliest_inuse_address and
request_address are different.

[How]
Reprogram VM config when system resume

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c