Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [drm-intel-fixes] drm/i915: do not enable RC6p on Sandy Bridge
@ 2012-02-14 13:44 Eugeni Dodonov
  2012-02-15  2:39 ` Keith Packard
  0 siblings, 1 reply; 4+ messages in thread
From: Eugeni Dodonov @ 2012-02-14 13:44 UTC (permalink / raw)
  To: intel-gfx; +Cc: Eugeni Dodonov

With base on latest findings, RC6p seems to be respondible for RC6-related
issues on Sandy Bridge platform. To work-around those issues, the previous
solution was to completely disable RC6 on Sandy Bridge for the past few
releases, even if plain RC6 was not giving any issues.

What this patch does is preventing RC6p from being enabled on Sandy Bridge
even if users enable RC6 via a kernel parameter. So it won't change the
defaults in any way, but will ensure that if users do enable RC6 manually
it won't break their machines by enabling this extra state.

Proper fix for this (enabling specific RC6 states according to the GPU
generation) were proposed for the -next kernel, but we are too late in the
release process now to pick such changes.

CC: Keith Packard <keithp@keithp.com>
CC: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index b3b51c4..834d6ad 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8182,8 +8182,8 @@ void gen6_enable_rps(struct drm_i915_private *dev_priv)
 	I915_WRITE(GEN6_RC6pp_THRESHOLD, 64000); /* unused */
 
 	if (intel_enable_rc6(dev_priv->dev))
-		rc6_mask = GEN6_RC_CTL_RC6p_ENABLE |
-			GEN6_RC_CTL_RC6_ENABLE;
+		rc6_mask = GEN6_RC_CTL_RC6_ENABLE |
+			(IS_GEN7(dev_priv->dev)) ? GEN6_RC_CTL_RC6p_ENABLE : 0;
 
 	I915_WRITE(GEN6_RC_CONTROL,
 		   rc6_mask |
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* Re: [PATCH] [drm-intel-fixes] drm/i915: do not enable RC6p on Sandy Bridge
@ 2016-05-03 15:16 Michael Bose
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Bose @ 2016-05-03 15:16 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 10 bytes --]

reconnect

[-- Attachment #1.2: Type: text/html, Size: 31 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-03 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14 13:44 [PATCH] [drm-intel-fixes] drm/i915: do not enable RC6p on Sandy Bridge Eugeni Dodonov
2012-02-15  2:39 ` Keith Packard
2012-02-16  1:44   ` Jesse Barnes
  -- strict thread matches above, loose matches on Subject: below --
2016-05-03 15:16 Michael Bose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox