drm/amd/display: Reject overlay plane configurations in multi-display scenarios
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 19 Aug 2020 17:37:54 +0000 (13:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:11 +0000 (19:14 +0200)
commit47fd4ba5cc95a6bcea5653c39ad51243cbba2336
tree41a4bfbb830835e4c733d0ee4890ba8a38e55529
parent35950cec85472ea62bf6b91562e3bd52a4267a17
drm/amd/display: Reject overlay plane configurations in multi-display scenarios

[ Upstream commit 168f09cdadbd547c2b202246ef9a8183da725f13 ]

[Why]
These aren't stable on some platform configurations when driving
multiple displays, especially on higher resolution.

In particular the delay in asserting p-state and validating from
x86 outweights any power or performance benefit from the hardware
composition.

Under some configurations this will manifest itself as extreme stutter
or unresponsiveness especially when combined with cursor movement.

[How]
Disable these for now. Exposing overlays to userspace doesn't guarantee
that they'll be able to use them in any and all configurations and it's
part of the DRM contract to have userspace gracefully handle validation
failures when they occur.

Valdiation occurs as part of DC and this in particular affects RV, so
disable this in dcn10_global_validation.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c