drm/i915: Attempt to fix watermark setup on 85x
Subsystems (2)
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
@@ -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
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
Signed-off-by Adam Jackson <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_display.c +4
-3@@ -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;
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_sizecallback function is used for 85x.It seems that the i830 is also covered by the
IS_MOBILEand 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