]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Limit calling mark-busy only for potential scanouts
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 May 2012 14:47:57 +0000 (15:47 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 May 2012 13:10:34 +0000 (15:10 +0200)
commitd73e6e0b872946c870e11fc9782c9e39c8d0cf5f
tree620cbb61ea66e8eb6ffd729fc14d69cb64c43662
parentd23f2963b9f0b70524eb4ec33fa315b23881c975
drm/i915: Limit calling mark-busy only for potential scanouts

The principle of intel_mark_busy() is that we want to spot the
transition of when the display engine is being used in order to bump
powersaving modes and increase display clocks. As such it is only
important when the display is changing, i.e. when rendering to the
scanout or other sprite/plane, and these are characterised by being
pinned.

v2: Mark the whole device as busy on execbuffer and pageflips as well
and rebase against dinq for the minor bug fix to be immediately
applicable.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: fix compile fail.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/intel_display.c