[PATCH 2/2] drm/radeon: Prevent races on pre DCE4 between flip submission and completion.

2016-09-29 Thread Alex Deucher
On Mon, Sep 19, 2016 at 10:56 PM, Michel Dänzer wrote: > On 17/09/16 09:25 PM, Mario Kleiner wrote: >> Pre DCE4 hw doesn't have reliable pageflip completion >> interrupts, so instead polling for flip completion is >> used from within the vblank irq handler to complete >> page flips. >> >> This

[PATCH 2/2] drm/radeon: Prevent races on pre DCE4 between flip submission and completion.

2016-09-20 Thread Michel Dänzer
On 17/09/16 09:25 PM, Mario Kleiner wrote: > Pre DCE4 hw doesn't have reliable pageflip completion > interrupts, so instead polling for flip completion is > used from within the vblank irq handler to complete > page flips. > > This causes a race if pageflip ioctl is called close to > vblank: > >

[PATCH 2/2] drm/radeon: Prevent races on pre DCE4 between flip submission and completion.

2016-09-17 Thread Mario Kleiner
Pre DCE4 hw doesn't have reliable pageflip completion interrupts, so instead polling for flip completion is used from within the vblank irq handler to complete page flips. This causes a race if pageflip ioctl is called close to vblank: 1. pageflip ioctl queues execution of radeon_flip_work_func.