[PATCH] drm/amdgpu: Add secure display TA load for Renoir
Liu, Aaron
Aaron.Liu at amd.com
Mon Aug 15 08:45:51 UTC 2022
[AMD Official Use Only - General]
Reviewed-by: Aaron Liu <aaron.liu at amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Shane Xiao
> Sent: Monday, August 15, 2022 4:40 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Xiao, Shane <shane.xiao at amd.com>
> Subject: [PATCH] drm/amdgpu: Add secure display TA load for Renoir
>
> Add secure display TA load for Renoir
>
> Signed-off-by: Shane Xiao <shane.xiao at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/psp_v12_0.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
> b/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
> index a2588200ea58..0b2ac418e4ac 100644
> --- a/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
> @@ -101,6 +101,16 @@ static int psp_v12_0_init_microcode(struct
> psp_context *psp)
> adev->psp.dtm_context.context.bin_desc.start_addr =
> (uint8_t *)adev-
> >psp.hdcp_context.context.bin_desc.start_addr +
> le32_to_cpu(ta_hdr->dtm.offset_bytes);
> +
> + if (adev->apu_flags & AMD_APU_IS_RENOIR) {
> + adev-
> >psp.securedisplay_context.context.bin_desc.fw_version =
> + le32_to_cpu(ta_hdr-
> >securedisplay.fw_version);
> + adev-
> >psp.securedisplay_context.context.bin_desc.size_bytes =
> + le32_to_cpu(ta_hdr-
> >securedisplay.size_bytes);
> + adev-
> >psp.securedisplay_context.context.bin_desc.start_addr =
> + (uint8_t *)adev-
> >psp.hdcp_context.context.bin_desc.start_addr +
> + le32_to_cpu(ta_hdr-
> >securedisplay.offset_bytes);
> + }
> }
>
> return 0;
> --
> 2.25.1
More information about the amd-gfx
mailing list