]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: ignore TA ucode for SRIOV
authorMonk Liu <Monk.Liu@amd.com>
Wed, 22 Apr 2020 03:42:37 +0000 (11:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2020 15:42:11 +0000 (11:42 -0400)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

index d2d2363787ffd288321fd47c601041adbaefd8ac..97c80f1d5731dd5a7cad7bf750a328825f4fd498 100644 (file)
@@ -137,6 +137,8 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
        case CHIP_NAVI10:
        case CHIP_NAVI14:
        case CHIP_NAVI12:
+               if (amdgpu_sriov_vf(adev))
+                       break;
                snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_ta.bin", chip_name);
                err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev);
                if (err) {