Commit 8973d9ec authored by Emily Deng's avatar Emily Deng Committed by Alex Deucher

drm/amdgpu/sriov: Tonga sriov also need load firmware with smu

Fix Tonga sriov load driver fail issue.
Signed-off-by: default avatarEmily Deng <Emily.Deng@amd.com>
Reviewd-by Yintian Tao <Yintian.tao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 61934624
...@@ -1810,7 +1810,8 @@ static int amdgpu_device_fw_loading(struct amdgpu_device *adev) ...@@ -1810,7 +1810,8 @@ static int amdgpu_device_fw_loading(struct amdgpu_device *adev)
} }
} }
r = amdgpu_pm_load_smu_firmware(adev, &smu_version); if (!amdgpu_sriov_vf(adev) || adev->asic_type == CHIP_TONGA)
r = amdgpu_pm_load_smu_firmware(adev, &smu_version);
return r; return r;
} }
......
...@@ -278,9 +278,6 @@ static int pp_dpm_load_fw(void *handle) ...@@ -278,9 +278,6 @@ static int pp_dpm_load_fw(void *handle)
if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu) if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu)
return -EINVAL; return -EINVAL;
if (!hwmgr->not_vf)
return 0;
if (hwmgr->smumgr_funcs->start_smu(hwmgr)) { if (hwmgr->smumgr_funcs->start_smu(hwmgr)) {
pr_err("fw load failed\n"); pr_err("fw load failed\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment