projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e72d8e
)
drm/amdgpu/psp: convert ucode id to psp ucode id
author
Jack Xiao
<Jack.Xiao@amd.com>
Tue, 14 May 2019 03:53:57 +0000
(11:53 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:32 +0000
(18:59 -0500)
Convert ucode id to the corresponding psp ucode id.
Signed-off-by: Jack Xiao <Jack.Xiao@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 bbc3b0488982b3be33b2cd35e5c05b29c7ee692a..e9794e3c39364459900f50d3d2b0d3f66f8d0223 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@
-891,6
+891,12
@@
static int psp_get_fw_type(struct amdgpu_firmware_info *ucode,
case AMDGPU_UCODE_ID_DMCU_INTV:
*type = GFX_FW_TYPE_DMCU_ISR;
break;
+ case AMDGPU_UCODE_ID_VCN0_RAM:
+ *type = GFX_FW_TYPE_VCN0_RAM;
+ break;
+ case AMDGPU_UCODE_ID_VCN1_RAM:
+ *type = GFX_FW_TYPE_VCN1_RAM;
+ break;
case AMDGPU_UCODE_ID_MAXIMUM:
default:
return -EINVAL;