Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Fix Tonga sriov load driver fail issue.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewd-by Yintian Tao <Yintian.tao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Emily Deng and committed by
Alex Deucher
8973d9ec 61934624

+2 -4
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 1810 1810 } 1811 1811 } 1812 1812 1813 - r = amdgpu_pm_load_smu_firmware(adev, &smu_version); 1813 + if (!amdgpu_sriov_vf(adev) || adev->asic_type == CHIP_TONGA) 1814 + r = amdgpu_pm_load_smu_firmware(adev, &smu_version); 1814 1815 1815 1816 return r; 1816 1817 }
-3
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
··· 278 278 if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu) 279 279 return -EINVAL; 280 280 281 - if (!hwmgr->not_vf) 282 - return 0; 283 - 284 281 if (hwmgr->smumgr_funcs->start_smu(hwmgr)) { 285 282 pr_err("fw load failed\n"); 286 283 return -EINVAL;