]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: add vline time in micro sec to PSR context
authorDavid Zhang <dingchen.zhang@amd.com>
Mon, 2 May 2022 15:59:58 +0000 (11:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:42:02 +0000 (14:42 -0400)
commit5655618183a4012c996a64d4f0a981198ddf14a1
treef6b2c507daf1e107be520518b8238c501ea25c4d
parent437caeaf532c7a6700be82dcb51e11eeb0d5f9e6
drm/amd/display: add vline time in micro sec to PSR context

[why]
The current PSR SU programming margin is fixed base on FHD 60HZ
panel. If the resolution and refresh rate become higher, the time
of current margin might not cover the programming SU time.

[how]
Notice that the programming SU time is the same among different
panels.

Instead of fixing the margin with target line number, change the
margin unit to micro second which indicate the time needed for
programming SU. Then FW set the margin line number base on the
line time and margin time.

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c