summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_types.h
diff options
context:
space:
mode:
authorDavid Zhang <dingchen.zhang@amd.com>2022-05-02 11:59:58 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-06-06 14:42:02 -0400
commit32c453f18dccd93a27d6f026ca690167c8cc9639 (patch)
treef6b2c507daf1e107be520518b8238c501ea25c4d /drivers/gpu/drm/amd/display/dc/dc_types.h
parent65657d98754c581ad66b56680d3c9ed679890071 (diff)
downloadlinux-stable-32c453f18dccd93a27d6f026ca690167c8cc9639.tar.gz
linux-stable-32c453f18dccd93a27d6f026ca690167c8cc9639.tar.bz2
linux-stable-32c453f18dccd93a27d6f026ca690167c8cc9639.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h
index d61ea3e2bfbf..119ce8b7a555 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -676,6 +676,7 @@ struct psr_config {
bool su_granularity_required;
/* psr2 selective update y granularity capability */
uint8_t su_y_granularity;
+ unsigned int line_time_in_us;
};
union dmcu_psr_level {
@@ -783,6 +784,7 @@ struct psr_context {
bool su_granularity_required;
/* psr2 selective update y granularity capability */
uint8_t su_y_granularity;
+ unsigned int line_time_in_us;
};
struct colorspace_transform {