[PATCH] drm/radeon: fix race condition in radeon_crtc_page_flip

2014-06-19 Thread Michel Dänzer
This patch only applies to 3.15, right? On 19.06.2014 02:11, Christian K?nig wrote: > From: Christian K?nig > > radeon_crtc_handle_flip can be called concurrently and if > we set the unpin_work to early try to flip an unpinned BO or > worse. Spelling: 'too early' Maybe something like:

[PATCH] drm/radeon: fix race condition in radeon_crtc_page_flip

2014-06-19 Thread Christian König
Am 19.06.2014 05:49, schrieb Michel D?nzer: > This patch only applies to 3.15, right? Yes correct. For 3.16 we have the reworked flip which I think is still a good idea to keep for now. I've addresses your comments and send out a v2 to the list CCing you, please review. Thanks, Christian. >

[PATCH] drm/radeon: fix race condition in radeon_crtc_page_flip v2

2014-06-19 Thread Christian König
From: Christian K?nig radeon_crtc_handle_flip can be called concurrently, and if we set the unpin_work too early, it may try to flip an unpinned BO or worse. v2: fix compiler warning, update commit message, set crtc->primary->fb only when everything went well

[PATCH] drm/radeon: fix race condition in radeon_crtc_page_flip

2014-06-18 Thread Christian König
From: Christian K?nig radeon_crtc_handle_flip can be called concurrently and if we set the unpin_work to early try to flip an unpinned BO or worse. Signed-off-by: Christian K?nig Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_display.c | 31