diff options
author | Xiaojian Du <Xiaojian.Du@amd.com> | 2022-07-27 08:40:21 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-29 21:17:49 +0200 |
commit | b834fc94c102eef751ff741aa0d9b814d0a81af1 (patch) | |
tree | edd7b0efd8d17f350a76290748add2cefd76ffa4 /drivers/gpu | |
parent | drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b" (diff) | |
download | linux-b834fc94c102eef751ff741aa0d9b814d0a81af1.tar.xz linux-b834fc94c102eef751ff741aa0d9b814d0a81af1.zip |
drm/amdgpu: send msg to IMU for the front-door loading
This patch will make SMU send msg to IMU for the front-door loading, it is
required by some ASICs.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index 6d9b3c6af164..7510d470b864 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c @@ -1361,6 +1361,15 @@ static int smu_hw_init(void *handle) } if (smu->is_apu) { + if ((smu->ppt_funcs->set_gfx_power_up_by_imu) && + likely(adev->firmware.load_type == AMDGPU_FW_LOAD_PSP)) { + ret = smu->ppt_funcs->set_gfx_power_up_by_imu(smu); + if (ret) { + dev_err(adev->dev, "Failed to Enable gfx imu!\n"); + return ret; + } + } + smu_dpm_set_vcn_enable(smu, true); smu_dpm_set_jpeg_enable(smu, true); smu_set_gfx_cgpg(smu, true); |