diff options
author | Anthony Koo <Anthony.Koo@amd.com> | 2019-03-23 18:46:40 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-04-10 20:53:28 +0200 |
commit | c85fc65e2241bacbce35e3beb28ac4994e1e033a (patch) | |
tree | 6c193b9d18eee8396ff9cf448fb32ed586ea64f6 /drivers/gpu | |
parent | drm/amd/display: Call hwss.set_cursor_sdr_white_level, if available (diff) | |
download | linux-c85fc65e2241bacbce35e3beb28ac4994e1e033a.tar.xz linux-c85fc65e2241bacbce35e3beb28ac4994e1e033a.zip |
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: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 2b1cd8bd5e03..4887d0611001 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -654,6 +654,8 @@ static bool construct(struct dc *dc, #endif 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)); dc_dceip = kzalloc(sizeof(*dc_dceip), GFP_KERNEL); @@ -847,8 +849,6 @@ struct dc *dc_create(const struct dc_init_data *init_params) if (dc->res_pool->dmcu != NULL) dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; - dc->config = init_params->flags; - dc->build_id = DC_BUILD_ID; DC_LOG_DC("Display Core initialized\n"); |