[PATCH v3 2/6] dt-bindings: display: bridge: renesas, dw-hdmi: Convert binding to YAML

2021-01-04 Thread Laurent Pinchart
Convert the Renesas R-Car DWC HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart --- Changes since v2: - Update MAINTAINERS Changes since v1: - Drop the part numbers in comments, only keep the SoC names - Use unevaluatedProperties instead of additionalProperties - Only specify

[PATCH v3 3/6] dt-bindings: display: imx: hdmi: Convert binding to YAML

2021-01-04 Thread Laurent Pinchart
Convert the i.MX6 HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart --- Changes since v1: - Only specify maxItems for clocks - Drop reg and interrupts as they're checked in the base schema - Rebase on top of OF graph schema, dropped redundant properties - Fix identation for

[PATCH v3 5/6] dt-bindings: display: sun8i-a83t-dw-hdmi: Reference dw-hdmi YAML schema

2021-01-04 Thread Laurent Pinchart
Replace the reference to the DWC HDMI text DT binding with a reference to the YAML equivalent. Signed-off-by: Laurent Pinchart Acked-by: Rob Herring Acked-by: Chen-Yu Tsai --- .../bindings/display/allwinner,sun8i-a83t-dw-hdmi.yaml| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 4/6] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2021-01-04 Thread Laurent Pinchart
Convert the Rockchip HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart --- Changes since v2: - Use Mark's @gmail.com e-mail address as the @rock-chips.com address bounces Changes since v1: - Drop pinctrl-0 and pinctrl-1 - Use unevaluatedProperties instead of additionalPrope

[PATCH v3 6/6] dt-bindings: display: bridge: Remove deprecated dw_hdmi.txt

2021-01-04 Thread Laurent Pinchart
dw_hdmi.txt has been replaced with synopsys,dw-hdmi.yaml, and all references to the old file have been converted. Remove it. Signed-off-by: Laurent Pinchart Acked-by: Rob Herring --- .../bindings/display/bridge/dw_hdmi.txt | 33 --- 1 file changed, 33 deletions(-) delete

Re: [PATCH v3 1/6] dt-bindings: display: bridge: Add YAML schema for Synopsys DW-HDMI

2021-01-04 Thread Laurent Pinchart
On Tue, Jan 05, 2021 at 08:08:13AM +0200, Laurent Pinchart wrote: > Add a .yaml schema containing the common properties for the Synopsys > DesignWare HDMI TX controller. This isn't a full device tree binding > specification, but is meant to be referenced by platform-specific > bi

Re: [PATCH v2 3/6] dt-bindings: display: imx: hdmi: Convert binding to YAML

2021-01-05 Thread Laurent Pinchart
Hi Philipp, On Tue, Jan 05, 2021 at 10:32:01AM +0100, Philipp Zabel wrote: > On Tue, 2021-01-05 at 07:49 +0200, Laurent Pinchart wrote: > > On Mon, Jan 04, 2021 at 04:30:36PM +0100, Philipp Zabel wrote: > > > On Sun, 2020-12-20 at 21:50 +0200, Laurent Pinchart wrote: > &g

Re: [PATCH v2 3/6] dt-bindings: display: imx: hdmi: Convert binding to YAML

2021-01-06 Thread Laurent Pinchart
Hi Philipp, On Wed, Jan 06, 2021 at 03:10:32PM +0100, Philipp Zabel wrote: > On Tue, 2021-01-05 at 13:50 +0200, Laurent Pinchart wrote: > > On Tue, Jan 05, 2021 at 10:32:01AM +0100, Philipp Zabel wrote: > > > On Tue, 2021-01-05 at 07:49 +0200, Laurent Pinchart wrote: > >

Re: [PATCH v3 4/6] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2021-01-06 Thread Laurent Pinchart
Hi Rob, Given that the maintainers property is mandatory in the schema, what's the procedure when no maintainer steps up for a converter YAML binding ? On Tue, Jan 05, 2021 at 08:08:16AM +0200, Laurent Pinchart wrote: > Convert the Rockchip HDMI TX text binding to YAML. > >

Re: [PATCH 2/3] drm: uapi: Use SPDX in DRM drivers uAPI headers

2021-01-08 Thread Laurent Pinchart
inal Message- > > > > From: Laurent Pinchart > > > > Sent: Tuesday, December 15, 2020 9:15 PM > > > > To: Koenig, Christian > > > > Cc: Daniel Vetter ; Laurent Pinchart > > > > ; dri- > > > > de...@lists.freedesktop.org; Dave A

Re: [PATCH v3 4/6] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2021-01-11 Thread Laurent Pinchart
Hi Rob, On Mon, Jan 11, 2021 at 05:01:36PM -0600, Rob Herring wrote: > On Wed, Jan 06, 2021 at 05:17:55PM +0200, Laurent Pinchart wrote: > > Hi Rob, > > > > Given that the maintainers property is mandatory in the schema, what's > > the procedure when no maintain

Re: [PATCH] drm/bridge: nwl-dsi: Avoid potential multiplication overflow on 32-bit

2021-01-11 Thread Laurent Pinchart
le class of bugs by turning NSEC_PER_SEC into a ULL, but I suppose there are valid cases where a 32-bit integer is enough. Reviewed-by: Laurent Pinchart How did you come across this by the way ? > } > > /* -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 4/6] dt-bindings: display: rockchip: dw-hdmi: Convert binding to YAML

2021-01-11 Thread Laurent Pinchart
Hi Rob, On Mon, Jan 11, 2021 at 05:12:58PM -0600, Rob Herring wrote: > On Tue, Jan 05, 2021 at 08:08:16AM +0200, Laurent Pinchart wrote: > > Convert the Rockchip HDMI TX text binding to YAML. > > > > Signed-off-by: Laurent Pinchart > > --- > > Changes since v2:

Re: omapfb removal (was: Re: [PATCHv1] video: omapfb2: Make standard and custom DSI command mode panel driver mutually exclusive)

2021-01-12 Thread Laurent Pinchart
ver provides display overlays > to V4L. I guess on omapdrm V4L can use DRM planes instead and no > driver is needed (i.e. this driver could just go away with omapfb)? One feature that the omapfb2 and the omap-vout drivers provide is rotation support with VRFB on OMAP3. I haven't moved to omapdrm on an old project for this reason. It should be possible to implement rotation support in omapdrm, but I'm not aware of any effort in that direction. -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm: rcar-du: Use drmm_encoder_alloc() to manage encoder

2021-01-13 Thread Laurent Pinchart
"drm: rcar-du: Use DRM-managed allocation for encoders") We could equally point to the patch that has added drmm_encoder_alloc(), but I'm fine taking the blame :-) Reviewed-by: Laurent Pinchart > Reported-by: Geert Uytterhoeven > Signed-off-by: Kieran Bingham >

Re: [PATCH 0/3] drm: rcar-du: Add missing dependencies

2021-12-15 Thread Laurent Pinchart
RCH_RENESAS > > drivers/gpu/drm/rcar-du/Kconfig | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) -- Regards, Laurent Pinchart

Re: [PATCH 2/3] drm: rcar-du: DRM_RCAR_USE_LVDS should depend on DRM_RCAR_DU

2021-12-15 Thread Laurent Pinchart
mp;& OF && DRM_RCAR_DU Shouldn't the same be done for DRM_RCAR_DW_HDMI ? Even better, we could wrap all the entries for the subdrivers in a 'if DRM_RCAR_DU'. > default DRM_RCAR_DU > help > Enable support for the R-Car Display Unit embedded LVDS encoders. -- Regards, Laurent Pinchart

Re: [PATCH 2/3] drm: rcar-du: DRM_RCAR_USE_LVDS should depend on DRM_RCAR_DU

2021-12-15 Thread Laurent Pinchart
Hi Geert, On Wed, Dec 15, 2021 at 11:17:37AM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 15, 2021 at 11:12 AM Laurent Pinchart wrote: > > On Wed, Dec 15, 2021 at 10:27:46AM +0100, Geert Uytterhoeven wrote: > > > The Renesas R-Car LVDS encoder driver is a subdriver of the R

Re: [PATCH 1/3] drm: rcar-du: DRM_RCAR_DW_HDMI should depend on ARCH_RENESAS

2021-12-15 Thread Laurent Pinchart
W_HDMI > tristate "R-Car Gen3 and RZ/G2 DU HDMI Encoder Support" > depends on DRM && OF > + depends on ARCH_RENESAS || COMPILE_TEST Let's move this entry first to keep alphabetical order. Reviewed-by: Laurent Pinchart > select DRM_DW_HDMI &

Re: [PATCH 3/3] drm: rcar-du: DRM_RCAR_MIPI_DSI should depend on ARCH_RENESAS

2021-12-15 Thread Laurent Pinchart
state "R-Car DU MIPI DSI Encoder Support" > depends on DRM && DRM_BRIDGE && OF > + depends on ARCH_RENESAS || COMPILE_TEST Same as for 1/3, let's move this entry first. I can handle this when applying the patches, I'll take 1/3 and 3/3 in m

Re: [PATCH 3/3] drm: rcar-du: DRM_RCAR_MIPI_DSI should depend on ARCH_RENESAS

2021-12-15 Thread Laurent Pinchart
On Wed, Dec 15, 2021 at 12:25:26PM +0200, Laurent Pinchart wrote: > Hi Geert, > > Thank you for the patch. > > On Wed, Dec 15, 2021 at 10:27:47AM +0100, Geert Uytterhoeven wrote: > > The Renesas R-Car Display Unit embedded MIPI DSI encoder is only present > > on Ren

Re: [PATCH 2/3] drm: rcar-du: DRM_RCAR_USE_LVDS should depend on DRM_RCAR_DU

2021-12-15 Thread Laurent Pinchart
Hi Geert, On Wed, Dec 15, 2021 at 12:23:39PM +0200, Laurent Pinchart wrote: > On Wed, Dec 15, 2021 at 11:17:37AM +0100, Geert Uytterhoeven wrote: > > On Wed, Dec 15, 2021 at 11:12 AM Laurent Pinchart wrote: > > > On Wed, Dec 15, 2021 at 10:27:46AM +0100, Geert Uytterhoeven

Re: [PATCH 2/3] drm: rcar-du: DRM_RCAR_USE_LVDS should depend on DRM_RCAR_DU

2021-12-15 Thread Laurent Pinchart
Hi Geert, On Wed, Dec 15, 2021 at 11:47:27AM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 15, 2021 at 11:30 AM Laurent Pinchart wrote: > > On Wed, Dec 15, 2021 at 12:23:39PM +0200, Laurent Pinchart wrote: > > > On Wed, Dec 15, 2021 at 11:17:37AM +0100, Geert Uytterhoeven wro

Re: [PATCH 00/60] drm: Make all drivers to honour the nomodeset parameter

2021-12-15 Thread Laurent Pinchart
| 3 +++ > drivers/gpu/drm/tiny/st7586.c | 3 +++ > drivers/gpu/drm/tiny/st7735r.c | 3 +++ > drivers/gpu/drm/tve200/tve200_drv.c | 3 +++ > drivers/gpu/drm/udl/udl_drv.c | 3 +++ > drivers/gpu/drm/via/via_drv.c | 3 +++ > drivers/gpu/drm/xen/xen_drm_front.c | 3 +++ > drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 3 +++ > 60 files changed, 181 insertions(+) -- Regards, Laurent Pinchart

Re: [PATCH 00/60] drm: Make all drivers to honour the nomodeset parameter

2021-12-15 Thread Laurent Pinchart
Hi Javier, On Thu, Dec 16, 2021 at 01:13:56AM +0100, Javier Martinez Canillas wrote: > Hello Laurent, > > On 12/16/21 00:35, Laurent Pinchart wrote: > > [snip] > > >> > >> I've built tested with 'make allmodconfig && make M=drivers/gpu

Re: [PATCH] dt-bindings: display: bridge: lvds-codec: Document TI DS90CF364A decoder

2021-12-19 Thread Laurent Pinchart
a rule to disallow jeida-24 and vesa-24 when the compatible string contains ti,ds90cf384a, but that may be overkill. Reviewed-by: Laurent Pinchart > Signed-off-by: Marek Vasut > Cc: Laurent Pinchart > Cc: Rob Herring > Cc: Sam Ravnborg > Cc: devicet...@vger.ke

Re: [PATCH] drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()

2021-12-28 Thread Laurent Pinchart
@ -691,6 +693,8 @@ static int sn65dsi83_probe(struct i2c_client *client, > > err_remove_bridge: > drm_bridge_remove(&ctx->bridge); > +err_put_node: > + of_node_put(ctx->host_node); > return ret; > } > -- Regards, Laurent Pinchart

Re: [PATCH v2] drm/bridge: sn65dsi83: Fix an error handling path in sn65dsi83_probe()

2021-12-29 Thread Laurent Pinchart
nly done in the remove function up to now. > > Fixes: ceb515ba29ba ("drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and > SN65DSI84 driver") > Signed-off-by: Christophe JAILLET Reviewed-by: Laurent Pinchart > --- > v2: add error handling in sn65dsi83_parse_dt() [Laurent Pincha

Re: [PATCH 3/3] dt-bindings: display: bridge: renesas, lvds: Document r8a77961 bindings

2021-12-29 Thread Laurent Pinchart
compatible LVDS encoders >- renesas,r8a7795-lvds # for R-Car H3 compatible LVDS encoders > + - renesas,r8a77961-lvds # for R-Car M3-W+ compatible LVDS encoders I'll move this line after the next to keep them sorted. No need to resubmit. Reviewed-by: Laurent Pinchart &g

Re: [PATCH 1/3] drm: rcar-du: lvds: Add r8a77961 support

2021-12-29 Thread Laurent Pinchart
Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c > b/drivers/gpu/drm/rcar-du/rcar_lvds.c > index 72a272cfc11e..8dbfbbd3cad1 100644 > --- a/drivers/gpu/drm/rca

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2021-12-29 Thread Laurent Pinchart
reg = <1>; > + lvds0_out: endpoint { > }; Endpoints must have a remote-endpoint property. Let's drop the endpoint here and keep the port only, the endpoint can be declared in board files. If you're fine with this change I can make it when applying the patch. Reviewed-by: Laurent Pinchart > }; > }; -- Regards, Laurent Pinchart

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2021-12-29 Thread Laurent Pinchart
n this patch I just used the same approach as in files laying nearby. > > If this approach is not appropriate, then perhaps need to fix it in > files for all SoCs, to make it possible for extension board dtsi to be > compatible with all of them. I'm writing a patch to drop those right now :-) I'll CC you. -- Regards, Laurent Pinchart

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2021-12-29 Thread Laurent Pinchart
ate endpoints on both sides together in overlays. https://lore.kernel.org/linux-renesas-soc/20211229193135.28767-2-laurent.pinchart+rene...@ideasonboard.com/T/#t -- Regards, Laurent Pinchart

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2021-12-29 Thread Laurent Pinchart
blem space. There's also a proprietary implementation in the Rapsberry Pi boot loader of a mechanism to support parametrized overlays ([2] and [3], or [4] for an example of how a panel reset or backlight GPIO can be parametrized). [1] https://lwn.net/Articles/689783/ [2] https://www.raspberrypi.com/documentation/computers/configuration.html#part3 [3] https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README#L122 [4] https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README#L312 -- Regards, Laurent Pinchart

Re: [PATCH] drm/bridge_connector: enable HPD by default if supported

2021-12-29 Thread Laurent Pinchart
connector->bridge_hpd) > + if (bridge_connector->bridge_hpd) { > connector->polled = DRM_CONNECTOR_POLL_HPD; > + drm_bridge_connector_enable_hpd(connector); > + } > else if (bridge_connector->bridge_detect) > connector->polled = DRM_CONNECTOR_POLL_CONNECT > | DRM_CONNECTOR_POLL_DISCONNECT; -- Regards, Laurent Pinchart

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2021-12-30 Thread Laurent Pinchart
ed). > > So the problem is already recognized for years... what stops from > wider adoption of this or similar solutions? Someone to continue working on it I suppose :-) > And - if/while that is not being done - can't we at least try to > follow more portable DT coding pattern while staying within existing > concepts? We could use a label for the port node as shown above. It's not a complete solution, but it may help. I'm not sure how to solve the enabling of the lvds encoder DT node though. -- Regards, Laurent Pinchart

Re: [PATCH] drm: mxsfb: Shutdown the display on remove

2021-12-31 Thread Laurent Pinchart
Hi Marek, Thank you for the patch. On Fri, Dec 31, 2021 at 05:00:56PM +0100, Marek Vasut wrote: > When the device is unbound from the driver, the display may be active. > Make sure it gets shut down. > > Signed-off-by: Marek Vasut > Cc: Daniel Vetter > Cc: Laurent Pinchart

Re: [PATCH] drm: mxsfb: Shutdown the display on system shutdown

2022-01-01 Thread Laurent Pinchart
rek Vasut > Cc: Daniel Vetter > Cc: Laurent Pinchart > Cc: Lucas Stach > Cc: Sam Ravnborg > Cc: Stefan Agner > Cc: Thomas Zimmermann Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 8 > 1 file changed, 8 insertions(+) > > dif

Re: [PATCH 2/2] drm/i2c/tda998x: Implement atomic_get_input_bus_fmts

2022-01-03 Thread Laurent Pinchart
= drm_atomic_helper_bridge_duplicate_state, > + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, > + .atomic_reset = drm_atomic_helper_bridge_reset, I think this should go to 1/2. Reviewed-by: Laurent Pinchart > + .atomic_get_input_bus_fmts = tda998x_atomic_get_input_bus_fmts, > }; > > /* I2C driver functions */ -- Regards, Laurent Pinchart

Re: [PATCH 1/2] drm/i2c/tda998x: Switch to atomic operations

2022-01-03 Thread Laurent Pinchart
evam With the comment from 2/2 taken into account, Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/i2c/tda998x_drv.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c > b/drivers/gpu/drm/i2c/tda998x_drv.c

Re: [PATCH] drm/bridge: adv7533: make array clock_div_by_lanes static const

2022-01-09 Thread Laurent Pinchart
efore all mutable variables. > > hsw = mode->hsync_end - mode->hsync_start; > hfp = mode->hsync_start - mode->hdisplay; I wonder if /* set pixel clock divider mode */ regmap_write(adv->regmap_cec, 0x16, (12 / dsi->lanes) << 3); wo

Re: [PATCH 2/3] arm64: dts: renesas: r8a77961: Add lvds0 device node

2022-01-10 Thread Laurent Pinchart
Hi Geert, On Mon, Jan 10, 2022 at 09:43:58AM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 29, 2021 at 5:56 PM Laurent Pinchart wrote: > > On Fri, Dec 24, 2021 at 08:23:08AM +0300, Nikita Yushchenko wrote: > > > Add the missing lvds0 node for the R-Car M3-W+ SoC. > &g

Re: [PATCH v3 1/2] dt-bindings: display: Turn lvds.yaml into a generic schema

2022-01-11 Thread Laurent Pinchart
ay/panel/lvds.yaml# > +$id: http://devicetree.org/schemas/display/lvds.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: LVDS Display Panel > +title: LVDS Display Common Properties > > maintainers: >- Laurent Pinchart > @@ -26,18 +26,7 @@ d

Re: [PATCH v3 2/2] dt-bindings: panel: Introduce a panel-lvds binding

2022-01-11 Thread Laurent Pinchart
> +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 368072da0a05..02001455949e 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6080,6 +6080,7 @@ T: git git://anongit.freedesktop.org/drm/drm-misc > S: Maintained > F: drivers/gpu/drm/panel/panel-lvds.c > F: Documentation/devicetree/bindings/display/lvds.yaml > +F: Documentation/devicetree/bindings/display/panel/panel-lvds.yaml > > DRM DRIVER FOR MANTIX MLAF057WE51 PANELS > M: Guido Günther -- Regards, Laurent Pinchart

Re: [PATCH] drm/doc: overview before functions for drm_writeback.c

2022-01-11 Thread Laurent Pinchart
2 ("drm/writeback: wire drm_writeback.h to kernel-doc") > Cc: Sam Ravnborg > Cc: Daniel Vetter > Cc: Laurent Pinchart > Cc: Brian Starkey > Cc: Liviu Dudau > Signed-off-by: Daniel Vetter Reviewed-by: Laurent Pinchart > --- > Documentation/gpu/drm-kms.rst |

[PATCH] drm: rcar: remove unused variable

2016-04-25 Thread Laurent Pinchart
-du/rcar_du_drv.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > @@ -297,7 +297,6 @@ static int rcar_du_probe(struct platform_device *pdev) > { > struct device_node *np = pdev->dev.of_node; > struct rcar_du_device *rcdu; > - struct drm_connector *connector; > struct drm_device *ddev; > struct resource *mem; > int ret; -- Regards, Laurent Pinchart

[PATCH] rcar-du: add/rename DEFR6 TCON bits

2016-04-26 Thread Laurent Pinchart
> > > > -#define DEFR6_TCNE2(1 << 6) > > +#define DEFR6_TCNE1(1 << 6) > > +#define DEFR6_TCNE0(1 << 4) > > > > #define DEFR6_MLOS1(1 << 2) > > > > -#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2) > > +#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1) -- Regards, Laurent Pinchart

[PATCH] rcar-du: add/rename DEFR6 TCON bits

2016-04-26 Thread Laurent Pinchart
hile at it, add the TCNE0 bit which controls whether DU0 is connected to > TCON. > > Based on the large patch by Andrey Gusakov > . > > Signed-off-by: Andrey Gusakov > Signed-off-by: Sergei Shtylyov Acked-by: Laurent Pinchart and applied to my tree. > --- > The

[PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-26 Thread Laurent Pinchart
unsigned int ? > > if (!src || !num_clips) { > dst->x1 = 0; > dst->x2 = width; > dst->y1 = 0; > dst->y2 = height; > return; > } > > dst->x1 = dst->y1 = ~0; > dst->x2 = dst->y2 = 0; > > for (i = 0; i < num_clips; i++) { > if (flags & DRM_MODE_FB_DIRTY_ANNOTATE_COPY) > i++; > dst->x1 = min(dst->x1, src[i].x1); > dst->x2 = max(dst->x2, src[i].x2); > dst->y1 = min(dst->y1, src[i].y1); > dst->y2 = max(dst->y2, src[i].y2); > } > > if (dst->x2 > width || dst->y2 > height || > dst->x1 >= dst->x2 || dst->y1 >= dst->y2) { > DRM_DEBUG_KMS("Illegal clip: x1=%u, x2=%u, y1=%u, y2=%u\n", >dst->x1, dst->x2, dst->y1, dst->y2); > dst->x1 = dst->y1 = 0; > dst->x2 = width; > dst->y2 = height; > } > } > > static int mipi_dbi_dirtyfb(struct drm_framebuffer *fb, void *vmem, > unsigned flags, unsigned color, > struct drm_clip_rect *clips, unsigned num_clips) > { > struct drm_clip_rect clip; > > tinydrm_merge_clips(&clip, clips, num_clips, flags, > fb->width, fb->height); -- Regards, Laurent Pinchart

[PATCH v2 00/13] R-Car VSP improvements for v4.7 - Round 2

2016-04-26 Thread Laurent Pinchart
rcar_fcp_enable() return a status - Dropped the unneeded dependency on PM for the VSP driver Cc: devicetree at vger.kernel.org Cc: dri-devel at lists.freedesktop.org Cc: Dave Airlie Laurent Pinchart (13): dt-bindings: Add Renesas R-Car FCP DT bindings v4l: Add Renesas R-Car FCP driver v4l:

[PATCH v2 11/13] drm: rcar-du: Add alpha support for VSP planes

2016-04-26 Thread Laurent Pinchart
Make the global alpha multiplier of VSP planes configurable through the alpha property, exactly as for the native DU planes. Signed-off-by: Laurent Pinchart Acked-by: Dave Airlie --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 38 +-- 1 file changed, 19 insertions

[PATCH v2 12/13] drm: rcar-du: Add Z-order support for VSP planes

2016-04-26 Thread Laurent Pinchart
Make the Z-order of VSP planes configurable through the zpos property, exactly as for the native DU planes. Signed-off-by: Laurent Pinchart Acked-by: Dave Airlie --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 11 --- drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 2 ++ 2 files changed, 10

[PATCH 01/23] drm: omapdrm: fb: Limit number of planes per framebuffer to two

2016-04-26 Thread Laurent Pinchart
The only multi-planar format supported by the driver is NV12, there will thus never be more than two planes per framebuffer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm

[PATCH 00/23] OMAP DRM fixes and improvements

2016-04-26 Thread Laurent Pinchart
ed to userspace. The rest of the patches are mostly dead code removal and small simplifications. Tomi, do you have pending omapdrm patches for v4.7 ? If so (and if time permits) would you like to get this series merged through your tree ? Laurent Pinchart (23): drm: omapdrm: fb: Limit number of plane

[PATCH 02/23] drm: omapdrm: fb: Don't store format BPP for each plane

2016-04-26 Thread Laurent Pinchart
The number of bits per pixel is identical for all planes, don't store multiple copies. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 53 ++- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/om

[PATCH 03/23] drm: omapdrm: fb: Store number of planes in format structure

2016-04-26 Thread Laurent Pinchart
This replaces calls to drm_format_num_planes() by a simple field access every time we need the number of planes for the frame buffer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 55 +-- 1 file changed, 29 insertions(+), 26

[PATCH 04/23] drm: omapdrm: fb: Simplify objects lookup when creating framebuffer

2016-04-26 Thread Laurent Pinchart
Merge the single-user objects_lookup inline function into its caller, allowing reuse of the error code path. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 25 - drivers/gpu/drm/omapdrm/omap_fb.c | 30 +++--- 2 files

[PATCH 05/23] drm: omapdrm: fb: Simplify mode command checks when creating framebuffer

2016-04-26 Thread Laurent Pinchart
Checks can be simplified based on the requirement that pitches must be identical for all planes. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 51 --- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 06/23] drm: omapdrm: fb: Turn framebuffer creation error messages into debug

2016-04-26 Thread Laurent Pinchart
Don't print userspace parameters validation failures as error messages to avoid giving userspace the ability to flood the kernel log. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_fb.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH 09/23] drm: omapdrm: Handle OCP error IRQ directly

2016-04-26 Thread Laurent Pinchart
Instead of going through a complicated registration mechanism, just call the OCP error IRQ handler directly from the main IRQ handler. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - drivers/gpu/drm/omapdrm/omap_irq.c | 29 +++-- 2 files

[PATCH 14/23] drm: omapdrm: Keep vblank interrupt enabled while CRTC is active

2016-04-26 Thread Laurent Pinchart
. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 38 ++--- drivers/gpu/drm/omapdrm/omap_drv.h | 1 + drivers/gpu/drm/omapdrm/omap_irq.c | 4 +++- 3 files changed, 18 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/omapdrm

[PATCH 16/23] drm: omapdrm: Don't call DISPC power handling in IRQ wait functions

2016-04-26 Thread Laurent Pinchart
The IRQ wait functions are called from the DSS enable and disable operations only, where the DISPC is guaranteed to be enabled. There's no need for manual DISPC power management there. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_irq.c | 4 1 file changed, 4 dele

[PATCH 17/23] drm: omapdrm: Make pipe2vbl function static

2016-04-26 Thread Laurent Pinchart
The function is only used in omap_irq.c, move it there and make it static. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 7 --- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - drivers/gpu/drm/omapdrm/omap_irq.c | 7 ++- 3 files changed, 6 insertions(+), 9

[PATCH 07/23] drm: omapdrm: Handle FIFO underflow IRQs internally

2016-04-26 Thread Laurent Pinchart
As the FIFO underflow IRQ handler just prints an error message to the kernel log, simplify the code by not registering one IRQ handler per plane but print the messages directly from the main IRQ handler. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers

[PATCH 11/23] drm: omapdrm: Check DSS manager state in the enable/disable helpers

2016-04-26 Thread Laurent Pinchart
The omapdrm DSS manager enable/disable operations check the DSS manager state to avoid double enabling/disabling. Move that code to the DSS manager to decrease the dependency of the DRM layer to the DSS layer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dispc.c | 1

[PATCH 08/23] drm: omapdrm: Handle CRTC error IRQs directly

2016-04-26 Thread Laurent Pinchart
Instead of going through a complicated registration mechanism, just expose the CRTC error IRQ function and call it directly from the main IRQ handler. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 12 ++-- drivers/gpu/drm/omapdrm/omap_drv.h | 1 + drivers

[PATCH 10/23] drm: omapdrm: Use atomic state instead of local device state

2016-04-26 Thread Laurent Pinchart
Instead of conditioning planes update based on the hardware device state, use the CRTC state stored in the atomic state. This reduces the dependency from the DRM layer to the DSS layer. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 23 ++- 1 file

[PATCH 12/23] drm: omapdrm: Prevent processing the same event multiple times

2016-04-26 Thread Laurent Pinchart
preparation for vblank interrupt fixes, make sure that the atomic update event will be processed once only when the vblank interrupt will be kept enabled. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions

[PATCH 13/23] drm: omapdrm: Use a spinlock to protect the CRTC pending flag

2016-04-26 Thread Laurent Pinchart
The flag will need to be accessed atomically in the vblank interrupt handler, memory barriers won't be enough. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_crtc.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/driver

[PATCH 15/23] drm: omapdrm: Don't expose the omap_irq_(un)register() functions

2016-04-26 Thread Laurent Pinchart
The functions are not used outside of their compilation unit, make them static. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 6 +- drivers/gpu/drm/omapdrm/omap_irq.c | 27 +++ 2 files changed, 8 insertions(+), 25 deletions(-) diff --git

[PATCH 18/23] drm: omapdrm: Simplify IRQ wait implementation

2016-04-26 Thread Laurent Pinchart
Now that the IRQ list is used for IRQ wait only we can merge omap_drm_irq and omap_irq_wait and simplify the implementation. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 17 +-- drivers/gpu/drm/omapdrm/omap_irq.c | 94 ++ 2

[PATCH 19/23] drm: omapdrm: Remove global variables

2016-04-26 Thread Laurent Pinchart
Move the list of pending IRQ wait instances to the omap_drm_private structure and the wait queue head to the IRQ wait structure. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 3 ++- drivers/gpu/drm/omapdrm/omap_irq.c | 38 -- 2

[PATCH 20/23] drm: omapdrm: panel-lgphilips-lb035q02: Remove unused backlight GPIO

2016-04-26 Thread Laurent Pinchart
The backlight GPIO was supported with platform data only. Now that the driver only supports DT, the backlight GPIO is never initialized. Remove it. Signed-off-by: Laurent Pinchart --- .../drm/omapdrm/displays/panel-lgphilips-lb035q02.c | 19 --- 1 file changed, 19 deletions

[PATCH 21/23] drm: omapdrm: Remove unused omap_framebuffer_bo function

2016-04-26 Thread Laurent Pinchart
The function is never used, remove it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - drivers/gpu/drm/omapdrm/omap_fb.c | 10 -- 2 files changed, 11 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.h b/drivers/gpu/drm/omapdrm/omap_drv.h index

[PATCH 22/23] drm: omapdrm: Remove unused omap_gem_tiled_size function

2016-04-26 Thread Laurent Pinchart
The function is never used, remove it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.h | 1 - drivers/gpu/drm/omapdrm/omap_gem.c | 12 2 files changed, 13 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.h b/drivers/gpu/drm/omapdrm/omap_drv.h

[PATCH 23/23] drm: omapdrm: Remove buffer synchronization support

2016-04-26 Thread Laurent Pinchart
dered as a stable mainline API. Remove buffer synchronization support to prepare for its replacement by an implementation based on standard fences and reservation objects. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/omap_drv.c | 49 - drivers/gpu/drm/omapdrm/omap_drv.h

[PATCH] drm/omap: check plane size

2016-04-27 Thread Laurent Pinchart
->crtc_w == 0 || state->crtc_h == 0) > + return -EINVAL; > + > if (state->crtc_x < 0 || state->crtc_y < 0) > return -EINVAL; -- Regards, Laurent Pinchart

[PATCH 07/12] drm/rcar-du: Rename async to nonblock.

2016-04-27 Thread Laurent Pinchart
Hi Maarten, Thank you for the patch. On Tuesday 26 Apr 2016 16:11:40 Maarten Lankhorst wrote: > The async name is deprecated and should be changed to nonblocking. > > Cc: Laurent Pinchart > Signed-off-by: Maarten Lankhorst Acked-by: Laurent Pinchart > --- > drive

[PATCH] drm/omap: check plane size

2016-04-27 Thread Laurent Pinchart
Hi Ville, On Wednesday 27 Apr 2016 20:29:24 Ville Syrjälä wrote: > On Wed, Apr 27, 2016 at 06:30:19PM +0300, Laurent Pinchart wrote: > > Hi Tomi, > > > > (CC'ing Daniel) > > > > Thank you for the patch. > > > > On Tuesday 26 Apr 2016 13:

[PATCH] drm/omap: check plane size

2016-04-29 Thread Laurent Pinchart
Hi Ville, On Thursday 28 Apr 2016 21:30:18 Ville Syrjälä wrote: > On Wed, Apr 27, 2016 at 11:02:17PM +0300, Laurent Pinchart wrote: > > On Wednesday 27 Apr 2016 20:29:24 Ville Syrjälä wrote: > >> On Wed, Apr 27, 2016 at 06:30:19PM +0300, Laurent Pinchart wrote: > >>

[GIT PULL] drm bridge drivers for 4.8 (updated)

2016-08-03 Thread Laurent Pinchart
%) create mode 100644 drivers/gpu/drm/bridge/adv7511/adv7533.c > create mode 100644 drivers/gpu/drm/bridge/tc358767.c > delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.c > delete mode 100644 drivers/gpu/drm/rcar-du/rcar_du_hdmicon.h -- Regards, Laurent Pinchart

[PATCH] drm: rcar-du: Link HDMI encoder with bridge

2016-08-03 Thread Laurent Pinchart
e for hdmi encoder") Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c | 1 + 1 file changed, 1 insertion(+) Dave, this is a candidate for v4.8 as the offending patch just made it upstream during the merge window. diff --git a/drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c

[PATCH 1/6] drm: Don't implement empty prepare_fb()/cleanup_fb()

2016-08-19 Thread Laurent Pinchart
The plane .prepare_fb() and .cleanup_fb() helpers are optional, there's no need to implement empty stubs, and no need to explicitly set the function pointers to NULL either. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/arc/arcpgu_crtc.c | 2 -- drivers/gpu/drm/fs

[PATCH 0/6] R-Car DU: Fix IOMMU operation when connected to VSP

2016-08-19 Thread Laurent Pinchart
roduced by patches 4/6 and 5/6. [1] https://www.mail-archive.com/linux-renesas-soc at vger.kernel.org/msg06589.html Laurent Pinchart (6): drm: Don't implement empty prepare_fb()/cleanup_fb() drm: Unconstify state argument to prepare_fb()/cleanup_fb() v4l: rcar-fcp: Don't get/put modu

[PATCH 3/6] v4l: rcar-fcp: Don't get/put module reference

2016-08-19 Thread Laurent Pinchart
Direct callers of the FCP API hold a reference to the FCP module due to module linkage, there's no need to take another one manually. Take a reference to the device instead to ensure that it won't disappear being the caller's back. Signed-off-by: Laurent Pinchart --- drivers/medi

[PATCH 2/6] drm: Unconstify state argument to prepare_fb()/cleanup_fb()

2016-08-19 Thread Laurent Pinchart
The functions might need to modify the state to store memory-related data. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 4 ++-- drivers/gpu/drm/i915/intel_display.c| 4 ++-- drivers/gpu/drm/i915/intel_drv.h| 4 ++-- drivers

[PATCH 4/6] v4l: rcar-fcp: Add an API to retrieve the FCP device

2016-08-19 Thread Laurent Pinchart
The new rcar_fcp_get_device() function retrieves the struct device related to the FCP device. This is useful to handle DMA mapping through the right device. Signed-off-by: Laurent Pinchart --- drivers/media/platform/rcar-fcp.c | 6 ++ include/media/rcar-fcp.h | 5 + 2 files

[PATCH 5/6] v4l: vsp1: Add API to map and unmap DRM buffers through the VSP

2016-08-19 Thread Laurent Pinchart
The display buffers must be mapped for DMA through the device that performs memory access. Expose an API to map and unmap memory through the VSP device to be used by the DU. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_drm.c | 24 include/media

[PATCH 6/6] drm: rcar-du: Map memory through the VSP device

2016-08-19 Thread Laurent Pinchart
For planes handled by a VSP instance, map the framebuffer memory through the VSP to ensure proper IOMMU handling. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 74 --- drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 2 + 2 files changed, 70

Re: [PATCHv2 03/22] drm/bridge: tc358767: fix ansi 8b10b use

2019-05-03 Thread Laurent Pinchart
Hi Tomi, On Fri, May 03, 2019 at 02:43:51PM +0300, Tomi Valkeinen wrote: > On 23/04/2019 17:56, Laurent Pinchart wrote: > > >> During initial driver development I had one eDP display that reports 0 in > >> Bit 0 > >> (ANSI 8B/10B) of DPCD reg 0x0006 (MAIN_LINK_C

Re: [PATCHv2 08/22] drm/bridge: tc358767: split stream enable/disable

2019-05-03 Thread Laurent Pinchart
Hi Tomi, On Fri, May 03, 2019 at 12:20:49PM +0300, Tomi Valkeinen wrote: > On 21/04/2019 00:29, Laurent Pinchart wrote: > > On Tue, Mar 26, 2019 at 12:31:32PM +0200, Tomi Valkeinen wrote: > >> It is nicer to have enable/disable functions instead of set(bool enable) &

Re: [PATCHv2 16/22] drm/bridge: tc358767: remove check for video mode in link enable

2019-05-03 Thread Laurent Pinchart
Hi Tomi, On Fri, May 03, 2019 at 11:10:54AM +0300, Tomi Valkeinen wrote: > On 21/04/2019 01:14, Laurent Pinchart wrote: > > On Tue, Mar 26, 2019 at 12:31:40PM +0200, Tomi Valkeinen wrote: > >> tc_main_link_enable() checks if videomode has been set, and fails if > >&g

Re: [PATCHv2 03/22] drm/bridge: tc358767: fix ansi 8b10b use

2019-05-03 Thread Laurent Pinchart
Hi Tomi, On Fri, May 03, 2019 at 04:17:41PM +0300, Tomi Valkeinen wrote: > On 03/05/2019 15:48, Laurent Pinchart wrote: > > On Fri, May 03, 2019 at 02:43:51PM +0300, Tomi Valkeinen wrote: > >> On 23/04/2019 17:56, Laurent Pinchart wrote: > >> > >>>> Durin

Re: [PATCH v3 02/10] drm: Add drm_atomic_crtc_state_for_encoder helper

2019-05-05 Thread Laurent Pinchart
> state and whatever else you feel like from there? > > Adding Laurent. Thank you. I'll experiment with this, but please don't wait for me to post a v4. > > In all cases I think only returning the object, not it's state is > > simplest, since then you avoi

Re: [PATCH] drm/doc: Improve docs for conn_state->best_encoder

2019-05-06 Thread Laurent Pinchart
OCTLs will > + * not return correct data to userspace. >*/ > struct drm_encoder *best_encoder; > -- Regards, Laurent Pinchart ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 04/10] drm: Convert connector_helper_funcs->atomic_check to accept drm_atomic_state

2019-05-11 Thread Laurent Pinchart
sn't this slightly more inefficient ? > Changes in v3: > - Added to the set > > Cc: Daniel Vetter > Cc: Ville Syrjälä > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > Cc: Ben Skeggs > Cc: Laurent Pinchart > Cc: Kieran Bingham > Cc: Eric Anho

Re: [PATCH 00/20] drm: Split out the formats API and move it to a common place

2019-05-11 Thread Laurent Pinchart
Hi Paul, On Tue, Apr 23, 2019 at 06:54:49PM +0200, Paul Kocialkowski wrote: > Le dimanche 21 avril 2019 à 01:40 +0300, Laurent Pinchart a écrit : > > On Thu, Apr 18, 2019 at 01:49:54PM +0200, Paul Kocialkowski wrote: > >> On Thu, 2019-04-18 at 11:02 +0200, Maxime Ripard wrote:

Re: [PATCH 00/20] drm: Split out the formats API and move it to a common place

2019-05-11 Thread Laurent Pinchart
Hi Daniel, On Tue, Apr 23, 2019 at 09:18:52PM +0200, Daniel Vetter wrote: > On Tue, Apr 23, 2019 at 5:45 PM Laurent Pinchart wrote: > > On Tue, Apr 23, 2019 at 09:25:54AM +0200, Daniel Vetter wrote: > >> On Sun, Apr 21, 2019 at 01:59:04AM +0300, Laurent Pinchart wrote: > >

Re: [PATCH] drm/bridge: adv7511: Fix low refresh rate selection

2019-05-11 Thread Laurent Pinchart
in a functional way anyway. Instead, use the helper > function drm_mode_vrefresh(). > > Fixes: 9c8af882bf12 ("drm: Add adv7511 encoder driver") > Signed-off-by: Matt Redfearn Wow, a 4.5 year old bug fix, nice :-) Reviewed-by: Laurent Pinchart > --- > > drivers

Re: [PATCH/RFC 04/15] drm: bridge: Add dual_link field to the drm_bridge_timings structure

2019-05-11 Thread Laurent Pinchart
Hi Kieran, On Wed, Apr 24, 2019 at 09:12:48AM +0100, Kieran Bingham wrote: > On 06/03/2019 23:23, Laurent Pinchart wrote: > > Extend the drm_bridge_timings structure with a new dual_link field to > > indicate that the bridge's input bus carries data on two separate > >

<    3   4   5   6   7   8   9   10   11   12   >