]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Fix when disabling secure_display
authorAlan Liu <HaoPing.Liu@amd.com>
Thu, 24 Nov 2022 12:24:15 +0000 (20:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Dec 2022 17:18:18 +0000 (12:18 -0500)
commitb8ff7e08bab938d84dc329a7193ebf459088727c
treeeafa6f41d73a80f135b6515509e085c55c3a1bcd
parent9dc5b360cc9ad3498cc5674a5905742fe722e140
drm/amd/display: Fix when disabling secure_display

[Why]
Fix problems when we disable secure_display.

[How]
- Reset secure display context after disabled
- A secure_display_context is dedicate to a crtc, so we set the crtc for
it when we create the context.

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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h