summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-07-20 09:00:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-07-20 09:00:59 +0000
commit33362311df8948d26482f970ea5353e4f6f70c26 (patch)
treeb103f0acb92a56279d667cc1617f8ae918caa141 /sys
parent881dcf3ca4ec494d56014b48b80f13e1ef0b46c0 (diff)
drm/amd: Don't try to enable secure display TA multiple times
From Mario Limonciello 4033b47642c7e2956bb556f2dd953b5e9e47d927 in linux-6.1.y/6.1.39 5c6d52ff4b61e5267b25be714eb5a9ba2a338199 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
index c8c5c26942a..f003bef84a5 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_psp.c
@@ -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;