Commit 25bb1d54 authored by Xi Ruoyao's avatar Xi Ruoyao Committed by Alex Deucher
Browse files

drm/amd/display: Wrap dcn32_override_min_req_memclk() in DC_FP_{START, END}



[Why]
The dcn32_override_min_req_memclk function is in dcn32_fpu.c, which is
compiled with CC_FLAGS_FPU into FP instructions.  So when we call it we
must use DC_FP_{START,END} to save and restore the FP context, and
prepare the FP unit on architectures like LoongArch where the FP unit
isn't always on.

Reported-by: default avatarLiarOnce <liaronce@hotmail.com>
Fixes: ee7be8f3 ("drm/amd/display: Limit DCN32 8 channel or less parts to DPM1 for FPO")
Signed-off-by: default avatarXi Ruoyao <xry111@xry111.site>
Reviewed-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b7f1402f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1785,7 +1785,10 @@ static bool dml1_validate(struct dc *dc, struct dc_state *context, enum dc_valid

	dc->res_pool->funcs->calculate_wm_and_dlg(dc, context, pipes, pipe_cnt, vlevel);

	DC_FP_START();
	dcn32_override_min_req_memclk(dc, context);
	DC_FP_END();

	dcn32_override_min_req_dcfclk(dc, context);

	BW_VAL_TRACE_END_WATERMARKS();