aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_perf.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-08-03 17:58:10 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-08-03 18:19:10 +0100
commit28964cf25ee67e1128f7fbb7da3a792471adf47e (patch)
tree5309a030a7cf05a702e3854dca60894e1c1006c1 /drivers/gpu/drm/i915/i915_perf.c
parentdrm/i915/perf: leave GDT_CHICKEN_BITS programming in configs (diff)
downloadlinux-dev-28964cf25ee67e1128f7fbb7da3a792471adf47e.tar.xz
linux-dev-28964cf25ee67e1128f7fbb7da3a792471adf47e.zip
drm/i915/perf: disable NOA logic when not used
We already do it on Haswell and the documentation says it saves power. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170803165812.2373-5-lionel.g.landwerlin@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_perf.c')
-rw-r--r--drivers/gpu/drm/i915/i915_perf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index f1993bbfd4fa..06a5e1e83e6c 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -1827,6 +1827,10 @@ static void gen8_disable_metric_set(struct drm_i915_private *dev_priv)
{
/* Reset all contexts' slices/subslices configurations. */
gen8_configure_all_contexts(dev_priv, NULL, false);
+
+ I915_WRITE(GDT_CHICKEN_BITS, (I915_READ(GDT_CHICKEN_BITS) &
+ ~GT_NOA_ENABLE));
+
}
static void gen7_oa_enable(struct drm_i915_private *dev_priv)