diff options
author | Christian König <christian.koenig@amd.com> | 2014-06-04 02:13:21 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-04 05:59:44 +0400 |
commit | fa7f517cb26eb1a1a1f0baffcced39f6c3ec3337 (patch) | |
tree | 8a678f30f92b7b0f6b1f33115fda9c9c37209b92 /drivers/gpu/drm/radeon/radeon_mode.h | |
parent | b15eb4ea1533b82762932d32cb220ddf75a09b3d (diff) | |
download | linux-fa7f517cb26eb1a1a1f0baffcced39f6c3ec3337.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_mode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 718be1a932ac..ea72ad889a11 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -325,8 +325,8 @@ struct radeon_crtc { struct drm_display_mode native_mode; int pll_id; /* page flipping */ - struct radeon_unpin_work *unpin_work; - int deferred_flip_completion; + struct workqueue_struct *flip_queue; + struct radeon_flip_work *flip_work; /* pll sharing */ struct radeon_atom_ss ss; bool ss_enabled; |