]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: remove need of modeset flag for overlay planes (V2)
authorShirish S <shirish.s@amd.com>
Fri, 27 Apr 2018 10:17:21 +0000 (15:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:50 +0000 (07:47 +0200)
commit86633402fba706e400cab5d27f751b91030ce08a
tree978e39beb65578da0d76e261262398c5bdf760f5
parent86c9d0bbb057584132ec8dadf677711edbf1a7c3
drm/amd/display: remove need of modeset flag for overlay planes (V2)

[ Upstream commit a2a330ad66313084c9432b32862aa7e1255da9b4 ]

This patch is in continuation to the
"843e3c7 drm/amd/display: defer modeset check in dm_update_planes_state"
where we started to eliminate the dependency on
DRM_MODE_ATOMIC_ALLOW_MODESET to be set by the user space,
which as such is not mandatory.

After deferring, this patch eliminates the dependency on the flag
for overlay planes.

This has to be done in stages as its a pretty complex and requires thorough
testing before we free primary planes as well from dependency on modeset
flag.

V2: Simplified the plane type check.

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c