summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2016-09-17 14:25:38 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-10-04 11:15:58 -0400
commit73d4c23f5361928b12e7827e872612273cc1175a (patch)
treeb661a7a346cf474267b2ff442ccd04736c8d9be4 /Documentation
parentc2cbc38b9715bd8318062e600668fc30e5a3fbfa (diff)
drm/radeon: Slightly more robust flip completion handling for < DCE-4
Pre DCE4 hardware doesn't have (reliable) pageflip completion irqs, therefore we have to use the old polling method for flip completion handling in vblank irq. As vblank irqs fire a bit before start of vblank (when the linebuffer fifo read position reaches end of scanout), we have some fudge for flip completion handling in the last lines of active scanout. Old code assumed the threshold to be 99% of active scanout height, a ballpark estimate which worked ok. Since we know since a while how to calculate the actual threshold from linebuffer size, lets make use of it to get a more accurate threshold. This completion path is still prone to some races in corner cases, especially on pre-AVIVO hardware, so document them a bit better in the code comments. Acked-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions