linux/drivers/gpu/drm/amd/display
Alan Liu 7117007eda drm/amdgpu: Move the mutex_lock to protect the return status of securedisplay command buffer
[Why]
Before we call psp_securedisplay_invoke(), we call
psp_prep_securedisplay_cmd_buf() to prepare and initialize the command
buffer.

However, we didn't use the mutex_lock to protect the status of command
buffer. So when multiple threads are using the command buffer, after
thread A return from psp_securedisplay_invoke() and the command buffer
status is set to SUCCESS, another thread B may call
psp_prep_securedisplay_cmd_buf() and initialize the status to FAILURE
again, and cause Thread A to get a failure return status.

[How]
Move the mutex_lock out of psp_securedisplay_invoke() to its caller to
cover psp_prep_securedisplay_cmd_buf() and the code checking the return
status of command buffer.

Signed-off-by: Alan Liu <HaoPing.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-10-27 15:12:08 -04:00
..
amdgpu_dm drm/amdgpu: Move the mutex_lock to protect the return status of securedisplay command buffer 2022-10-27 15:12:08 -04:00
dc drm/amd/display: Rework comments on dc file 2022-10-27 14:46:21 -04:00
dmub drm/amd/display: Document part of the DMUB cmd 2022-10-27 14:43:00 -04:00
include drm/amd/display: Refactor LTTPR mode selection 2022-09-29 09:41:46 -04:00
modules drm/amd/display: Wrong colorimetry workaround 2022-10-27 14:45:14 -04:00
Kconfig drm/amdgpu/display: remove unneeded "default n" options 2022-09-13 14:32:58 -04:00
Makefile
TODO