Commit 49bf43ac authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher
Browse files

drm/amd/display: Add gpuvm and hvm params to dml21



[Why & How]
Add missing params to display configuration for dml21

Reviewed-by: default avatarCharlene Liu <charlene.liu@amd.com>
Signed-off-by: default avatarDmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Signed-off-by: default avatarRay Wu <ray.wu@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f373ef36
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -734,8 +734,12 @@ bool dml21_map_dc_state_into_dml_display_cfg(const struct dc *in_dc, struct dc_s
	memset(&dml_ctx->v21.dml_to_dc_pipe_mapping, 0, sizeof(struct dml2_dml_to_dc_pipe_mapping));

	dml_dispcfg->gpuvm_enable = dml_ctx->config.gpuvm_enable;
	if (dml_ctx->v21.dml_init.soc_bb.gpuvm_max_page_table_levels)
		dml_dispcfg->gpuvm_max_page_table_levels = dml_ctx->v21.dml_init.soc_bb.gpuvm_max_page_table_levels;
	else
		dml_dispcfg->gpuvm_max_page_table_levels = 4;
	dml_dispcfg->hostvm_enable = false;
	dml_dispcfg->hostvm_enable = dml_ctx->config.hostvm_enable;
	dml_dispcfg->hostvm_max_non_cached_page_table_levels = dml_ctx->v21.dml_init.soc_bb.hostvm_max_non_cached_page_table_levels;
	dml_dispcfg->minimize_det_reallocation = true;
	dml_dispcfg->overrides.enable_subvp_implicit_pmo = true;

+2 −0
Original line number Diff line number Diff line
@@ -160,6 +160,8 @@ struct dml2_soc_bb {
	unsigned long return_bus_width_bytes;
	unsigned long hostvm_min_page_size_kbytes;
	unsigned long gpuvm_min_page_size_kbytes;
	unsigned int hostvm_max_non_cached_page_table_levels;
	unsigned int gpuvm_max_page_table_levels;
	double phy_downspread_percent;
	double dcn_downspread_percent;
	double dispclk_dppclk_vco_speed_mhz;
+1 −0
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ struct dml2_configuration_options {

	bool use_clock_dc_limits;
	bool gpuvm_enable;
	bool hostvm_enable;
	bool force_tdlut_enable;
	void *bb_from_dmub;
};