mirror-linux/drivers/gpu/drm/amd
Leo Li 2a2a865aee drm/amd/display: Add all planes on CRTC to state for overlay cursor
[Why]

DC has a special commit path for native cursor, which use the built-in
cursor pipe within DCN planes. This update path does not require all
enabled planes to be added to the list of surface updates sent to DC.

This is not the case for overlay cursor; it uses the same path as MPO
commits. This update path requires all enabled planes to be added to the
list of surface updates sent to DC. Otherwise, DC will disable planes
not inside the list.

[How]

If overlay cursor is needed, add all planes on the same CRTC as this
cursor to the atomic state. This is already done for non-cursor planes
(MPO), just before the added lines.

Fixes: 1b04dcca4f ("drm/amd/display: Introduce overlay cursor mode")
Closes: https://lore.kernel.org/lkml/f68020a3-c413-482d-beb2-5432d98a1d3e@amd.com
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 0c8c5bdd7e)
2024-09-11 10:40:52 -04:00
..
acp drivers/gpu: Fix misalignment in comment block 2024-05-29 14:48:30 -04:00
amdgpu drm/amd/amdgpu: apply command submission parser for JPEG v1 2024-09-10 17:26:55 -04:00
amdkfd drm/amdkfd: Add cache line size info 2024-09-10 16:15:16 -04:00
amdxcp
display drm/amd/display: Add all planes on CRTC to state for overlay cursor 2024-09-11 10:40:52 -04:00
include drm/amdgpu/atomfirmware: Silence UBSAN warning 2024-09-10 17:27:17 -04:00
pm drm/amd/pm: fix the pp_dpm_pcie issue on smu v14.0.2/3 2024-09-10 17:23:18 -04:00