projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3802c5c
)
drm/i915/perf: disable NOA logic when not used
author
Lionel Landwerlin
<
[email protected]
>
Thu, 3 Aug 2017 16:58:10 +0000
(17:58 +0100)
committer
Lionel Landwerlin
<
[email protected]
>
Thu, 3 Aug 2017 17:19:10 +0000
(18:19 +0100)
We already do it on Haswell and the documentation says it saves power.
Signed-off-by: Lionel Landwerlin <
[email protected]
>
Reviewed-by: Matthew Auld <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_perf.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_perf.c
b/drivers/gpu/drm/i915/i915_perf.c
index f1993bbfd4fa18ed07fe6f39eccabde104a1a923..06a5e1e83e6c6d319b51ebe89a9e53bba115415d 100644
(file)
--- 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)