All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/omap: gem: Fix tearing with BO_TILED
@ 2019-12-21  0:57 ` Tony Lindgren
  0 siblings, 0 replies; 22+ messages in thread
From: Tony Lindgren @ 2019-12-21  0:57 UTC (permalink / raw)
  To: Tomi Valkeinen
  Cc: Matthijs van Duin, H . Nikolaus Schaller, Merlijn Wajer,
	Sebastian Reichel, dri-devel, Laurent Pinchart, linux-omap

On my droid4 I noticed bad constant tearing on the LCD with stellarium in
landscape mode with xorg-video-omap rotated with xrandr --rotate right.
Every second or so update gets squeezed down in size to only the top half
of the LCD panel.

This issue does not happen with xrandr --rotate normal, or when HDMI
display is also connected. Looks like xorg-video-omap switches to tiled
mode in the the rotated case.

Looking around what might affect BO_TILED, I noticed Matthijs had this
change in his earlier pyra tiler patches. The earlier patch "XXX omapdrm:
force tiled buffers to be pinned and page-aligned" has no commit log
though, so I'm not sure what other issues this might fix.

This is with the old pvr-omap4 driver, but presumably the same issue
exists in all cases.

Cc: H. Nikolaus Schaller <hns@goldelico.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Matthijs van Duin <matthijsvanduin@gmail.com>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---


Matthijs, do you have some more info to add to the description?


 drivers/gpu/drm/omapdrm/omap_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c
--- a/drivers/gpu/drm/omapdrm/omap_gem.c
+++ b/drivers/gpu/drm/omapdrm/omap_gem.c
@@ -789,7 +789,7 @@ int omap_gem_pin(struct drm_gem_object *obj, dma_addr_t *dma_addr)
 			if (omap_obj->flags & OMAP_BO_TILED_MASK) {
 				block = tiler_reserve_2d(fmt,
 						omap_obj->width,
-						omap_obj->height, 0);
+						omap_obj->height, PAGE_SIZE);
 			} else {
 				block = tiler_reserve_1d(obj->size);
 			}
-- 
2.24.1

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

end of thread, other threads:[~2020-01-09 17:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-21  0:57 [PATCH] drm/omap: gem: Fix tearing with BO_TILED Tony Lindgren
2019-12-21  0:57 ` Tony Lindgren
2019-12-21 16:41 ` Tony Lindgren
2019-12-21 16:41   ` Tony Lindgren
2020-01-04  5:09   ` Matthijs van Duin
2020-01-04  5:09     ` Matthijs van Duin
2020-01-04  5:50     ` Tony Lindgren
2020-01-04  5:50       ` Tony Lindgren
2020-01-05 20:37       ` Tony Lindgren
2020-01-05 20:37         ` Tony Lindgren
2020-01-06 18:06         ` Matthijs van Duin
2020-01-06 18:06           ` Matthijs van Duin
2020-01-08 16:57           ` Tony Lindgren
2020-01-08 16:57             ` Tony Lindgren
2020-01-07 13:30         ` Tomi Valkeinen
2020-01-07 13:30           ` Tomi Valkeinen
2020-01-07 13:31           ` Tomi Valkeinen
2020-01-07 13:31             ` Tomi Valkeinen
2020-01-04  4:52 ` Matthijs van Duin
2020-01-04  4:52   ` Matthijs van Duin
2020-01-04  5:53   ` Tony Lindgren
2020-01-04  5:53     ` Tony Lindgren

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.