mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
drm/amd/powerplay: select samu dpm 0 as boot level on polaris.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3ff211270a
commit
871fd8403d
@ -4196,12 +4196,9 @@ int polaris10_update_samu_dpm(struct pp_hwmgr *hwmgr, bool bgate)
|
||||
{
|
||||
struct polaris10_hwmgr *data = (struct polaris10_hwmgr *)(hwmgr->backend);
|
||||
uint32_t mm_boot_level_offset, mm_boot_level_value;
|
||||
struct phm_ppt_v1_information *table_info =
|
||||
(struct phm_ppt_v1_information *)(hwmgr->pptable);
|
||||
|
||||
if (!bgate) {
|
||||
data->smc_state_table.SamuBootLevel =
|
||||
(uint8_t) (table_info->mm_dep_table->count - 1);
|
||||
data->smc_state_table.SamuBootLevel = 0;
|
||||
mm_boot_level_offset = data->dpm_table_start +
|
||||
offsetof(SMU74_Discrete_DpmTable, SamuBootLevel);
|
||||
mm_boot_level_offset /= 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user