]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Relax requirements for CRTCs to be enabled
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 29 Mar 2019 18:58:32 +0000 (14:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:22:03 +0000 (00:22 -0500)
commite223b9f64ac976bcf1583b599b7a6c5d9166769e
tree9471a1acbbf165da004b91accfd084f152e13b65
parent7b351bad59de8010b4c1d984524d47e1eb28a6a4
drm/amd/display: Relax requirements for CRTCs to be enabled

[Why]
As long as we have at least one non-cursor plane enabled on a CRTC then
the CRTC itself can remain enabled.

This will allow for commits where there's an overlay plane enabled but
no primary plane enabled.

[How]
Remove existing primary plane fb != NULL checks and replace them with
the new does_crtc_have_active_plane helper.

This will be called from atomic check when validating the CRTC.

Since the primary plane state can now potentially be NULL we'll need
to guard for that when accessing it in some of the cursor logic.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c