]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Check whether secure display TA loaded successfully
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 25 Sep 2025 19:10:57 +0000 (14:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:30 +0000 (14:04 +0100)
commit2e696a06561e4c48ddad74a3fe94012fea947d92
tree622abe66961e533b332d35397e2f1d66ef83b46c
parentefbee1cc7c910d4c7b42517077ffc61bc5a45e84
drm/amd: Check whether secure display TA loaded successfully

commit c760bcda83571e07b72c10d9da175db5051ed971 upstream.

[Why]
Not all renoir hardware supports secure display.  If the TA is present
but the feature isn't supported it will fail to load or send commands.
This shows ERR messages to the user that make it seems like there is
a problem.

[How]
Check the resp_status of the context to see if there was an error
before trying to send any secure display commands.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1415
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Adrian Yip <adrian.ytw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c