Patch "drm/i915: Hold RPM wakelock while initializing OA buffer" has been added to the 4.12-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/i915: Hold RPM wakelock while initializing OA buffer
to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-i915-hold-rpm-wakelock-while-initializing-oa-buffer.patch
and it can be found in the queue-4.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
04941829b0049d2446c7042ab9686dd057d809a6Mon Sep 17 00:00:00 2001
From: "[email protected]" <[email protected]>
Date: Tue, 27 Jun 2017 23:09:41 +0530
Subject: drm/i915: Hold RPM wakelock while initializing OA buffer
From: [email protected] <[email protected]>
commit 04941829b0049d2446c7042ab9686dd057d809a6 upstream.
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.
--- drivers/gpu/drm/i915/i915_perf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/i915_perf.c +6 -6
@@ -1210,10 +1210,6 @@ static int i915_oa_stream_init(struct i9return ret; } - ret =alloc_oa_buffer (dev_priv); -if (ret) - goto err_oa_buf_alloc; -/* PRM - observability performance counters: * * OACONTROL, performance counter enable, note:
@@ -1229,6 +1225,10 @@ static int i915_oa_stream_init(struct i9intel_runtime_pm_get (dev_priv);intel_uncore_forcewake_get (dev_priv,FORCEWAKE_ALL ); + ret =alloc_oa_buffer (dev_priv); +if (ret) + goto err_oa_buf_alloc; + ret = dev_priv->perf.oa.ops.enable_metric_set (dev_priv);if (ret) goto err_enable;
@@ -1240,11 +1240,11 @@ static int i915_oa_stream_init(struct i9return 0 ; err_enable: -intel_uncore_forcewake_put (dev_priv,FORCEWAKE_ALL ); -intel_runtime_pm_put (dev_priv);free_oa_buffer (dev_priv); err_oa_buf_alloc: +intel_uncore_forcewake_put (dev_priv,FORCEWAKE_ALL ); +intel_runtime_pm_put (dev_priv);if (stream->ctx)oa_put_render_ctx_id (stream);
Patches currently in stable-queue which might be from [email protected] are
queue-4.12/drm-i915-hold-rpm-wakelock-while-initializing-oa-buffer.patch