summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
diff options
context:
space:
mode:
authoryi-lchen <yi-lchen@amd.com>2024-04-29 14:28:36 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-06-05 11:04:50 -0400
commit975507d73c44e9382478d6fd2d49c5e660cca4f4 (patch)
treed74313f49a61227d7d2407c6573de662ffdb3a3b /drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
parenta9ebd10482d302831af3790da22954801ebdd525 (diff)
downloadlinux-975507d73c44e9382478d6fd2d49c5e660cca4f4.tar.gz
linux-975507d73c44e9382478d6fd2d49c5e660cca4f4.tar.bz2
linux-975507d73c44e9382478d6fd2d49c5e660cca4f4.zip
drm/amd/display: Keep VBios pixel rate div setting until next mode set
[why] Vbios & Driver have difference pixel rate div policy. When enabling fast boot & performing blank & unblank w/o timing setting, pixel clock & pixel rate dividor are not match. It would cause too high pixel reate and eDP would be black screen. [How] We would keep pixel rate div setting by Vbios until next timing setting. Reviewed-by: Jun Lei <jun.lei@amd.com> Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Signed-off-by: yi-lchen <yi-lchen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
index a9f2b7ee9dd8..e9b85884edce 100644
--- a/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
@@ -339,6 +339,9 @@ struct hw_sequencer_funcs {
struct dc_state *context);
void (*exit_optimized_pwr_state)(const struct dc *dc,
struct dc_state *context);
+ void (*calculate_pix_rate_divider)(struct dc *dc,
+ struct dc_state *context,
+ const struct dc_stream_state *stream);
/* Audio Related */
void (*enable_audio_stream)(struct pipe_ctx *pipe_ctx);