From: Jack Zhang Date: Thu, 20 Jun 2019 05:44:47 +0000 (+0800) Subject: drm/amdgpu/sriov: fix Tonga load driver failed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a95ecb653aa8aba844b182cdc76a35803b626743;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu/sriov: fix Tonga load driver failed Tonga sriov need to use smu to load firmware. Remove sriov flag because the default return value is zero. Signed-off-by: Jack Zhang Reviewed-by: Trigger Huang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 1705081bdc81..e0df2bc4861f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c @@ -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);