aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorAric Cyr <[email protected]>2020-09-18 15:45:04 +0000
committerAlex Deucher <[email protected]>2020-10-05 19:16:11 +0000
commitf7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf (patch)
tree05232c30817f2ee9f02095aaa30b09febb28ba0d /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parentdrm/amd/display: Don't allow pstate if no support in blank (diff)
downloadkernel-f7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf.tar.gz
kernel-f7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf.zip
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 <[email protected]> Acked-by: Eryk Brol <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions