]> 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)
commit39c84b8e929dbd4f63be7e04bf1a2bcd92b44177
treeb7ee8a2627d77f2c9a999b43957919c27f4a6bb5
parent910ab9eee0f61a243126d70e932e1301b5437583
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