summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2020-09-18 11:45:04 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-10-05 15:16:11 -0400
commitf7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf (patch)
tree05232c30817f2ee9f02095aaa30b09febb28ba0d /drivers/gpu/drm/amd/display/modules/freesync
parent6fbd1e171075955852e5ddc3fadf8ac45f7ca464 (diff)
downloadlinux-f7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf.tar.bz2
drm/amd/display: Check for flip pending before locking pipes
[Why] When running games or benchmarking with v-sync disabled, disabling a plane (which is v-sync) can cause underflow. This is caused by flips pending before pipe locking being applied after locks are released and pipes could have been re-arranged or disconnected. This could potentially apply a flip on incorrect pipe. Also, previous logic of always locking pipes was unnecessary. [How] Only lock the pipes when there is a pipe being disabled to increase efficiency. Before the pipes are locked, check that any pending flips are cleared to ensure the flips are applied to the correct pipe. Signed-off-by: Aric Cyr <aric.cyr@amd.com> Acked-by: Eryk Brol <eryk.brol@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
0 files changed, 0 insertions, 0 deletions