Skip to content

Commit 782a77f

Browse files
Lewis Huanggregkh
Lewis Huang
authored andcommitted
drm/amd/display: reprogram VM config when system resume
[ Upstream commit e538270 ] [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 <[email protected]> Reviewed-by: Jun Lei <[email protected]> Acked-by: Eric Yang <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 24ba84e commit 782a77f

File tree

1 file changed

+8
-0
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+8
-0
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,14 @@ void dc_set_power_state(
15851585
dc_resource_state_construct(dc, dc->current_state);
15861586

15871587
dc->hwss.init_hw(dc);
1588+
1589+
#ifdef CONFIG_DRM_AMD_DC_DCN2_0
1590+
if (dc->hwss.init_sys_ctx != NULL &&
1591+
dc->vm_pa_config.valid) {
1592+
dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config);
1593+
}
1594+
#endif
1595+
15881596
break;
15891597
default:
15901598

0 commit comments

Comments
 (0)