* [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6.
@ 2014-01-09 13:58 deepak.s
2014-01-09 14:02 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: deepak.s @ 2014-01-09 13:58 UTC (permalink / raw)
To: intel-gfx; +Cc: Deepak S
From: Deepak S <deepak.s@intel.com>
We need do forcewake before Disabling RC6, This is what the BIOS
expects while going into suspend.
v2: updated commit message. (Daniel)
Signed-off-by: Deepak S <deepak.s@intel.com>
---
drivers/gpu/drm/i915/intel_pm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 469170c..bd68eb4 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3135,8 +3135,14 @@ static void valleyview_disable_rps(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
+ /* we're doing forcewake before Disabling RC6,
+ * This what the BIOS expects when going into suspend */
+ gen6_gt_force_wake_get(dev_priv, FORCEWAKE_ALL);
+
I915_WRITE(GEN6_RC_CONTROL, 0);
+ gen6_gt_force_wake_put(dev_priv, FORCEWAKE_ALL);
+
gen6_disable_rps_interrupts(dev);
if (dev_priv->vlv_pctx) {
--
1.8.4.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6.
2014-01-09 13:58 [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6 deepak.s
@ 2014-01-09 14:02 ` Chris Wilson
2014-01-09 15:16 ` S, Deepak
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2014-01-09 14:02 UTC (permalink / raw)
To: deepak.s; +Cc: intel-gfx
On Thu, Jan 09, 2014 at 07:28:27PM +0530, deepak.s@intel.com wrote:
> From: Deepak S <deepak.s@intel.com>
>
> We need do forcewake before Disabling RC6, This is what the BIOS
> expects while going into suspend.
What suspend are we talking about? When does the BIOS run, how is that
serialised with the get/put of forcewake?
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6.
2014-01-09 14:02 ` Chris Wilson
@ 2014-01-09 15:16 ` S, Deepak
0 siblings, 0 replies; 3+ messages in thread
From: S, Deepak @ 2014-01-09 15:16 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx@lists.freedesktop.org
Hi Chris,
During the development of runtime power management we faced some random issue around RC6 during the suspend. After some analyzing, we found by following the flow of doing Forcewake Get before the RC6 Disable and forcewake Put after we enable the RC6 solved most of the issues.
This patch adds the Forcewake get before disabling the RC6
My commit message was to generic I guess :) I will change the commit message.
The flow is between the driver and punit. :)
Thanks
Deepak
-----Original Message-----
From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
Sent: Thursday, January 9, 2014 7:32 PM
To: S, Deepak
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6.
On Thu, Jan 09, 2014 at 07:28:27PM +0530, deepak.s@intel.com wrote:
> From: Deepak S <deepak.s@intel.com>
>
> We need do forcewake before Disabling RC6, This is what the BIOS
> expects while going into suspend.
What suspend are we talking about? When does the BIOS run, how is that serialised with the get/put of forcewake?
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-09 15:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 13:58 [PATCH v2] drm/i915: Bring UP Power Wells before disabling RC6 deepak.s
2014-01-09 14:02 ` Chris Wilson
2014-01-09 15:16 ` S, Deepak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox