drm/radeon: rework page flip handling v4
authorChristian König <christian.koenig@amd.com>
Tue, 3 Jun 2014 22:13:21 +0000 (18:13 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Jun 2014 01:59:44 +0000 (11:59 +1000)
commitfa7f517cb26eb1a1a1f0baffcced39f6c3ec3337
tree8a678f30f92b7b0f6b1f33115fda9c9c37209b92
parentb15eb4ea1533b82762932d32cb220ddf75a09b3d
drm/radeon: rework page flip handling v4

Instead of trying to flip inside the vblank period when
the buffer is idle, offload blocking for idle to a kernel
thread and program the flip directly into the hardware.

v2: add error handling, fix EBUSY handling
v3: add proper exclusive_lock handling
v4: update crtc->primary->fb when the flip actually happens

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_mode.h