drm/amdgpu: fix the issue that apu has no smu firmware binary
authorHuang Rui <ray.huang@amd.com>
Tue, 13 Oct 2020 11:19:31 +0000 (19:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2020 19:14:19 +0000 (15:14 -0400)
The driver needn't load smu binary on APU platforms.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Madhav Chauhan <madhav.chauhan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 9d31f93..042ad5e 100644 (file)
@@ -7049,7 +7049,7 @@ static int gfx_v10_0_hw_init(void *handle)
                 * loaded firstly, so in direct type, it has to load smc ucode
                 * here before rlc.
                 */
-               if (adev->smu.ppt_funcs != NULL) {
+               if (adev->smu.ppt_funcs != NULL && !(adev->flags & AMD_IS_APU)) {
                        r = smu_load_microcode(&adev->smu);
                        if (r)
                                return r;