Skip to contentSkip to conversation

drm/i915: Don't use WaGsvRC0ResidenncyMethod on chv

PATCH In review [email protected] 3 participants 7 messages Aug 29, 2014 – Sep 1, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Don't use WaGsvRC0ResidenncyMethod on chv

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

---
 drivers/gpu/drm/i915/i915_irq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +2 -2
index 8a54870..6d5ae82 100644
@@ -4692,8 +4692,8 @@ void intel_irq_init(struct drm_device *dev)
 	INIT_WORK(&dev_priv->l3_parity.error_work, ivybridge_parity_work);
 
 	/* Let's track the enabled rps events */
-	if (IS_VALLEYVIEW(dev))
-		/* WaGsvRC0ResidenncyMethod:VLV */
+	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev))
+		/* WaGsvRC0ResidencyMethod:vlv */
 		dev_priv->pm_rps_events = GEN6_PM_RP_UP_EI_EXPIRED;
 	else
 		dev_priv->pm_rps_events = GEN6_PM_RPS_EVENTS;
Signature · 6 lines
1.8.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 6 lines · On Fri, Aug 29, 2014 at 02:14:07PM +0300, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

You could review my changes for the vlv manual calculations that would fix it for chv as well...
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw
Quoted 10 lines · Chris Wilson
Quoted 6 lines · On Fri, Aug 29, 2014 at 02:14:07PM +0300, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

You could review my changes for the vlv manual calculations that would fix it for chv as well...

IIRC I glanced at them but there was too much noise in some of the patches for my poor brain so I gave up.

Signature · 2 lines
Ville Syrjälä
Intel OTC
Reviewed-by
#3 lore raw
Quoted 7 lines · Ville Syrjälä
Quoted 6 lines · Chris Wilson
Quoted 5 lines · On Fri, Aug 29, 2014 at 02:14:07PM +0300, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Fix a typo in the w/a name while at it.

You could review my changes for the vlv manual calculations that would fix it for chv as well...

IIRC I glanced at them but there was too much noise in some of the patches for my poor brain so I gave up.

Could you clarify whether you mean WaGsvRC0ResidenncyMethod is only intended for vlv (fixed for chv), or whether just the implementation is currently only for chv.

If the former, and the code is no longer required,

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#4 lore raw
Quoted 13 lines · Chris Wilson
Quoted 12 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoted 6 lines · On Fri, Aug 29, 2014 at 02:14:07PM +0300, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

You could review my changes for the vlv manual calculations that would fix it for chv as well...

Quoted 6 lines
Quoted 2 lines

IIRC I glanced at them but there was too much noise in some of the patches for my poor brain so I gave up.

Could you clarify whether you mean WaGsvRC0ResidenncyMethod is only intended for vlv (fixed for chv), or whether just the implementation is currently only for chv.

At least the w/a isn't listed for chv currently.

Quoted 7 lines

If the former, and the code is no longer required,

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Signature · 2 lines
Ville Syrjälä
Intel OTC
#5 lore raw
In reply to Chris Wilson
Quoted 10 lines · Chris Wilson
Quoted 6 lines · On Fri, Aug 29, 2014 at 02:14:07PM +0300, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

You could review my changes for the vlv manual calculations that would fix it for chv as well...
-Chris

Hi Chris,
I have reviewed your patch. It should directly work for CHV. We still need Ville patch, as "WaGsvRC0ResidenncyMethod (EI_expired)" interrupts are not needed for chv. I can test your patch on CHV, if someone else can test you patch on VLV, i can add my r-b
Thanks
Deepak

Reviewed-by on v1 1/1
#6 lore raw
In reply to [email protected]
Quoted 19 lines · On Friday 29 August 2014 04:44 PM, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

WaGsvRC0ResidenncyMethod is for vlv, it doesn't deal with chv appropriately (eg. doesn't limit rps values to even numbers).

Fix a typo in the w/a name while at it.

---
  drivers/gpu/drm/i915/i915_irq.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +0 -0
index 8a54870..6d5ae82 100644

drivers/gpu/drm/i915/i915_irq.c void intel_irq_init(struct drm_device *dev) · line 4699

Quoted 10 lines
drivers/gpu/drm/i915/i915_irq.c +2 -2
@@ -4692,8 +4692,8 @@ void intel_irq_init(struct drm_device *dev)
  	INIT_WORK(&dev_priv->l3_parity.error_work, ivybridge_parity_work);
 
  	/* Let's track the enabled rps events */
-	if (IS_VALLEYVIEW(dev))
-		/* WaGsvRC0ResidenncyMethod:VLV */
+	if (IS_VALLEYVIEW(dev) && !IS_CHERRYVIEW(dev))
+		/* WaGsvRC0ResidencyMethod:vlv */
  		dev_priv->pm_rps_events = GEN6_PM_RP_UP_EI_EXPIRED;
  	else
  		dev_priv->pm_rps_events = GEN6_PM_RPS_EVENTS;

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx