projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910ab9e
)
drm/amd/amdgpu: skip ucode loading if ucode_size == 0
author
Chengming Gui
<Jack.Gui@amd.com>
Tue, 30 Aug 2022 08:33:01 +0000
(16:33 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 31 Aug 2022 21:02:20 +0000
(17:02 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 1036446abc3089f9937107efdec7d409c9c1910b..9f7a5e393f85ed055cbf269dc2e047f19e790fcc 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@
-2401,7
+2401,7
@@
static int psp_load_smu_fw(struct psp_context *psp)
static bool fw_load_skip_check(struct psp_context *psp,
struct amdgpu_firmware_info *ucode)
{
- if (!ucode->fw)
+ if (!ucode->fw
|| !ucode->ucode_size
)
return true;
if (ucode->ucode_id == AMDGPU_UCODE_ID_SMC &&