drm/amdgpu/sriov: fix Tonga load driver failed
authorJack Zhang <Jack.Zhang1@amd.com>
Thu, 20 Jun 2019 05:44:47 +0000 (13:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jun 2019 16:36:45 +0000 (11:36 -0500)
Tonga sriov need to use smu to load firmware.
Remove sriov flag because the default return value is zero.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Trigger Huang <Trigger.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

index 1705081bdc814cbf3c4414e54371ab2ee3523c26..e0df2bc4861fe276dbc1949aac923e98525c58be 100644 (file)
@@ -2755,8 +2755,6 @@ int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_versio
 {
        int r;
 
-       if (amdgpu_sriov_vf(adev))
-               return 0;
 
        if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->load_firmware) {
                r = adev->powerplay.pp_funcs->load_firmware(adev->powerplay.pp_handle);