Commit c85fc65e authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher

drm/amd/display: init dc_config before rest of DC init

[Why]
In some cases we want DC init to take in some config options

[How]
Init dc_config before rest of DC init
Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 86eb426a
...@@ -654,6 +654,8 @@ static bool construct(struct dc *dc, ...@@ -654,6 +654,8 @@ static bool construct(struct dc *dc,
#endif #endif
enum dce_version dc_version = DCE_VERSION_UNKNOWN; enum dce_version dc_version = DCE_VERSION_UNKNOWN;
dc->config = init_params->flags;
memcpy(&dc->bb_overrides, &init_params->bb_overrides, sizeof(dc->bb_overrides)); memcpy(&dc->bb_overrides, &init_params->bb_overrides, sizeof(dc->bb_overrides));
dc_dceip = kzalloc(sizeof(*dc_dceip), GFP_KERNEL); dc_dceip = kzalloc(sizeof(*dc_dceip), GFP_KERNEL);
...@@ -847,8 +849,6 @@ struct dc *dc_create(const struct dc_init_data *init_params) ...@@ -847,8 +849,6 @@ struct dc *dc_create(const struct dc_init_data *init_params)
if (dc->res_pool->dmcu != NULL) if (dc->res_pool->dmcu != NULL)
dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version;
dc->config = init_params->flags;
dc->build_id = DC_BUILD_ID; dc->build_id = DC_BUILD_ID;
DC_LOG_DC("Display Core initialized\n"); DC_LOG_DC("Display Core initialized\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment