Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chengming Gui and committed by
Alex Deucher
68fb37bc 91a95887

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
··· 2402 2402 static bool fw_load_skip_check(struct psp_context *psp, 2403 2403 struct amdgpu_firmware_info *ucode) 2404 2404 { 2405 - if (!ucode->fw) 2405 + if (!ucode->fw || !ucode->ucode_size) 2406 2406 return true; 2407 2407 2408 2408 if (ucode->ucode_id == AMDGPU_UCODE_ID_SMC &&