]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit604e8c8b5bd1fbd8f278b623aacdbe388ee699ed
treef042145eeee03846b93359ff36ea4f5f848b7925
parent7e083e16a46db4ae4bb35c5930f07129360047b0
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