Skip to content

Commit e538270

Browse files
Lewis Huangalexdeucher
Lewis Huang
authored andcommitted
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 <[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]>
1 parent b5b1f45 commit e538270

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
@@ -2265,6 +2265,14 @@ void dc_set_power_state(
22652265
dc_resource_state_construct(dc, dc->current_state);
22662266

22672267
dc->hwss.init_hw(dc);
2268+
2269+
#ifdef CONFIG_DRM_AMD_DC_DCN2_0
2270+
if (dc->hwss.init_sys_ctx != NULL &&
2271+
dc->vm_pa_config.valid) {
2272+
dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config);
2273+
}
2274+
#endif
2275+
22682276
break;
22692277
default:
22702278
ASSERT(dc->current_state->stream_count == 0);

0 commit comments

Comments
 (0)