All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC] drm/i915: reduce cursor size for GEN5 hardware
@ 2017-01-31  8:09 Uwe Kleine-König
  2017-01-31  9:03 ` Maarten Lankhorst
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Uwe Kleine-König @ 2017-01-31  8:09 UTC (permalink / raw)
  To: Daniel Vetter, Jani Nikula; +Cc: intel-gfx, Martin Peres

From: Chris Wilson <chris@chris-wilson.co.uk>

As the introduced comment admits this is clearly a workaround, but for
me this is the only known way to make my Lenovo X201 work without
flickering and crashing.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
[uwe: added changelog, comment and restrict to GEN5]
---
Hello,

as I don't like having to compile my own kernel (which has this workaround) I
suggest to apply this patch until someone with more knowledge than me about
i915 finds the muse and time to work on this.

If applying this patch means that I will become i915 maintainer, then please
don't apply; I'm not ready for this :-)

Best regards
Uwe

 drivers/gpu/drm/i915/intel_display.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f0b9aa7a0483..126825c207b3 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -16488,6 +16488,17 @@ int intel_modeset_init(struct drm_device *dev)
 	} else if (IS_GEN2(dev_priv)) {
 		dev->mode_config.cursor_width = GEN2_CURSOR_WIDTH;
 		dev->mode_config.cursor_height = GEN2_CURSOR_HEIGHT;
+	} else if (IS_GEN5(dev_priv)) {
+		/*
+		 * actually the hardware should be capable to handle
+		 * MAX_CURSOR_{WIDTH,HEIGHT} (i.e. 256), but on some GEN 5
+		 * hardware this results in fifo underruns, occasional
+		 * hardware lockups and display artifacts.
+		 * See https://bugs.freedesktop.org/show_bug.cgi?id=98742 for
+		 * more details.
+		 */
+		dev->mode_config.cursor_width = 64;
+		dev->mode_config.cursor_height = 64;
 	} else {
 		dev->mode_config.cursor_width = MAX_CURSOR_WIDTH;
 		dev->mode_config.cursor_height = MAX_CURSOR_HEIGHT;
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-03-21 14:43 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-31  8:09 [PATCH RFC] drm/i915: reduce cursor size for GEN5 hardware Uwe Kleine-König
2017-01-31  9:03 ` Maarten Lankhorst
2017-01-31 19:13   ` Uwe Kleine-König
2017-02-01 12:41     ` Maarten Lankhorst
2017-02-01 14:37       ` Ville Syrjälä
2017-02-07 13:22         ` Uwe Kleine-König
2017-02-07 15:03           ` Martin Peres
2017-02-07 15:35             ` Ville Syrjälä
2017-02-07 17:51               ` Maarten Lankhorst
2017-02-07 17:58                 ` Ville Syrjälä
2017-02-17 11:10               ` Uwe Kleine-König
2017-02-17 15:01                 ` [PATCH] drm/i915: Fix legacy cursor vs. watermarks for ILK-BDW ville.syrjala
2017-02-17 20:04                   ` Uwe Kleine-König
2017-02-17 20:18                     ` Ville Syrjälä
2017-02-20  9:04                   ` Maarten Lankhorst
2017-02-20 13:38                     ` Ville Syrjälä
2017-02-20 14:30                       ` Maarten Lankhorst
2017-02-24 13:11                         ` Ville Syrjälä
2017-02-25 15:31                           ` Maarten Lankhorst
2017-03-02 14:58                             ` Ville Syrjälä
2017-03-21 13:42                               ` Ander Conselvan De Oliveira
2017-03-21 14:43                                 ` Ville Syrjälä
2017-01-31  9:25 ` ✗ Fi.CI.BAT: warning for drm/i915: reduce cursor size for GEN5 hardware Patchwork
2017-02-17 17:52 ` ✓ Fi.CI.BAT: success for drm/i915: reduce cursor size for GEN5 hardware (rev4) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.