Commit e4b0eac3 authored by Jasdeep Dhillon's avatar Jasdeep Dhillon Committed by Alex Deucher
Browse files

drm/amd/display: Move FPU associated DCN30 code to DML folder

[why & how]
As part of the FPU isolation work documented in
https://patchwork.freedesktop.org/series/93042/

, isolate
code that uses FPU in DCN30 to DML, where all FPU code
should locate.

Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: default avatarQingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: default avatarJasdeep Dhillon <jdhillon@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 66a19720
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@
#include "dc.h"
#include "dcn_calc_math.h"

#include "dml/dcn30/dcn30_fpu.h"

#define REG(reg)\
	optc1->tg_regs->reg

@@ -184,6 +186,14 @@ void optc3_set_dsc_config(struct timing_generator *optc,

}

void optc3_set_vrr_m_const(struct timing_generator *optc,
		double vtotal_avg)
{
	DC_FP_START();
	optc3_fpu_set_vrr_m_const(optc, vtotal_avg);
	DC_FP_END();
}

void optc3_set_odm_bypass(struct timing_generator *optc,
		const struct dc_crtc_timing *dc_crtc_timing)
{
+40 −476

File changed.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@ struct dc;
struct resource_pool;
struct _vcs_dpi_display_pipe_params_st;

extern struct _vcs_dpi_ip_params_st dcn3_0_ip;
extern struct _vcs_dpi_soc_bounding_box_st dcn3_0_soc;

struct dcn30_resource_pool {
	struct resource_pool base;
};
@@ -96,4 +99,6 @@ enum dc_status dcn30_add_stream_to_ctx(

void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params);

void dcn30_setup_mclk_switch_using_fw_based_vblank_stretch(struct dc *dc, struct dc_state *context);

#endif /* _DCN30_RESOURCE_H_ */
+2 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@
#include "dce/dce_aux.h"
#include "dce/dce_i2c.h"

#include "dml/dcn30/dcn30_fpu.h"

#include "dml/dcn30/display_mode_vba_30.h"
#include "dml/dcn301/dcn301_fpu.h"
#include "vm_helper.h"
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@
#include "dcn20/dcn20_dsc.h"
#include "dcn20/dcn20_resource.h"

#include "dml/dcn30/dcn30_fpu.h"

#include "dcn10/dcn10_resource.h"

#include "dce/dce_abm.h"
Loading