mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
drm/amdgpu/powerplay: check MC firmware for FFC support
Check if the MC firmware supports FFC and tell the SMC so mclk switching is handled properly. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c6296f5a65
commit
34c08da209
1 changed files with 8 additions and 0 deletions
|
@ -4222,9 +4222,17 @@ static int smu7_check_mc_firmware(struct pp_hwmgr *hwmgr)
|
|||
if (tmp & (1 << 23)) {
|
||||
data->mem_latency_high = MEM_LATENCY_HIGH;
|
||||
data->mem_latency_low = MEM_LATENCY_LOW;
|
||||
if ((hwmgr->chip_id == CHIP_POLARIS10) ||
|
||||
(hwmgr->chip_id == CHIP_POLARIS11) ||
|
||||
(hwmgr->chip_id == CHIP_POLARIS12))
|
||||
smum_send_msg_to_smc(hwmgr, PPSMC_MSG_EnableFFC);
|
||||
} else {
|
||||
data->mem_latency_high = 330;
|
||||
data->mem_latency_low = 330;
|
||||
if ((hwmgr->chip_id == CHIP_POLARIS10) ||
|
||||
(hwmgr->chip_id == CHIP_POLARIS11) ||
|
||||
(hwmgr->chip_id == CHIP_POLARIS12))
|
||||
smum_send_msg_to_smc(hwmgr, PPSMC_MSG_DisableFFC);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue