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)
commitacb87dfb4b847de1de1134e3e767e9a773d6454e
tree620cbb61ea66e8eb6ffd729fc14d69cb64c43662
parenta928d536c09eb071d114aa94bc60d002e7c8f92b
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