aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2024-10-31 09:32:32 +0000
committerAlex Deucher <[email protected]>2024-12-10 15:31:44 +0000
commit58a8467a3493c0817c95aa53c6ef0d17a508f544 (patch)
tree1cee05678371f741cfc8002a2644d7a08f6b9cc2 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
parentdrm/amd/display: Fix phy id mapping issue for secure display (diff)
downloadkernel-58a8467a3493c0817c95aa53c6ef0d17a508f544.tar.gz
kernel-58a8467a3493c0817c95aa53c6ef0d17a508f544.zip
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 <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Signed-off-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
index cbd7a1cb34af..e46e1365fe91 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
@@ -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: