drm/amd: Don't try to enable secure display TA multiple times
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 09:00:58 +0000 (09:00 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 09:00:58 +0000 (09:00 +0000)
From Mario Limonciello
4033b47642c7e2956bb556f2dd953b5e9e47d927 in linux-6.1.y/6.1.39
5c6d52ff4b61e5267b25be714eb5a9ba2a338199 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c

index c8c5c26..f003bef 100644 (file)
@@ -1972,6 +1972,8 @@ static int psp_securedisplay_initialize(struct psp_context *psp)
                psp_securedisplay_parse_resp_status(psp, securedisplay_cmd->status);
                dev_err(psp->adev->dev, "SECUREDISPLAY: query securedisplay TA failed. ret 0x%x\n",
                        securedisplay_cmd->securedisplay_out_message.query_ta.query_cmd_ret);
+               /* don't try again */
+               psp->securedisplay_context.context.bin_desc.size_bytes = 0;
        }
 
        return 0;