]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Periodically sanity check power management
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Apr 2012 10:28:42 +0000 (11:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 15:22:36 +0000 (17:22 +0200)
commit011eee6b92822f7893441784e376613aa3e31dc1
tree70ae38df91f7f3b52c7917ef76bfeb87e00e109b
parentf789d97bd6bbc773135d108128f581ec8e6ba125
drm/i915: Periodically sanity check power management

Every time we use the device after a period of idleness, check that the
power management setup is still sane. This is to workaround a bug
whereby it seems that we begin suppressing power management interrupts,
preventing SandyBridge+ from going into turbo mode.

This patch does have a side-effect. It removes the mark-busy for just
moving the cursor - we don't want to increase the render clock just for
the sprite, though we may want to bump the display frequency. I'd argue
that we do not, and certainly don't want to take the struct_mutex here
due to the large latencies that introduces.

References: https://bugs.freedesktop.org/show_bug.cgi?id=44006
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c