drm/amd/display: add hardware_planes_only to list of affected planes
authorShirish S <shirish.s@amd.com>
Wed, 27 Sep 2017 09:45:38 +0000 (15:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:49 +0000 (16:53 -0400)
commitfc9e9920b1d3a7a6af7eb993d531c36beb985570
tree1e75e53e32972b184b82c518ef6bdeb09e275d01
parent634086b464ac92d215aeaa3653759b0fbcde1a02
drm/amd/display: add hardware_planes_only to list of affected planes

For SoC's having software designed cursor plane,
should be treated differently than hardware cursor planes.

The DRM core initializes cursor plane by default with
legacy_cursor_update set.

Hence legacy_cursor_update can be use effectively
to handle software cursor planes' update and atomicity
functionalities.

This patch uses this variable to decide in the atomic_check
to whether add a requested plane to the list of affected planes or
not, hence fixing the issue of co-existence of MPO, i.e,
setting of available hardware planes like underlay and
updation of cursor planes as well.

Without this patch when underlay is set from user space,
only blank screen with backlight is visible.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c