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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Aug 2020 16:22:47 +0000 (12:22 -0400)
commitc9977dffcc7e0f728e82209c140991c5bd27c491
tree68ef04057ef9c46149067f54cffc3eeed927a242
parent818b032433a345b2f5466660ae054806343263e5
drm/amd/display: Reject overlay plane configurations in multi-display scenarios

[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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c