Skip to content

Commit

Permalink
drm/i915: Make unpin async.
Browse files Browse the repository at this point in the history
All of intel_post_plane_update is handled there now, so move it over.
This is run after the hw state checker because it can't handle checking
crtc's separately yet.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1463490484-19540-19-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
  • Loading branch information
Maarten Lankhorst committed May 19, 2016
1 parent 03f476e commit a6747b7
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 132 deletions.
11 changes: 11 additions & 0 deletions drivers/gpu/drm/i915/intel_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,17 @@ intel_atomic_state_alloc(struct drm_device *dev)
void intel_atomic_state_clear(struct drm_atomic_state *s)
{
struct intel_atomic_state *state = to_intel_atomic_state(s);
int i;

for (i = 0; i < ARRAY_SIZE(state->work); i++) {
struct intel_flip_work *work = state->work[i];

if (work)
intel_free_flip_work(work);

state->work[i] = NULL;
}

drm_atomic_state_default_clear(&state->base);
state->dpll_set = state->modeset = false;
}
Loading

0 comments on commit a6747b7

Please sign in to comment.