Skip to contentSkip to conversation

drm/i915: Attempt to fix watermark setup on 85x

PATCH Applied Adam Jackson 2 participants 3 messages Apr 15, 2010 – Apr 16, 2010

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

PATCH 2/2 drm/i915: Attempt to fix watermark setup on 85x

IS_MOBILE() catches 85x, so we'd always try to use the 9xx FIFO sizing; since there's an explicit 85x version, this seems wrong.

---
 drivers/gpu/drm/i915/intel_display.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_display.c +4 -3
index 9fdea06..cd87e3b 100644
@@ -5263,11 +5263,12 @@ static void intel_init_display(struct drm_device *dev)
 		dev_priv->display.update_wm = i965_update_wm;
 	else if (IS_I9XX(dev) || IS_MOBILE(dev)) {
 		dev_priv->display.update_wm = i9xx_update_wm;
-		dev_priv->display.get_fifo_size = i9xx_get_fifo_size;
-	} else {
 		if (IS_I85X(dev))
 			dev_priv->display.get_fifo_size = i85x_get_fifo_size;
-		else if (IS_845G(dev))
+		else
+			dev_priv->display.get_fifo_size = i9xx_get_fifo_size;
+	} else {
+		if (IS_845G(dev))
 			dev_priv->display.get_fifo_size = i845_get_fifo_size;
 		else
 			dev_priv->display.get_fifo_size = i830_get_fifo_size;
Signature · 1 line
1.6.6.1
#1 lore raw
Quoted 2 lines · Adam Jackson

IS_MOBILE() catches 85x, so we'd always try to use the 9xx FIFO sizing; since there's an explicit 85x version, this seems wrong.

Right. It seems that the incorrect get_fifo_size callback function is used for 85x.

It seems that the i830 is also covered by the IS_MOBILE and then incorrect watermark callback function is used for I830.

thanks
Yakui

Quoted 26 lines
---
 drivers/gpu/drm/i915/intel_display.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_display.c +4 -3
index 9fdea06..cd87e3b 100644
@@ -5263,11 +5263,12 @@ static void intel_init_display(struct drm_device *dev)
 		dev_priv->display.update_wm = i965_update_wm;
 	else if (IS_I9XX(dev) || IS_MOBILE(dev)) {
 		dev_priv->display.update_wm = i9xx_update_wm;
-		dev_priv->display.get_fifo_size = i9xx_get_fifo_size;
-	} else {
 		if (IS_I85X(dev))
 			dev_priv->display.get_fifo_size = i85x_get_fifo_size;
-		else if (IS_845G(dev))
+		else
+			dev_priv->display.get_fifo_size = i9xx_get_fifo_size;
+	} else {
+		if (IS_845G(dev))
 			dev_priv->display.get_fifo_size = i845_get_fifo_size;
 		else
 			dev_priv->display.get_fifo_size = i830_get_fifo_size;
#2 lore raw
Quoted 9 lines · ykzhao
Quoted 2 lines · Adam Jackson

IS_MOBILE() catches 85x, so we'd always try to use the 9xx FIFO sizing; since there's an explicit 85x version, this seems wrong.

Right. It seems that the incorrect get_fifo_size callback function is used for 85x.

It seems that the i830 is also covered by the IS_MOBILE and then incorrect watermark callback function is used for I830.

So it is. Correct patch to follow.

- ajax

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