drm/amd/display: gpuvm handling in DML21
[Why & How] Currently in DML2.1 gpuvm_enable was hardcoded. Use passed info from DC for DML21 to be in sync with what is used in DC. Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Nevenko Stupar <nevenko.stupar@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
984debc133
commit
05c5ffaac7
@@ -47,6 +47,7 @@ int dc_setup_system_context(struct dc *dc, struct dc_phy_addr_space_config *pa_c
|
||||
*/
|
||||
memcpy(&dc->vm_pa_config, pa_config, sizeof(struct dc_phy_addr_space_config));
|
||||
dc->vm_pa_config.valid = true;
|
||||
dc->dml2_options.gpuvm_enable = true;
|
||||
dc_z10_save_init(dc);
|
||||
}
|
||||
|
||||
|
||||
@@ -943,7 +943,7 @@ 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 = true;
|
||||
dml_dispcfg->gpuvm_enable = dml_ctx->config.gpuvm_enable;
|
||||
dml_dispcfg->gpuvm_max_page_table_levels = 4;
|
||||
dml_dispcfg->hostvm_enable = false;
|
||||
dml_dispcfg->minimize_det_reallocation = true;
|
||||
|
||||
@@ -232,6 +232,7 @@ struct dml2_configuration_options {
|
||||
bool map_dc_pipes_with_callbacks;
|
||||
|
||||
bool use_clock_dc_limits;
|
||||
bool gpuvm_enable;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user