projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c7916a
)
drm/amdgpu: use direct loading by default for cyan_skillfish2
author
Lang Yu
<lang.yu@amd.com>
Thu, 17 Jun 2021 04:55:10 +0000
(12:55 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:08:01 +0000
(10:08 -0400)
Will switch to front door loading by default after this function is
stable.
v2: use APU flags (Alex)
Signed-off-by: Lang Yu <lang.yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index
257f596
..
e001875
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@
-410,6
+410,9
@@
amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
else
return AMDGPU_FW_LOAD_PSP;
case CHIP_CYAN_SKILLFISH:
+ if (adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2 &&
+ load_type > 1)
+ return AMDGPU_FW_LOAD_PSP;
return AMDGPU_FW_LOAD_DIRECT;
default:
DRM_ERROR("Unknown firmware load type\n");