mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 16:15:06 +07:00
drm/amdgpu: Add PSP loading support for DMCUB ucode
DMCUB ucode requires secure loading through PSP. This is already supported in PSP as GFX_FW_TYPE_DMUB, it just needs to be mapped from AMDGPU_UCODE_ID_DMCUB to GFX_FW_TYPE_DMUB. DMUB is a shorthand name for DMCUB and can be used interchangeably. Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
02350f0bdf
commit
2bd2a27ffc
@ -1305,6 +1305,9 @@ static int psp_get_fw_type(struct amdgpu_firmware_info *ucode,
|
|||||||
case AMDGPU_UCODE_ID_VCN1_RAM:
|
case AMDGPU_UCODE_ID_VCN1_RAM:
|
||||||
*type = GFX_FW_TYPE_VCN1_RAM;
|
*type = GFX_FW_TYPE_VCN1_RAM;
|
||||||
break;
|
break;
|
||||||
|
case AMDGPU_UCODE_ID_DMCUB:
|
||||||
|
*type = GFX_FW_TYPE_DMUB;
|
||||||
|
break;
|
||||||
case AMDGPU_UCODE_ID_MAXIMUM:
|
case AMDGPU_UCODE_ID_MAXIMUM:
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user