drm/amd/display: Determine synchronization edge based on master's vsync
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 29 Sep 2020 15:24:08 +0000 (11:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:53:18 +0000 (16:53 -0400)
commitec3721869cc4211ab61b7b78fe4d8a9ac319b372
treead3d8b4c4be8fda1b9e30c9184f82fbb671a1106
parent41efcd3879b1df7213dcd1b190a9feb86765cc9b
drm/amd/display: Determine synchronization edge based on master's vsync

[Why&How]
The driver always wants to synchronize streams
to the first edge of master's vsync pulse.
In order to determine that we can read timing
flags that are used to program vsync.

Master stream's vsync polarity - Multi Display Stream Synchronization edge:

        Negative               -              Falling Edge

        Positive               -              Rising Edge

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c