mirror-linux/drivers/gpu/drm/amd/display/amdgpu_dm
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
..
Makefile drm/amd/display: Initialize writeback connector 2023-12-06 15:22:34 -05:00
amdgpu_dm.c drm/amd/display: Add all planes on CRTC to state for overlay cursor 2024-09-11 10:40:52 -04:00
amdgpu_dm.h drm/amd/display: Add function banner for idle_workqueue 2024-07-16 11:44:20 -04:00
amdgpu_dm_color.c drm/amd/display: Remove plane and stream pointers from dc scratch 2024-03-27 01:43:22 -04:00
amdgpu_dm_crc.c drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector 2023-12-06 15:22:34 -05:00
amdgpu_dm_crc.h
amdgpu_dm_crtc.c drm/amd/display: Use periodic detection for ipx/headless 2024-06-27 17:10:38 -04:00
amdgpu_dm_crtc.h
amdgpu_dm_debugfs.c drm/amd/display: Check and log for function error codes 2024-06-27 17:10:36 -04:00
amdgpu_dm_debugfs.h
amdgpu_dm_hdcp.c drm/amd/display: add amdgpu_dm support for DCN351 2024-03-04 15:59:08 -05:00
amdgpu_dm_hdcp.h
amdgpu_dm_helpers.c drm/amd/display: Remove unnecessary error message 2024-07-01 16:06:53 -04:00
amdgpu_dm_irq.c drm/amd/display: Disable ips before dc interrupt setting 2024-01-25 16:00:24 -05:00
amdgpu_dm_irq.h
amdgpu_dm_irq_params.h
amdgpu_dm_mst_types.c drm/amd/display: Fix MST BW calculation Regression 2024-08-13 12:54:24 -04:00
amdgpu_dm_mst_types.h drm/amd/display: Fix MST BW calculation Regression 2024-08-13 12:54:24 -04:00
amdgpu_dm_plane.c drm/amd/display: avoid using null object of framebuffer 2024-08-28 10:05:46 -04:00
amdgpu_dm_plane.h drm/amd/display: Do cursor programming with rest of pipe 2024-04-30 09:51:30 -04:00
amdgpu_dm_pp_smu.c
amdgpu_dm_psr.c drm/amd/display: Fix possible overflow in integer multiplication 2024-07-01 16:06:53 -04:00
amdgpu_dm_psr.h drm/amd/display: Add periodic detection for IPS 2024-04-30 09:57:23 -04:00
amdgpu_dm_replay.c drm/amd/display: Add Replay capability and state in debugfs 2024-05-08 14:56:51 -04:00
amdgpu_dm_replay.h drm/amd/display: Add Replay capability and state in debugfs 2024-05-08 14:56:51 -04:00
amdgpu_dm_services.c drm/amd/display: Add dummy interface for tracing DCN32 SMU messages 2024-04-09 22:03:13 -04:00
amdgpu_dm_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
amdgpu_dm_wb.c drm/amd/display: Return max resolution supported by DWB 2024-04-09 23:30:19 -04:00
amdgpu_dm_wb.h drm/amd/display: Create amdgpu_dm_wb_connector 2023-12-06 15:22:35 -05:00
dc_fpu.c drm/amd/display: use ARCH_HAS_KERNEL_FPU_SUPPORT 2024-05-19 14:36:19 -07:00
dc_fpu.h