drm/amd/display: Adjust secure_display_context data structure

[Why]
Variables relates to secure display are spreading out within struct
amdgpu_display_manager.

[How]
Encapsulate relevant variables into struct secure_display_context and
adjust relevant affected codes.

Reviewed-by: HaoPing Liu <haoping.liu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Wayne Lin
2024-10-31 17:32:32 +08:00
committed by Alex Deucher
parent 34b6c4b130
commit 58a8467a34
4 changed files with 83 additions and 74 deletions

View File

@@ -541,16 +541,12 @@ struct amdgpu_display_manager {
#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY)
/**
* @secure_display_ctxs:
* @secure_display_ctx:
*
* Store the ROI information and the work_struct to command dmub and psp for
* all crtcs.
* Store secure display relevant info. e.g. the ROI information
* , the work_struct to command dmub, etc.
*/
struct secure_display_context *secure_display_ctxs;
bool secure_display_phy_mapping_updated;
int phy_id_mapping_cnt;
struct phy_id_mapping phy_id_mapping[AMDGPU_DM_MAX_CRTC];
struct secure_display_context secure_display_ctx;
#endif
/**
* @hpd_rx_offload_wq: