devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@csie.org>
To: Maxime Ripard <maxime.ripard@free-electrons.com>,
	David Airlie <airlied@linux.ie>
Cc: devicetree@vger.kernel.org, Chen-Yu Tsai <wens@csie.org>,
	linux-arm-kernel@lists.infradead.org,
	dri-devel@lists.freedesktop.org
Subject: [PATCH 0/8] drm/sun4i: Make both display pipeline work together
Date: Fri,  8 Sep 2017 15:50:08 +0800	[thread overview]
Message-ID: <20170908075016.18657-1-wens@csie.org> (raw)

Hi everyone,

Previously I added support for two display pipelines for the sun4i-drm
driver. At the time we did not have support for downstream encoders to
actually test the second pipeline, nor having both pipelines active at
the same time.

With HDMI encoder support now merged and support for it on sun6i in
progress, we are now able to test both pipelines being active at the
same time, with LCD output from one and HDMI from the other. Testing
has revealed some more issues, such as component probing order. Also,
we found out that muxing between the display backend and TCON was
possible, and required for the second pipeline to work as intended.
Last, the number of CRTCs provided to drm_vblank_init needs to be
increased for vblanks to work properly.

This patch series does a few things:

  - Fix endpoint IDs so they conform to what the DT binding stipulates.

  - Change the order the individual components are queued up.

  - Fix how the TCON gets its ID when the backend-TCON mux is present.

  - Support the input mux in the TCON (which selects which backend to
    use on the A31/A31s).

  - Fix the drm_vblank_init call and pass the correct number of crtcs.

  - Add the cross pipeline connections between the DRCs and TCONs on
    the A31, conforming to the DT binding and what the hardware is
    capable of.

More details are available in each individual commit. Please have a look.

Regards
ChenYu


Chen-Yu Tsai (8):
  ARM: dts: sun6i: Fix endpoint IDs in second display pipeline
  drm/sun4i: add components in breadth first traversal order
  drm/sun4i: tcon: Check for multiple paths between TCONs and backends
  drm/sun4i: tcon: get TCON ID and matching engine with remote endpoint
    ID
  drm/sun4i: tcon: Simplify sun4i_tcon_find_engine_traverse for one
    input
  drm/sun4i: tcon: Support backend input mux
  drm/sun4i: call drm_vblank_init with correct number of crtcs
  ARM: dts: sun6i: Add cross pipeline connections between DRCs and TCONs

 arch/arm/boot/dts/sun6i-a31.dtsi   |  32 +++++--
 drivers/gpu/drm/sun4i/sun4i_drv.c  |  91 +++++++++++++++---
 drivers/gpu/drm/sun4i/sun4i_tcon.c | 191 +++++++++++++++++++++++++++++++++----
 drivers/gpu/drm/sun4i/sun4i_tcon.h |   3 +
 4 files changed, 276 insertions(+), 41 deletions(-)

-- 
2.14.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2017-09-08  7:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08  7:50 Chen-Yu Tsai [this message]
2017-09-08  7:50 ` [PATCH 3/8] drm/sun4i: tcon: Check for multiple paths between TCONs and backends Chen-Yu Tsai
     [not found] ` <20170908075016.18657-1-wens-jdAy2FN1RRM@public.gmane.org>
2017-09-08  7:50   ` [PATCH 1/8] ARM: dts: sun6i: Fix endpoint IDs in second display pipeline Chen-Yu Tsai
2017-09-08 13:29     ` Maxime Ripard
2017-09-08 13:38       ` Chen-Yu Tsai
2017-09-08  7:50   ` [PATCH 2/8] drm/sun4i: add components in breadth first traversal order Chen-Yu Tsai
2017-09-08  7:50   ` [PATCH 4/8] drm/sun4i: tcon: get TCON ID and matching engine with remote endpoint ID Chen-Yu Tsai
     [not found]     ` <20170908075016.18657-5-wens-jdAy2FN1RRM@public.gmane.org>
2017-09-09 15:42       ` Maxime Ripard
2017-09-08  7:50   ` [PATCH 6/8] drm/sun4i: tcon: Support backend input mux Chen-Yu Tsai
2017-09-08  7:50   ` [PATCH 7/8] drm/sun4i: call drm_vblank_init with correct number of crtcs Chen-Yu Tsai
2017-09-08  7:50   ` [PATCH 8/8] ARM: dts: sun6i: Add cross pipeline connections between DRCs and TCONs Chen-Yu Tsai
2017-09-09 15:41   ` [PATCH 0/8] drm/sun4i: Make both display pipeline work together Maxime Ripard
2017-09-08  7:50 ` [PATCH 5/8] drm/sun4i: tcon: Simplify sun4i_tcon_find_engine_traverse for one input Chen-Yu Tsai

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=20170908075016.18657-1-wens@csie.org \
    --to=wens@csie.org \
    --cc=airlied@linux.ie \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maxime.ripard@free-electrons.com \
    /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 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).