]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amd/display: Create fake sink if needed when commit stream
authorHarry Wentland <harry.wentland@amd.com>
Thu, 17 Aug 2017 18:58:07 +0000 (14:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:38 +0000 (18:17 -0400)
commit2e0ac3d68838d20a5eace958bdf853a295a7175f
treeb08979d53bb2e8200ddd8c6b9cd24dfa5ec60b81
parentc84dec2fe8837facf4ccaffd2afae9b157719327
drm/amd/display: Create fake sink if needed when commit stream

The problem we're trying to fix is this (and similar):
1) X Desktop with single display
2) VT switch
3) Unplug display
4) VT switch back to X
5) re-plug same display

Before this we'd fail at step 4 when trying to create a dc_stream_state
because of a missing sink. This change will fake a sink in this case.

The same scenario applies to S3 resume.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h