drm/amd/powerplay: add display_config to handle display config for SMU11.
add display_config to support sys interface for SMU11. Signed-off-by: Chengming Gui <Jack.Gui@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
16177fd053
commit
379a445480
|
@ -349,6 +349,7 @@ static int smu_sw_init(void *handle)
|
|||
smu->workload_setting[4] = PP_SMC_POWER_PROFILE_VR;
|
||||
smu->workload_setting[5] = PP_SMC_POWER_PROFILE_COMPUTE;
|
||||
smu->workload_setting[6] = PP_SMC_POWER_PROFILE_CUSTOM;
|
||||
smu->display_config = &adev->pm.pm_display_cfg;
|
||||
|
||||
ret = smu_init_microcode(smu);
|
||||
if (ret) {
|
||||
|
|
|
@ -349,6 +349,7 @@ struct smu_context
|
|||
struct smu_dpm_context smu_dpm;
|
||||
struct smu_power_context smu_power;
|
||||
struct smu_feature smu_feature;
|
||||
struct amd_pp_display_configuration *display_config;
|
||||
|
||||
uint32_t pstate_sclk;
|
||||
uint32_t pstate_mclk;
|
||||
|
|
|
@ -338,7 +338,6 @@ static int smu_v11_0_fini_smc_tables(struct smu_context *smu)
|
|||
if (ret)
|
||||
return ret;
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
static int smu_v11_0_init_power(struct smu_context *smu)
|
||||
|
|
Loading…
Reference in New Issue