drm/i915: Hold RPM wakelock while initializing OA buffer
authorsagar.a.kamble@intel.com <sagar.a.kamble@intel.com>
Tue, 27 Jun 2017 17:39:41 +0000 (23:09 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 3 Jul 2017 13:13:02 +0000 (16:13 +0300)
commit04941829b0049d2446c7042ab9686dd057d809a6
treebdad0553b226fc76e2d374d368c177e2afeb4801
parentc379b897ba1a7f786419e8c36a3438ce856f016a
drm/i915: Hold RPM wakelock while initializing OA buffer

OA buffer initialization involves access to HW registers to set
the OA base, head and tail. Ensure device is awake while setting
these. With this, all oa.ops are covered under RPM and forcewake
wakelock.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1498585181-23048-1-git-send-email-sagar.a.kamble@intel.com
Fixes: d79651522e89c ("drm/i915: Enable i915 perf stream for Haswell OA unit")
Cc: <stable@vger.kernel.org> # v4.11+
(cherry picked from commit 987f8c444aa2c33d98e7030d0c5f0a5325cc84ea)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_perf.c