From d455c3895a0cabfc1f01e7b584ff4072323b699b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 8 Oct 2019 05:34:25 +0000 Subject: drm/amd/display: reprogram VM config when system resume From Lewis Huang 782a77f2eb39207589ef9175a2ceadd0cca12112 in linux 4.19.y/4.19.78 e5382701c3520b3ed66169a6e4aa6ce5df8c56e0 in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/dev/pci/drm') diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c index f4b89d1ea6f..2b2efe443c3 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c +++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c @@ -1585,6 +1585,14 @@ void dc_set_power_state( dc_resource_state_construct(dc, dc->current_state); dc->hwss.init_hw(dc); + +#ifdef CONFIG_DRM_AMD_DC_DCN2_0 + if (dc->hwss.init_sys_ctx != NULL && + dc->vm_pa_config.valid) { + dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config); + } +#endif + break; default: -- cgit v1.2.3