]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Revert "drm/amd/display: turn DPMS off on connector unplug"
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 13 Apr 2022 07:53:29 +0000 (15:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jun 2022 22:17:22 +0000 (18:17 -0400)
commitc269eba4cce206a0db0d0585b8997c4d299c0369
treea35356404463f257939781e76f36734cdd0ca949
parentb655d89deeced035010d79bd628360cafd60bb1c
drm/amd/display: Revert "drm/amd/display: turn DPMS off on connector unplug"

This reverts commit 688db1398483a1dd8a8e6ebe1f1ed51e060d252a.

Revert the commit because:
- It's incomplete of the function dm_set_dpms_off() for mst case.  For
  stream sinks whithin the same mst topology, they share the same dc_link.
  dm_set_dpms_off() tries to update one mst stream only which is
  incomplete.
- Setting dpms off should be triggered by usermode. Besdies, it seems
  usermode does release relevant resource for mst & non-mst case when
  unplug connecotr now.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aurabindo Jayamohanan Pillai <Aurabindo.Pillai@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Wayne Lin <Wayne.Lin@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/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h