mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
drm/amd/display: Add a variable to update FCLK latency
[Description] Add a variable to update FCLK latency Reviewed-by: Martin Leung <Martin.Leung@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2de09ce41f
commit
0cd34ce82b
|
|
@ -609,6 +609,7 @@ struct dc_bounding_box_overrides {
|
|||
int percent_of_ideal_drambw;
|
||||
int dram_clock_change_latency_ns;
|
||||
int dummy_clock_change_latency_ns;
|
||||
int fclk_clock_change_latency_ns;
|
||||
/* This forces a hard min on the DCFCLK we use
|
||||
* for DML. Unlike the debug option for forcing
|
||||
* DCFCLK, this override affects watermark calculations
|
||||
|
|
|
|||
|
|
@ -2098,6 +2098,13 @@ void dcn32_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pa
|
|||
dc->bb_overrides.dram_clock_change_latency_ns / 1000.0;
|
||||
}
|
||||
|
||||
if ((int)(dcn3_2_soc.fclk_change_latency_us * 1000)
|
||||
!= dc->bb_overrides.fclk_clock_change_latency_ns
|
||||
&& dc->bb_overrides.fclk_clock_change_latency_ns) {
|
||||
dcn3_2_soc.fclk_change_latency_us =
|
||||
dc->bb_overrides.fclk_clock_change_latency_ns / 1000;
|
||||
}
|
||||
|
||||
if ((int)(dcn3_2_soc.dummy_pstate_latency_us * 1000)
|
||||
!= dc->bb_overrides.dummy_clock_change_latency_ns
|
||||
&& dc->bb_overrides.dummy_clock_change_latency_ns) {
|
||||
|
|
|
|||
|
|
@ -498,6 +498,13 @@ void dcn321_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_p
|
|||
dc->bb_overrides.dram_clock_change_latency_ns / 1000.0;
|
||||
}
|
||||
|
||||
if ((int)(dcn3_21_soc.fclk_change_latency_us * 1000)
|
||||
!= dc->bb_overrides.fclk_clock_change_latency_ns
|
||||
&& dc->bb_overrides.fclk_clock_change_latency_ns) {
|
||||
dcn3_21_soc.fclk_change_latency_us =
|
||||
dc->bb_overrides.fclk_clock_change_latency_ns / 1000;
|
||||
}
|
||||
|
||||
if ((int)(dcn3_21_soc.dummy_pstate_latency_us * 1000)
|
||||
!= dc->bb_overrides.dummy_clock_change_latency_ns
|
||||
&& dc->bb_overrides.dummy_clock_change_latency_ns) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user