Skip to contentSkip to conversation

drm/i915: Use fw_domains_put_with_fifo() on HSW

PATCH In review [email protected] 3 participants 5 messages Apr 14, 2016

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

PATCH 1/1 drm/i915: Use fw_domains_put_with_fifo() on HSW

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

HSW still has the wake FIFO, so let's check it.

Cc Mika Kuoppala <[email protected]>
Cc Deepak S <[email protected]>
Fixes 05a2fb157e44 ("drm/i915: Consolidate forcewake code")
---
 drivers/gpu/drm/i915/intel_uncore.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_uncore.c +5 -1
index 4db21ef36b16..4f1dfe616856 100644
@@ -1265,7 +1265,11 @@ static void intel_uncore_fw_domains_init(struct drm_device *dev)
 	} else if (IS_HASWELL(dev) || IS_BROADWELL(dev)) {
 		dev_priv->uncore.funcs.force_wake_get =
 			fw_domains_get_with_thread_status;
-		dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
+		if (IS_HASWELL(dev))
+			dev_priv->uncore.funcs.force_wake_put =
+				fw_domains_put_with_fifo;
+		else
+			dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
 		fw_domain_init(dev_priv, FW_DOMAIN_ID_RENDER,
 			       FORCEWAKE_MT, FORCEWAKE_ACK_HSW);
 	} else if (IS_IVYBRIDGE(dev)) {
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 8 lines · On Thu, Apr 14, 2016 at 02:39:02PM +0300, [email protected] wrote:

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

HSW still has the wake FIFO, so let's check it.

Cc Mika Kuoppala <[email protected]>
Cc Deepak S <[email protected]>
Fixes 05a2fb157e44 ("drm/i915: Consolidate forcewake code")

Oh and I guess we might want
Cc: [email protected]

Quoted 23 lines
---
 drivers/gpu/drm/i915/intel_uncore.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_uncore.c +5 -1
index 4db21ef36b16..4f1dfe616856 100644
@@ -1265,7 +1265,11 @@ static void intel_uncore_fw_domains_init(struct drm_device *dev)
 	} else if (IS_HASWELL(dev) || IS_BROADWELL(dev)) {
 		dev_priv->uncore.funcs.force_wake_get =
 			fw_domains_get_with_thread_status;
-		dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
+		if (IS_HASWELL(dev))
+			dev_priv->uncore.funcs.force_wake_put =
+				fw_domains_put_with_fifo;
+		else
+			dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
 		fw_domain_init(dev_priv, FW_DOMAIN_ID_RENDER,
 			       FORCEWAKE_MT, FORCEWAKE_ACK_HSW);
 	} else if (IS_IVYBRIDGE(dev)) {
Signature · 1 line
2.7.4
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 9 lines · [email protected] writes:

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

HSW still has the wake FIFO, so let's check it.

Cc Mika Kuoppala <[email protected]>
Cc Deepak S <[email protected]>
Fixes 05a2fb157e44 ("drm/i915: Consolidate forcewake code")
Quoted 23 lines
---
 drivers/gpu/drm/i915/intel_uncore.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_uncore.c +5 -1
index 4db21ef36b16..4f1dfe616856 100644
@@ -1265,7 +1265,11 @@ static void intel_uncore_fw_domains_init(struct drm_device *dev)
 	} else if (IS_HASWELL(dev) || IS_BROADWELL(dev)) {
 		dev_priv->uncore.funcs.force_wake_get =
 			fw_domains_get_with_thread_status;
-		dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
+		if (IS_HASWELL(dev))
+			dev_priv->uncore.funcs.force_wake_put =
+				fw_domains_put_with_fifo;
+		else
+			dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
 		fw_domain_init(dev_priv, FW_DOMAIN_ID_RENDER,
 			       FORCEWAKE_MT, FORCEWAKE_ACK_HSW);
 	} else if (IS_IVYBRIDGE(dev)) {
Signature · 1 line
2.7.4

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

Reviewed-by
#3 lore raw
Quoted 5 lines · Mika Kuoppala
Quoted 3 lines · [email protected] writes:

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

Quoted 8 lines
Quoted 6 lines

HSW still has the wake FIFO, so let's check it.

Cc Mika Kuoppala <[email protected]>
Cc Deepak S <[email protected]>
Fixes 05a2fb157e44 ("drm/i915: Consolidate forcewake code")

Oh my. This could help explain some of the instablity on Haswell...

-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
author Applied
#4 lore raw
In reply to Mika Kuoppala
Quoted 5 lines · Mika Kuoppala
Quoted 3 lines · [email protected] writes:

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

Quoted 8 lines
Quoted 6 lines

HSW still has the wake FIFO, so let's check it.

Cc Mika Kuoppala <[email protected]>
Cc Deepak S <[email protected]>
Fixes 05a2fb157e44 ("drm/i915: Consolidate forcewake code")

Pushed to dinq. Thanks for the review.

Quoted 24 lines
Quoted 24 lines
---
 drivers/gpu/drm/i915/intel_uncore.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_uncore.c +5 -1
index 4db21ef36b16..4f1dfe616856 100644
@@ -1265,7 +1265,11 @@ static void intel_uncore_fw_domains_init(struct drm_device *dev)
 	} else if (IS_HASWELL(dev) || IS_BROADWELL(dev)) {
 		dev_priv->uncore.funcs.force_wake_get =
 			fw_domains_get_with_thread_status;
-		dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
+		if (IS_HASWELL(dev))
+			dev_priv->uncore.funcs.force_wake_put =
+				fw_domains_put_with_fifo;
+		else
+			dev_priv->uncore.funcs.force_wake_put = fw_domains_put;
 		fw_domain_init(dev_priv, FW_DOMAIN_ID_RENDER,
 			       FORCEWAKE_MT, FORCEWAKE_ACK_HSW);
 	} else if (IS_IVYBRIDGE(dev)) {
Signature · 1 line
2.7.4
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx