]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: Add PSP loading support for DMCUB ucode
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 22 Oct 2019 17:24:00 +0000 (13:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:42 +0000 (15:29 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 1f044c8cf2392ba9c2f41df6c35f7b64f64bcc66..b1662af0f0cf8e832b3dd9aeb864eec154567dc6 100644 (file)
@@ -1305,6 +1305,9 @@ static int psp_get_fw_type(struct amdgpu_firmware_info *ucode,
        case AMDGPU_UCODE_ID_VCN1_RAM:
                *type = GFX_FW_TYPE_VCN1_RAM;
                break;
+       case AMDGPU_UCODE_ID_DMCUB:
+               *type = GFX_FW_TYPE_DMUB;
+               break;
        case AMDGPU_UCODE_ID_MAXIMUM:
        default:
                return -EINVAL;