diff options
| author | 2020-09-18 11:45:04 -0400 | |
|---|---|---|
| committer | 2020-10-05 15:16:11 -0400 | |
| commit | f7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf (patch) | |
| tree | 05232c30817f2ee9f02095aaa30b09febb28ba0d /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
| parent | drm/amd/display: Don't allow pstate if no support in blank (diff) | |
| download | linux-dev-f7fb81a18f026b70e42ccc95c7d4485b0cdbfbbf.tar.xz linux-dev-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 <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/freesync.c')
0 files changed, 0 insertions, 0 deletions
