linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 37fb6e8a96 drm/amd/display: Enable fast plane updates when state->allow_modeset = true
[Why]
Whenever the a modeset is allowed (but not neccessarily required) we
currently recreate all the planes in the state. Most IGT tests and
legacy IOCTLs create atomic commits with this flag set, so the pipes
are often unnecessarily reprogrammed.

Poor performance and stuttering can occur when many of these commits
are frequently issued.

This flag was needed when the appropriate conditions for checking
whether the planes needed a reset were not in place, but
should_reset_plane should cover everything needed now.

[How]
Drop the check for state->allow_modeset in should_reset_plane.

All planes on a CRTC should reset in the following conditions:
- The CRTC needs a modeset
- The CRTC degamma changes
- Planes are added or removed to the CRTC

These conditions are all covered in should_reset_plane.

We still can't drop the format change check in should_reset_plane since
fill_dc_plane_info_and_addr isn't called when validating the state, so
we can't tell if a FULL update is needed or not.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <david.francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-06-11 12:44:40 -05:00
..
amdgpu_dm drm/amd/display: Enable fast plane updates when state->allow_modeset = true 2019-06-11 12:44:40 -05:00
dc drm/amd/display: Add back missing hw translate init for DCN1_01 2019-06-11 11:56:39 -05:00
include drm/amd/display: make clk mgr soc specific 2019-05-31 10:39:29 -05:00
modules drm/amd/display: CS_TFM_1D only applied post EOTF 2019-05-31 10:39:33 -05:00
Kconfig Merge branch 'drm-next-5.3' of git://people.freedesktop.org/~agd5f/linux into drm-next 2019-05-31 10:04:39 +10:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00