drm/i915: intel_update_fbc() requires struct_mutex, so no longer atomic
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Apr 2012 14:08:19 +0000 (15:08 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Apr 2012 10:01:46 +0000 (12:01 +0200)
commit6b8e6ed02a5b06435a6b1c7ddff08c11f3e2d5d1
treef042145eeee03846b93359ff36ea4f5f848b7925
parent83d4092b0381e5dd6f312b2ec57121dcf0fcbade
drm/i915: intel_update_fbc() requires struct_mutex, so no longer atomic

As we need to manipulate our device structure and allocate queue a task,
it is no longer a simple atomic operation and cannot be performed along
the atomic modeset paths. Instead make sure that we disable FBC (which
must be therefore kept as a set of simple register writes) when
performing the atomic modeset and leave the heavy-weight
intel_update_fbc() for the normal modeset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c