]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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>
Fri, 21 Apr 2023 12:50:20 +0000 (08:50 -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 2f7723053042f1e337b59689c1671b0fb103fb39..b8a2518faecc72fb4627167d88acfdd8a6cee519 100644 (file)
@@ -2881,3 +2881,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 9a0806a0e2ef0c5552ad85835743a14de1152755..dcf512cd30721645033a86dae9be51ed44d7aa16 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