mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
drm/amd/pm: correct the ACPI table setup V2
Correct the setting for "ActivityLevel". V2: rich the comment Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1316,8 +1316,9 @@ static int polaris10_populate_smc_acpi_level(struct pp_hwmgr *hwmgr,
|
||||
table->MemoryACPILevel.UpHyst = 0;
|
||||
table->MemoryACPILevel.DownHyst = 100;
|
||||
table->MemoryACPILevel.VoltageDownHyst = 0;
|
||||
/* To align with the settings from other OSes */
|
||||
table->MemoryACPILevel.ActivityLevel =
|
||||
PP_HOST_TO_SMC_US(data->current_profile_setting.mclk_activity);
|
||||
PP_HOST_TO_SMC_US(data->current_profile_setting.sclk_activity);
|
||||
|
||||
CONVERT_FROM_HOST_TO_SMC_UL(table->MemoryACPILevel.MclkFrequency);
|
||||
CONVERT_FROM_HOST_TO_SMC_UL(table->MemoryACPILevel.MinVoltage);
|
||||
|
||||
Reference in New Issue
Block a user