[patch] drm/amdgpu: don't enable secure display on incompatible platforms

Zhang, Jesse(Jie) Jesse.Zhang at amd.com
Thu May 18 03:07:32 UTC 2023


[AMD Official Use Only - General]

drm/amdgpu: don't enable secure display on incompatible platforms

    [why]
    [drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
    [drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
    amdgpu 0000:04:00.0: amdgpu: Secure display: Generic Failure.

    [how]
    don't enable secure display on incompatible platforms

    Suggested-by: Aaron Liu aaron.liu at amd.com<mailto:aaron.liu at amd.com>
    Signed-off-by: Jesse zhang < jesse.zhang at amd.com<mailto:jesse.zhang at amd.com>>

diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
index e1b7fca09666..5f10883da6a2 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
@@ -57,7 +57,13 @@ static int psp_v10_0_init_microcode(struct psp_context *psp)
        if (err)
                return err;

-       return psp_init_ta_microcode(psp, ucode_prefix);
+       err = psp_init_ta_microcode(psp, ucode_prefix);
+       if ((adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 1, 0)) &&
+               (adev->pdev->revision == 0xa1) &&
+               (psp->securedisplay_context.context.bin_desc.fw_version >= 0x27000008)) {
+               adev->psp.securedisplay_context.context.bin_desc.size_bytes = 0;
+       }
+       return err;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20230518/49053e6c/attachment-0001.htm>


More information about the amd-gfx mailing list