linux_dsm_epyc7002/drivers/gpu/drm/amd/display/amdgpu_dm
Nicholas Kazlauskas dddce8b490 drm/amd/display: Only get the connector state for VRR when toggled
[Why]
This fixes a stuttering issue that occurs when moving a hardware cursor
when VRR is enabled.

Previously when VRR is enabled atomic check will grab the connector
state for every atomic update. This has to lock the connector in order
to do so. The locking is bad enough by itself for performance, but
it gets worse with what we do just below that - add all the planes
for the CRTC to the commit.

This prevents the cursor fast path from working - there's more than one
plane now. With state->allow_modeset = true on top of this, it also
adds and removes all the planes from the DC context triggering a full
(very slow) update in DC.

[How]
We need the connector state to get the VRR min/max capbilities, but we
only need them when there's a CRTC mode change or when VRR is toggled.

The condition has been updated accordingly.

Fixes: 3cc22f281318 ("drm/amdgpu: Set FreeSync state using drm VRR properties")

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-14 16:00:46 -05:00
..
amdgpu_dm_color.c drm/amd/display: Add support for Freesync 2 HDR and Content to Display Mapping 2018-11-05 14:20:43 -05:00
amdgpu_dm_crc.c drm/amd/display: Guard against null stream_state in set_crc_source 2018-11-05 14:21:42 -05:00
amdgpu_dm_debugfs.c drm/amdgpu/display: dm/amdgpu: make dp phy debugfs for eDP 2018-10-12 12:53:04 -05:00
amdgpu_dm_debugfs.h drm/amd/display: Add support for hw_state logging via debugfs 2018-08-27 15:20:17 -05:00
amdgpu_dm_helpers.c drm/amd/display: Support reading hw state from debugfs file 2018-08-27 15:20:49 -05:00
amdgpu_dm_irq.c drm/amd/display: Initial documentation for AMDgpu DC 2018-11-05 14:21:37 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/dm: Understand why attaching path/tile properties are needed 2018-11-21 15:52:32 -05:00
amdgpu_dm_mst_types.h drm/amd/display: Cleanup MST non-atomic code workaround 2018-11-07 18:20:49 -05:00
amdgpu_dm_pp_smu.c drm/amd/display: Retiring set_display_requirements in dm_pp_smu.h - part4 2018-11-05 14:21:41 -05:00
amdgpu_dm_services.c BackMerge v4.18-rc7 into drm-next 2018-07-30 10:39:22 +10:00
amdgpu_dm_trace.h drm/amd/display: Add tracing to dc 2018-12-05 17:49:49 -05:00
amdgpu_dm.c drm/amd/display: Only get the connector state for VRR when toggled 2019-01-14 16:00:46 -05:00
amdgpu_dm.h drm/amd/display: Add below the range support for FreeSync 2018-12-18 17:39:42 -05:00
Makefile drm/amd/display: Moving powerplay functions to a separate class 2018-07-05 16:38:41 -05:00