OSDN Git Service

drm/amd/display: Isolate remaining FPU code in DCN32
authorJasdeep Dhillon <jasdeep.dhillon@amd.com>
Tue, 28 Feb 2023 16:46:31 +0000 (11:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Apr 2023 02:48:52 +0000 (22:48 -0400)
[Why]
DCN32 resource contains code that uses FPU.

[How]
Moved code into DCN32 FPU

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Jasdeep Dhillon <jasdeep.dhillon@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.h

index 23a972f..47beb4e 100644 (file)
@@ -2876,3 +2876,9 @@ bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint
        }
        return vactive_found;
 }
+
+void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb)
+{
+       dc_assert_fp_enabled();
+       dcn3_2_soc.clock_limits[0].dcfclk_mhz = 1200.0;
+}
index 9a0806a..dcf512c 100644 (file)
@@ -80,4 +80,6 @@ void dcn32_assign_fpo_vactive_candidate(struct dc *dc, const struct dc_state *co
 
 bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint32_t vactive_margin_req);
 
+void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb);
+
 #endif