mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/amd/display: Wrap dcn301_calculate_wm_and_dlg for FPU.
Mirrors the logic for dcn30. Cue lots of WARNs and some kernel panics without this fix. Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
94ca070cd3
commit
5e6d72c643
|
|
@ -1380,6 +1380,17 @@ static void set_wm_ranges(
|
|||
pp_smu->nv_funcs.set_wm_ranges(&pp_smu->nv_funcs.pp_smu, &ranges);
|
||||
}
|
||||
|
||||
static void dcn301_calculate_wm_and_dlg(
|
||||
struct dc *dc, struct dc_state *context,
|
||||
display_e2e_pipe_params_st *pipes,
|
||||
int pipe_cnt,
|
||||
int vlevel)
|
||||
{
|
||||
DC_FP_START();
|
||||
dcn301_calculate_wm_and_dlg_fp(dc, context, pipes, pipe_cnt, vlevel);
|
||||
DC_FP_END();
|
||||
}
|
||||
|
||||
static struct resource_funcs dcn301_res_pool_funcs = {
|
||||
.destroy = dcn301_destroy_resource_pool,
|
||||
.link_enc_create = dcn301_link_encoder_create,
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ void dcn301_fpu_init_soc_bounding_box(struct bp_soc_bb_info bb_info)
|
|||
dcn3_01_soc.sr_exit_time_us = bb_info.dram_sr_exit_latency_100ns * 10;
|
||||
}
|
||||
|
||||
void dcn301_calculate_wm_and_dlg(struct dc *dc,
|
||||
void dcn301_calculate_wm_and_dlg_fp(struct dc *dc,
|
||||
struct dc_state *context,
|
||||
display_e2e_pipe_params_st *pipes,
|
||||
int pipe_cnt,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ void dcn301_fpu_set_wm_ranges(int i,
|
|||
|
||||
void dcn301_fpu_init_soc_bounding_box(struct bp_soc_bb_info bb_info);
|
||||
|
||||
void dcn301_calculate_wm_and_dlg(struct dc *dc,
|
||||
void dcn301_calculate_wm_and_dlg_fp(struct dc *dc,
|
||||
struct dc_state *context,
|
||||
display_e2e_pipe_params_st *pipes,
|
||||
int pipe_cnt,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user