]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: skip ucode loading if ucode_size == 0
authorChengming Gui <Jack.Gui@amd.com>
Tue, 30 Aug 2022 08:33:01 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Aug 2022 21:02:20 +0000 (17:02 -0400)
commit47c22b912be1e43f3b8841f609daa3ac62b43597
treeb7ee8a2627d77f2c9a999b43957919c27f4a6bb5
parent71a32f58f9a3d3072fd42e5099606bfd90945d1e
drm/amd/amdgpu: skip ucode loading if ucode_size == 0

Restrict the ucode loading check to avoid frontdoor loading error.

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c