drm/radeon: Track the status of a page flip more explicitly
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 30 Jun 2014 09:12:34 +0000 (18:12 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
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 <Dieter@nuetzel-hh.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_mode.h