From: Mario Kleiner Date: Thu, 17 Jul 2014 00:24:45 +0000 (+0200) Subject: drm/radeon: Make classic pageflip completion path less racy. X-Git-Tag: omap-for-v3.17/fixes-against-rc2~273^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f87e090a7368adc2290ae17ffd82a070caadd20;p=pandora-kernel.git drm/radeon: Make classic pageflip completion path less racy. Need to protect mmio flip programming by event lock as well. Need to also first enable pflip irq, then mmio program, otherwise a flip completion may get unnoticed in the vblank of actual completion if the flip is programmed, but radeon_flip_work_func gets preempted immediately after mmio programming and before vblank. In that case the vblank irq handler wouldn't run radeon_crtc_handle_vblank() with the completion check routine, miss the completed flip, and only notice one vblank after actual completion, causing a false/delayed report of flip completion. Signed-off-by: Mario Kleiner Reviewed-by: Michel Dänzer Signed-off-by: Alex Deucher --- Reading git-diff-tree failed