From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Cc: linux-renesas-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, David Airlie <airlied@linux.ie>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 03/11] drm: rcar-du: Split CRTC handling to support hardware indexing
Date: Sat, 28 Apr 2018 00:21:05 +0300 [thread overview]
Message-ID: <1598672.HiR2zdP9T4@avalon> (raw)
In-Reply-To: <20180427165722.19445-4-kieran.bingham+renesas@ideasonboard.com>
Hi Kieran,
Thank you for the patch.
On Friday, 27 April 2018 19:57:14 EEST Kieran Bingham wrote:
> The DU CRTC driver does not support distinguishing between a hardware
> index, and a software (CRTC) index in the event that a DU channel might
> not be populated by the hardware.
>
> Support this by adapting the rcar_du_device_info structure to store a
> bitmask of available channels rather than a count of CRTCs. The count
> can then be obtained by determining the hamming weight of the bitmask.
>
> This allows the rcar_du_crtc_create() function to distinguish between
> both index types, and non-populated DU channels will be skipped without
> leaving a gap in the software CRTC indexes.
>
> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> ---
> v2:
> - devm_clk_get error message adapted to display Du channel
> - rgrp->planes for gen2 now uses swindex instead of hwindex
> - channel_mask -> channels_mask
> - channel_mask set in LE bit order.
> - (.dpll_ch corrected to LE bit order)
> ---
> drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 26 ++++++++++++++------------
> drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 3 ++-
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 22 +++++++++++-----------
> drivers/gpu/drm/rcar-du/rcar_du_drv.h | 4 ++--
> drivers/gpu/drm/rcar-du/rcar_du_kms.c | 18 +++++++++++++-----
> 5 files changed, 42 insertions(+), 31 deletions(-)
[snip]
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.h
> b/drivers/gpu/drm/rcar-du/rcar_du_drv.h index 5c7ec15818c7..f455548d77b4
> 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.h
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.h
> @@ -52,7 +52,7 @@ struct rcar_du_output_routing {
> * @gen: device generation (2 or 3)
> * @features: device features (RCAR_DU_FEATURE_*)
> * @quirks: device quirks (RCAR_DU_QUIRK_*)
> - * @num_crtcs: total number of CRTCs
> + * @channels_mask: bit mask of supported DU channels
Nitpicking, I'd say "bit mask of available DU channels".
Other than that,
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
If you're fine with the change there's no need to resubmit, I'll change this
when applying.
> * @routes: array of CRTC to output routes, indexed by output
> (RCAR_DU_OUTPUT_*) * @num_lvds: number of internal LVDS encoders
> */
> @@ -60,7 +60,7 @@ struct rcar_du_device_info {
> unsigned int gen;
> unsigned int features;
> unsigned int quirks;
> - unsigned int num_crtcs;
> + unsigned int channels_mask;
> struct rcar_du_output_routing routes[RCAR_DU_OUTPUT_MAX];
> unsigned int num_lvds;
> unsigned int dpll_ch;
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2018-04-27 21:20 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 16:57 [PATCH v2 00/11] r8a77965: M3-N DU Enablement Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` [PATCH v2 01/11] dt-bindings: display: renesas: Add R-Car M3-N HDMI TX DT bindings Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 21:17 ` Laurent Pinchart
2018-04-27 21:17 ` Laurent Pinchart
2018-04-27 16:57 ` [PATCH v2 02/11] pinctrl: sh-pfc: r8a77965: Add DU RGB output pins, groups and functions Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` [PATCH v2 03/11] drm: rcar-du: Split CRTC handling to support hardware indexing Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 21:21 ` Laurent Pinchart [this message]
2018-04-27 16:57 ` [PATCH v2 04/11] drm: rcar-du: Allow DU groups to work with " Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` [PATCH v2 05/11] drm: rcar-du: Add R8A77965 support Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` [PATCH v2 06/11] arm64: dts: r8a77965: Add FCPF and FCPV instances Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-30 7:27 ` Simon Horman
2018-04-30 7:27 ` Simon Horman
2018-04-27 16:57 ` [PATCH v2 07/11] arm64: dts: r8a77965: Add VSP instances Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-30 7:28 ` Simon Horman
2018-04-30 7:28 ` Simon Horman
2018-04-27 16:57 ` [PATCH v2 08/11] arm64: dts: r8a77965: Populate the DU instance placeholder Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-30 7:30 ` Simon Horman
2018-04-30 7:30 ` Simon Horman
2018-04-27 16:57 ` [PATCH v2 09/11] arm64: dts: r8a77965: Add HDMI encoder instance Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-30 7:32 ` Simon Horman
2018-04-30 7:32 ` Simon Horman
2018-04-27 16:57 ` [PATCH v2 10/11] arm64: dts: r8a77965-salvator-x: Enable DU external clocks and HDMI Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 21:34 ` Laurent Pinchart
2018-04-27 21:34 ` Laurent Pinchart
2018-04-27 21:34 ` Laurent Pinchart
2018-04-30 7:34 ` Simon Horman
2018-04-30 7:34 ` Simon Horman
2018-05-28 9:06 ` Geert Uytterhoeven
2018-05-28 9:06 ` Geert Uytterhoeven
2018-05-28 9:06 ` Geert Uytterhoeven
2018-05-29 1:44 ` Kuninori Morimoto
2018-05-29 1:44 ` Kuninori Morimoto
2018-05-29 6:48 ` Geert Uytterhoeven
2018-05-29 6:48 ` Geert Uytterhoeven
2018-05-29 6:48 ` Geert Uytterhoeven
2018-05-29 8:08 ` Kuninori Morimoto
2018-05-29 8:08 ` Kuninori Morimoto
2018-05-29 8:08 ` Kuninori Morimoto
2018-05-29 9:08 ` Kieran Bingham
2018-05-29 9:08 ` Kieran Bingham
2018-05-29 9:08 ` Kieran Bingham
2018-05-29 9:12 ` Geert Uytterhoeven
2018-05-29 9:12 ` Geert Uytterhoeven
2018-05-29 9:12 ` Geert Uytterhoeven
2018-04-27 16:57 ` [PATCH v2 11/11] arm64: dts: r8a77965-salvator-xs: " Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 16:57 ` Kieran Bingham
2018-04-27 21:32 ` Laurent Pinchart
2018-04-27 21:32 ` Laurent Pinchart
2018-04-27 21:32 ` Laurent Pinchart
2018-04-27 21:40 ` Kieran Bingham
2018-04-27 21:40 ` Kieran Bingham
2018-04-27 21:40 ` Kieran Bingham
2018-04-27 21:26 ` [PATCH v2 00/11] r8a77965: M3-N DU Enablement Laurent Pinchart
2018-04-27 21:26 ` Laurent Pinchart
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=1598672.HiR2zdP9T4@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.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.