Skip to content

Commit 7fc602d

Browse files
Jie1zhangalexdeucher
authored andcommitted
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@amd.com> Signed-off-by: Jesse zhang <jesse.zhang@amd.com> Reviewed-by: Aaron Liu <aaron.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 60ecaaf commit 7fc602d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/amd/amdgpu/psp_v10_0.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ static int psp_v10_0_init_microcode(struct psp_context *psp)
5757
if (err)
5858
return err;
5959

60-
return psp_init_ta_microcode(psp, ucode_prefix);
60+
err = psp_init_ta_microcode(psp, ucode_prefix);
61+
if ((adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 1, 0)) &&
62+
(adev->pdev->revision == 0xa1) &&
63+
(psp->securedisplay_context.context.bin_desc.fw_version >= 0x27000008)) {
64+
adev->psp.securedisplay_context.context.bin_desc.size_bytes = 0;
65+
}
66+
return err;
6167
}
6268

6369
static int psp_v10_0_ring_create(struct psp_context *psp,

0 commit comments

Comments
 (0)