Skip to content

Commit 97641ef

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 075ad48 commit 97641ef

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
@@ -2016,6 +2016,14 @@ void dc_set_power_state(
20162016
dc_resource_state_construct(dc, dc->current_state);
20172017

20182018
dc->hwss.init_hw(dc);
2019+
2020+
#ifdef CONFIG_DRM_AMD_DC_DCN2_0
2021+
if (dc->hwss.init_sys_ctx != NULL &&
2022+
dc->vm_pa_config.valid) {
2023+
dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config);
2024+
}
2025+
#endif
2026+
20192027
break;
20202028
default:
20212029
ASSERT(dc->current_state->stream_count == 0);

0 commit comments

Comments
 (0)