drm/radeon: Track the status of a page flip more explicitly
authorMichel Dänzer <[email protected]>
Mon, 30 Jun 2014 09:12:34 +0000 (18:12 +0900)
committerAlex Deucher <[email protected]>
Tue, 1 Jul 2014 16:26:48 +0000 (12:26 -0400)
commita2b6d3b33b6a255a271fb120cdc37c6757cdd2be
tree5da18e50c5c015d671cd245d01c03fd8f9e1d65e
parentb0880e87c1fd038b84498944f52e52c3e86ebe59
drm/radeon: Track the status of a page flip more explicitly

This prevents a panic: radeon_crtc_handle_page_flip() could run before
radeon_flip_work_func(), triggering the BUG_ON() in drm_vblank_put().

Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_mode.h