summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-10-08 05:34:25 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-10-08 05:34:25 +0000
commitd455c3895a0cabfc1f01e7b584ff4072323b699b (patch)
treecd234cfab60b2b1d0798e200b292d461c0fd14cf /sys/dev/pci/drm
parentbf8a09e26fe8761b78e5c02d60c93c7b5c328241 (diff)
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
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c8
1 files changed, 8 insertions, 0 deletions
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: