drm/i915: Wrap external callers to IPS state with appropriate locks
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Sep 2012 09:16:12 +0000 (10:16 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Sep 2012 07:24:54 +0000 (09:24 +0200)
commitf531dcb23f9a5c6ad77e451459df965dc9a0c0c8
tree575c51d772059012eeffc301597589ed7c391321
parent199adf40ae29a563ba0afe924e12802271defcc8
drm/i915: Wrap external callers to IPS state with appropriate locks

Finishes commit 02d719562ef40483648b2cc46899d4a2ff5953bb
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Aug 9 16:44:54 2012 +0200

    drm/i915: properly guard ilk ips state

The core functions were annotated with their locking requirements, but
we overlooked that they were exported, without any control over the
locking, to debugfs. So in order to enable debugfs to read the registers
without triggering sanity checks, we change the exported entry points to
properly take the required locks before calling the core routines.

Reported-by: yangguang <guang.a.yang@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55304
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c