All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Ruei, Eric" <e-ruei1@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: [krogoth][PATCH] kmscube: cleanup and include bug fix for HDMI
Date: Tue, 28 Mar 2017 17:58:52 -0400	[thread overview]
Message-ID: <20170328215852.GP29187@edge> (raw)
In-Reply-To: <009C030982313E4589C6BC55FBF1E82A2535AD83@DFLE09.ent.ti.com>

Ok, then, might have been a good idea to mention it was a backport from 
morty...

On Tue, Mar 28, 2017 at 05:56:38PM -0400, Ruei, Eric wrote:
> Hi, Denys:
> 
> The changes have already been applied to morty by Karthik.
> 
> Best regards,
> 
> Eric
> 
> -----Original Message-----
> From: Dmytriyenko, Denys 
> Sent: Tuesday, March 28, 2017 5:43 PM
> To: Ruei, Eric
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] [krogoth][PATCH] kmscube: cleanup and include bug fix for HDMI
> 
> Is it applicable to morty or do you need to submit a separate patch?
> 
> 
> On Mon, Mar 27, 2017 at 05:09:02PM -0400, Eric Ruei wrote:
> > All local patches merged to git repository
> > 
> > Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> > ---
> >  ...001-kmscube.c-init_drm-enable-AM3-support.patch | 28 --------  
> > ...nit_drm-select-the-current-CRTC-display-m.patch | 76 ----------------------
> >  .../recipes-graphics/kmscube/kmscube_1.0.0.bb      |  7 +-
> >  3 files changed, 1 insertion(+), 110 deletions(-)  delete mode 100644 
> > meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-init
> > _drm-enable-AM3-support.patch  delete mode 100644 
> > meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-init
> > _drm-select-the-current-CRTC-display-m.patch
> > 
> > diff --git 
> > a/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-enable-AM3-support.patch 
> > b/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-enable-AM3-support.patch
> > deleted file mode 100644
> > index 64b7b04..0000000
> > --- 
> > a/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-enable-AM3-support.patch
> > +++ /dev/null
> > @@ -1,28 +0,0 @@
> > -From 82a3cc3ddec96fba7204f5ecab0890801a0b54b4 Mon Sep 17 00:00:00 
> > 2001
> > -From: Eric Ruei <e-ruei1@ti.com>
> > -Date: Thu, 25 Feb 2016 09:49:24 -0500
> > -Subject: [PATCH] kmscube.c: init_drm(): enable AM3 support
> > -
> > -Enable AM3 support by adding "tilcdc" to the modules list.
> > -
> > -Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> > ----
> > - kmscube.c | 2 +-
> > - 1 file changed, 1 insertion(+), 1 deletion(-)
> > -
> > -diff --git a/kmscube.c b/kmscube.c
> > -index 5a18c32..919b3e7 100644
> > ---- a/kmscube.c
> > -+++ b/kmscube.c
> > -@@ -84,7 +84,7 @@ struct drm_fb {
> > - static int init_drm(void)
> > - {
> > - 	static const char *modules[] = {
> > --			"omapdrm", "i915", "radeon", "nouveau", "vmwgfx", "exynos"
> > -+			"omapdrm", "tilcdc", "i915", "radeon", "nouveau", "vmwgfx", "exynos"
> > - 	};
> > - 	drmModeRes *resources;
> > - 	drmModeConnector *connector = NULL;
> > ---
> > -1.9.1
> > -
> > diff --git 
> > a/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-select-the-current-CRTC-display-m.patch 
> > b/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-select-the-current-CRTC-display-m.patch
> > deleted file mode 100644
> > index e6db0a3..0000000
> > --- 
> > a/meta-arago-extras/recipes-graphics/kmscube/kmscube/0001-kmscube.c-in
> > it_drm-select-the-current-CRTC-display-m.patch
> > +++ /dev/null
> > @@ -1,76 +0,0 @@
> > -From c2fd69466fcf1de1d20ee437470b40584964b32d Mon Sep 17 00:00:00 
> > 2001
> > -From: Eric Ruei <e-ruei1@ti.com>
> > -Date: Thu, 10 Dec 2015 12:41:15 -0500
> > -Subject: [PATCH] kmscube.c: init_drm(): select the current CRTC 
> > display mode
> > - is valid
> > -
> > -Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> > ----
> > - kmscube.c | 35 ++++++++++++++++++++++++++++++++---
> > - 1 file changed, 32 insertions(+), 3 deletions(-)
> > -
> > -diff --git a/kmscube.c b/kmscube.c
> > -index 5a18c32..51a2c28 100644
> > ---- a/kmscube.c
> > -+++ b/kmscube.c
> > -@@ -89,6 +89,8 @@ static int init_drm(void)
> > - 	drmModeRes *resources;
> > - 	drmModeConnector *connector = NULL;
> > - 	drmModeEncoder *encoder = NULL;
> > -+	drmModeCrtc *crtc = NULL;
> > -+
> > - 	int i, j;
> > - 	uint32_t maxRes, curRes;
> > -
> > -@@ -119,10 +121,8 @@ static int init_drm(void)
> > - 	for (i = 0; i < resources->count_connectors; i++) {
> > - 		connector = drmModeGetConnector(drm.fd, resources->connectors[i]);
> > - 		if (connector->connection == DRM_MODE_CONNECTED) {
> > --			/* choose the first supported mode */
> > --			drm.mode[drm.ndisp] = &connector->modes[0];
> > --			drm.connector_id[drm.ndisp] = connector->connector_id;
> > -
> > -+			/* find the matched encoders */
> > - 			for (j=0; j<resources->count_encoders; j++) {
> > - 				encoder = drmModeGetEncoder(drm.fd, resources->encoders[j]);
> > - 				if (encoder->encoder_id == connector->encoder_id)
> > -@@ -137,6 +137,35 @@ static int init_drm(void)
> > - 				return -1;
> > - 			}
> > -
> > -+			/* choose the current or first supported mode */
> > -+			crtc = drmModeGetCrtc(drm.fd, encoder->crtc_id);
> > -+			for (j = 0; j < connector->count_modes; j++)
> > -+			{
> > -+				if (crtc->mode_valid)
> > -+				{
> > -+					if ((connector->modes[j].hdisplay == crtc->width) &&
> > -+					(connector->modes[j].vdisplay == crtc->height))
> > -+					{
> > -+						drm.mode[drm.ndisp] = &connector->modes[j];
> > -+						break;
> > -+					}
> > -+				}
> > -+				else
> > -+				{
> > -+					if ((connector->modes[j].hdisplay == crtc->x) &&
> > -+					   (connector->modes[j].vdisplay == crtc->y))
> > -+					{
> > -+						drm.mode[drm.ndisp] = &connector->modes[j];
> > -+						break;
> > -+					}
> > -+				}
> > -+			}
> > -+
> > -+			if(j >= connector->count_modes)
> > -+				drm.mode[drm.ndisp] = &connector->modes[0];
> > -+
> > -+			drm.connector_id[drm.ndisp] = connector->connector_id;
> > -+
> > - 			drm.encoder[drm.ndisp]  = (uint32_t) encoder;
> > - 			drm.crtc_id[drm.ndisp] = encoder->crtc_id;
> > - 			drm.connectors[drm.ndisp] = connector;
> > ---
> > -1.9.1
> > -
> > -
> > diff --git 
> > a/meta-arago-extras/recipes-graphics/kmscube/kmscube_1.0.0.bb 
> > b/meta-arago-extras/recipes-graphics/kmscube/kmscube_1.0.0.bb
> > index 1e9a8bf..ded977d 100644
> > --- a/meta-arago-extras/recipes-graphics/kmscube/kmscube_1.0.0.bb
> > +++ b/meta-arago-extras/recipes-graphics/kmscube/kmscube_1.0.0.bb
> > @@ -11,15 +11,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
> >  inherit autotools pkgconfig
> >  
> >  PR = "r5"
> > -SRCREV = "1c8a0d26c5b1918432fd94d2ac9894b3dcdb2814"
> > +SRCREV = "0fa27a594fd3290644f5666eac62dc570f26f866"
> >  
> >  SRC_URI = "git://git.ti.com/glsdk/kmscube.git;protocol=git"
> >  
> > -SRC_URI_append = " \
> > -    file://0001-kmscube.c-init_drm-select-the-current-CRTC-display-m.patch \
> > -    file://0001-kmscube.c-init_drm-enable-AM3-support.patch \
> > -"
> > -
> >  S = "${WORKDIR}/git"
> >  
> >  INSANE_SKIP_kmscube += "dev-deps"
> > --
> > 1.9.1
> > 
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


  reply	other threads:[~2017-03-28 21:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27 21:09 [krogoth][PATCH] kmscube: cleanup and include bug fix for HDMI Eric Ruei
2017-03-28 21:43 ` Denys Dmytriyenko
2017-03-28 21:56   ` Ruei, Eric
2017-03-28 21:58     ` Denys Dmytriyenko [this message]
2017-03-28 21:59       ` Ruei, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170328215852.GP29187@edge \
    --to=denys@ti.com \
    --cc=e-ruei1@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.