Commit 379a4454 authored by Chengming Gui's avatar Chengming Gui Committed by Alex Deucher

drm/amd/powerplay: add display_config to handle display config for SMU11.

add display_config to support sys interface for SMU11.
Signed-off-by: default avatarChengming Gui <Jack.Gui@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 16177fd0
...@@ -349,6 +349,7 @@ static int smu_sw_init(void *handle) ...@@ -349,6 +349,7 @@ static int smu_sw_init(void *handle)
smu->workload_setting[4] = PP_SMC_POWER_PROFILE_VR; smu->workload_setting[4] = PP_SMC_POWER_PROFILE_VR;
smu->workload_setting[5] = PP_SMC_POWER_PROFILE_COMPUTE; smu->workload_setting[5] = PP_SMC_POWER_PROFILE_COMPUTE;
smu->workload_setting[6] = PP_SMC_POWER_PROFILE_CUSTOM; smu->workload_setting[6] = PP_SMC_POWER_PROFILE_CUSTOM;
smu->display_config = &adev->pm.pm_display_cfg;
ret = smu_init_microcode(smu); ret = smu_init_microcode(smu);
if (ret) { if (ret) {
......
...@@ -349,6 +349,7 @@ struct smu_context ...@@ -349,6 +349,7 @@ struct smu_context
struct smu_dpm_context smu_dpm; struct smu_dpm_context smu_dpm;
struct smu_power_context smu_power; struct smu_power_context smu_power;
struct smu_feature smu_feature; struct smu_feature smu_feature;
struct amd_pp_display_configuration *display_config;
uint32_t pstate_sclk; uint32_t pstate_sclk;
uint32_t pstate_mclk; uint32_t pstate_mclk;
......
...@@ -338,7 +338,6 @@ static int smu_v11_0_fini_smc_tables(struct smu_context *smu) ...@@ -338,7 +338,6 @@ static int smu_v11_0_fini_smc_tables(struct smu_context *smu)
if (ret) if (ret)
return ret; return ret;
return 0; return 0;
} }
static int smu_v11_0_init_power(struct smu_context *smu) static int smu_v11_0_init_power(struct smu_context *smu)
......
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