drm/amd/display: Implement multiple secure display

[Why]
Current secure display only work with single display, now make it
work with multiple displays.

[How]
Create secure_display_context for each crtc instance to store its
own Region of Interest (ROI) information.

v2: squash in warning fix (Alex)

Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alan Liu
2022-10-19 18:15:14 +08:00
committed by Alex Deucher
parent 7a18e089ef
commit 1b11ff764a
7 changed files with 119 additions and 141 deletions

View File

@@ -494,11 +494,12 @@ struct amdgpu_display_manager {
#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY)
/**
* @crc_rd_wrk:
* @secure_display_ctxs:
*
* Work to be executed in a separate thread to communicate with PSP.
* Store the ROI information and the work_struct to command dmub and psp for
* all crtcs.
*/
struct crc_rd_work *crc_rd_wrk;
struct secure_display_context *secure_display_ctxs;
#endif
/**
* @hpd_rx_offload_wq: