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)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 3 Jul 2017 10:00:17 +0000 (12:00 +0200)
commit987f8c444aa2c33d98e7030d0c5f0a5325cc84ea
treec64e8a3efc301e77dcb9a723401b768614f054a0
parent2c4b851933a6aae3e3a034f23fbcb3ec345d7e51
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+
drivers/gpu/drm/i915/i915_perf.c