Skip to content

Commit 3caab67

Browse files
Jasdeep Dhillonalexdeucher
authored andcommitted
drm/amd/display: Isolate remaining FPU code in DCN32
[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>
1 parent 989cd3e commit 3caab67

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,3 +2876,9 @@ bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint
28762876
}
28772877
return vactive_found;
28782878
}
2879+
2880+
void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb)
2881+
{
2882+
dc_assert_fp_enabled();
2883+
dcn3_2_soc.clock_limits[0].dcfclk_mhz = 1200.0;
2884+
}

drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ void dcn32_assign_fpo_vactive_candidate(struct dc *dc, const struct dc_state *co
8080

8181
bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint32_t vactive_margin_req);
8282

83+
void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb);
84+
8385
#endif

0 commit comments

Comments
 (0)