From 4d5af9b7ad6fa4da93191e6d09884d86e39f8467 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Tue, 13 Oct 2020 19:19:31 +0800 Subject: [PATCH] drm/amdgpu: fix the issue that apu has no smu firmware binary The driver needn't load smu binary on APU platforms. Signed-off-by: Huang Rui Reviewed-by: Kevin Wang Reviewed-by: Madhav Chauhan Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 9d31f9339e02..042ad5e4292b 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -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; -- 2.11.0