dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] drm/omap: misc fixes
@ 2014-09-24 13:11 Tomi Valkeinen
  2014-09-24 13:11 ` [PATCH 1/9] drm/omap: fix encoder-crtc mapping Tomi Valkeinen
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Tomi Valkeinen @ 2014-09-24 13:11 UTC (permalink / raw)
  To: Rob Clark, dri-devel; +Cc: Tomi Valkeinen

Hi,

This is a modified version of the series I sent earlier
(http://comments.gmane.org/gmane.comp.video.dri.devel/113812). I haven't had
time to work on the locking issues, so I've dropped the patches related to that
so that the rest could get merged.

I have also added three new small patches (the three last ones).

 Tomi

Tomi Valkeinen (9):
  drm/omap: fix encoder-crtc mapping
  drm/omap: page_flip: return -EBUSY if flip pending
  drm/omap: fix race issue with vsync irq and apply
  drm/omap: clear omap_obj->paddr in omap_gem_put_paddr()
  drm/omap: add pin refcounting to omap_framebuffer
  drm/omap: add a comment why locking is missing
  drm/omap: fix operation without fbdev
  drm/omap: fix error handling in omap_framebuffer_create()
  drm/omap: handle mismatching color format and buffer width

 drivers/gpu/drm/omapdrm/omap_crtc.c  | 19 ++++++++++++++++---
 drivers/gpu/drm/omapdrm/omap_drv.c   | 18 ++++++++++--------
 drivers/gpu/drm/omapdrm/omap_fb.c    | 26 +++++++++++++++++++++++---
 drivers/gpu/drm/omapdrm/omap_gem.c   |  1 +
 drivers/gpu/drm/omapdrm/omap_plane.c |  4 ++++
 5 files changed, 54 insertions(+), 14 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 1/9] drm/omap: fix encoder-crtc mapping
@ 2014-09-03 11:55 Tomi Valkeinen
  2014-09-03 11:55 ` [PATCH 2/9] drm/omap: page_flip: return -EBUSY if flip pending Tomi Valkeinen
  0 siblings, 1 reply; 12+ messages in thread
From: Tomi Valkeinen @ 2014-09-03 11:55 UTC (permalink / raw)
  To: Rob Clark, dri-devel; +Cc: Tomi Valkeinen

OMAP DSS hardware supports changing the output port to which an overlay
manager's video stream goes. For example, DPI video stream can come from
any of the four overlay managers on OMAP5.

However, as it's difficult to manage the change in the driver, the
omapdss driver does not support that at the moment, and has a hardcoded
overlay manager per output.

omapdrm, on the other hand, uses the hardware features to find out which
overlay manager to use for an output, which causes problems. For
example, on OMAP5, omapdrm tries to use DIGIT overlay manager for DPI
output, instead of the LCD3 required by the omapdss driver.

This patch changes the omapdrm to use the omapdss driver's hardcoded
overlay managers, which fixes the issue.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
---
 drivers/gpu/drm/omapdrm/omap_drv.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 002b9721e85a..26fda74c1e48 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -286,14 +286,13 @@ static int omap_modeset_init(struct drm_device *dev)
 		for (id = 0; id < priv->num_crtcs; id++) {
 			struct drm_crtc *crtc = priv->crtcs[id];
 			enum omap_channel crtc_channel;
-			enum omap_dss_output_id supported_outputs;
 
 			crtc_channel = omap_crtc_channel(crtc);
-			supported_outputs =
-				dss_feat_get_supported_outputs(crtc_channel);
 
-			if (supported_outputs & output->id)
+			if (output->dispc_channel == crtc_channel) {
 				encoder->possible_crtcs |= (1 << id);
+				break;
+			}
 		}
 
 		omap_dss_put_device(output);
-- 
1.9.1

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

end of thread, other threads:[~2014-09-24 13:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 13:11 [PATCH 0/9] drm/omap: misc fixes Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 1/9] drm/omap: fix encoder-crtc mapping Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 2/9] drm/omap: page_flip: return -EBUSY if flip pending Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 3/9] drm/omap: fix race issue with vsync irq and apply Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 4/9] drm/omap: clear omap_obj->paddr in omap_gem_put_paddr() Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 5/9] drm/omap: add pin refcounting to omap_framebuffer Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 6/9] drm/omap: add a comment why locking is missing Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 7/9] drm/omap: fix operation without fbdev Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 8/9] drm/omap: fix error handling in omap_framebuffer_create() Tomi Valkeinen
2014-09-24 13:11 ` [PATCH 9/9] drm/omap: handle mismatching color format and buffer width Tomi Valkeinen
2014-09-24 13:48 ` [PATCH 10/10] drm/omap: fix TILER on OMAP5 Tomi Valkeinen
  -- strict thread matches above, loose matches on Subject: below --
2014-09-03 11:55 [PATCH 1/9] drm/omap: fix encoder-crtc mapping Tomi Valkeinen
2014-09-03 11:55 ` [PATCH 2/9] drm/omap: page_flip: return -EBUSY if flip pending Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).