]> Git Repo - linux.git/commit
drm/radeon: Make classic pageflip completion path less racy.
authorMario Kleiner <[email protected]>
Thu, 17 Jul 2014 00:24:45 +0000 (02:24 +0200)
committerAlex Deucher <[email protected]>
Thu, 17 Jul 2014 13:04:03 +0000 (09:04 -0400)
commit5f87e090a7368adc2290ae17ffd82a070caadd20
tree54db7617658560a8a13e5cb87ef135c4a05b35f2
parent826484977c29b42c8cb8c42bd41acaa6e152a4bb
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 <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/radeon_display.c
This page took 0.047003 seconds and 4 git commands to generate.