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 <[email protected]>
Signed-off-by: Xiaojian Du <[email protected]>
---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c 
b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 6d9b3c6af164..79c01fa4b875 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -1360,6 +1360,14 @@ static int smu_hw_init(void *handle)
                return ret;
        }
 
+       if (smu->ppt_funcs->set_gfx_power_up_by_imu) {
+               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;
+               }
+       }
+
        if (smu->is_apu) {
                smu_dpm_set_vcn_enable(smu, true);
                smu_dpm_set_jpeg_enable(smu, true);
-- 
2.25.1

Reply via email to