drm/amdgpu/sriov: Tonga sriov also need load firmware with smu
Subsystems (2)
PATCH 1/1 drm/amdgpu/sriov: Tonga sriov also need load firmware with smu
Fix Tonga sriov load driver fail issue.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
@@ -1818,7 +1818,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; }
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +0 -3
@@ -275,9 +275,6 @@ static int pp_dpm_load_fw(void *handle) {struct pp_hwmgr *hwmgr = handle; -if (!hwmgr->not_vf) -return 0 ; -if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu)return -EINVAL ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewd-by Yintian Tao<[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Emily Deng
Sent: 2019年12月16日 17:17
To: [email protected]
Cc: Deng, Emily <[email protected]>
Subject: [PATCH] drm/amdgpu/sriov: Tonga sriov also need load firmware with smu
Fix Tonga sriov load driver fail issue.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -1
@@ -1818,7 +1818,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; }
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +0 -4
@@ -275,9 +275,6 @@ static int pp_dpm_load_fw(void *handle) {struct pp_hwmgr *hwmgr = handle; -if (!hwmgr->not_vf) -return 0 ; -if (!hwmgr || !hwmgr->smumgr_funcs || !hwmgr->smumgr_funcs->start_smu)return -EINVAL ; --
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cyintian.tao%40amd.com%7Ca6a09aeba0ec4693e2a808d78208c1fa%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637120846535080512&sdata=yR%2FLdgc9IUshvrfc2YWmWr7j6vLUrzxTHItZnEnJGOs%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx