Re: [PATCH] drm/fsl-dcu: Remove redundant error logging

2022-12-19 Thread Stefan Agner
block braces unnecessary. Remove that as well. > > Issue identified using platform_get_irq.cocci coccicheck script. > > Signed-off-by: Deepak R Varma Reviewed-by: Stefan Agner -- Stefan > --- > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +--- > 1 file changed, 1 inser

Re: [PATCH v2] drm: mxsfb: Implement LCDIF scanout CRC32 support

2022-04-29 Thread Stefan Agner
ed-off-by: Marek Vasut > Cc: Alexander Stein > Cc: Laurent Pinchart > Cc: Lucas Stach > Cc: Peng Fan > Cc: Robby Cai > Cc: Sam Ravnborg > Cc: Stefan Agner > --- > V2: Check crtc for non-NULL before dereferencing it in > mxsfb_crtc_set_crc_source > --- > d

Re: [PATCH 2/2] drm: lcdif: Add support for i.MX8MP LCDIF variant

2022-04-01 Thread Stefan Agner
t; Cc: Robby Cai > Cc: Sam Ravnborg > Cc: Stefan Agner > --- > drivers/gpu/drm/mxsfb/Kconfig | 16 + > drivers/gpu/drm/mxsfb/Makefile | 2 + > drivers/gpu/drm/mxsfb/lcdif_drv.c | 367 + > drivers/gpu/drm/mxsfb/lcd

Re: [PATCH v3 5/5] drm: mxsfb: Set fallback bus format when the bridge doesn't provide one

2021-10-12 Thread Stefan Agner
. > > Reported-by: Martin Kepplinger > Signed-off-by: Guido Günther > Reviewed-by: Lucas Stach Acked-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_kms.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_kms.c >

Re: [PATCH v3 4/5] drm: mxsfb: Print failed bus format in hex

2021-10-12 Thread Stefan Agner
On 2021-10-11 15:41, Guido Günther wrote: > media-bus-formats.h has them in hexadecimal as well so matching with > that file saves one conversion when debugging. > > Signed-off-by: Guido Günther > Reviewed-by: Lucas Stach > Reviewed-by: Robert Foss Acked-by: Stefan Agner

Re: [PATCH] drm: fsl-dcu: enable PIXCLK on LS1021A

2021-10-05 Thread Stefan Agner
On 2021-10-05 14:35, Matthias Schiffer wrote: > On Thu, 2021-09-16 at 14:50 +0200, Matthias Schiffer wrote: >> On Fri, 2020-08-21 at 15:41 +0200, Stefan Agner wrote: >> > Hi Matthias, >> > >> > On 2020-08-20 12:58, Matthias Schiffer wrote: >> > &g

Re: [PATCH 2/4] drm/mxsfb: Don't select DRM_KMS_FB_HELPER

2021-04-15 Thread Stefan Agner
On 2021-04-15 13:00, Thomas Zimmermann wrote: > Selecting DRM_FBDEV_EMULATION will include the correct secttings for > fbdev emulation. Drivers should not override this. > > Signed-off-by: Thomas Zimmermann Acked-by: Stefan Agner -- Stefan > --- > drivers/gpu/drm/mxsfb/

Re: [PATCH v2 RESEND] drm: mxsfb: Implement .format_mod_supported

2020-11-26 Thread Stefan Agner
fb: Stop using DRM simple display > pipeline helper") Reviewed-by: Stefan Agner I allowed myself to update the author email to the one used in the Signed-off-by line as checkpatch.pl printed a warning. Applied to drm-misc-fixes. Thanks! -- Stefan > --- > drivers/gpu/d

Re: [PATCH] drm: mxsfb: fix fence synchronization

2020-11-26 Thread Stefan Agner
ronization with other devices. Fix >> this by plugging in the drm_gem_fb_prepare_fb helper function. > > This is a regression in the 5.10 release series, so I would appreciate > if someone could review/ack this patch so I can smash it into > drm-misc-fixes. Reviewed-by: Stefan

Re: [RFC PATCH 2/3] drm/atomic-helper: add REQUIRE_MATCHING_FB flag

2020-09-16 Thread Stefan Agner
On 2020-09-11 13:59, Ville Syrjälä wrote: > On Thu, Sep 10, 2020 at 11:24:24AM +0200, Stefan Agner wrote: >> Add flag which checks that the framebuffer size matches the plane size >> exactly. This is useful for display controller which can't handle >> framebuffers other tha

Re: [RFC PATCH 2/3] drm/atomic-helper: add REQUIRE_MATCHING_FB flag

2020-09-16 Thread Stefan Agner
On 2020-09-11 10:52, Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 11:24:24AM +0200, Stefan Agner wrote: >> Add flag which checks that the framebuffer size matches the plane size >> exactly. This is useful for display controller which can't handle >> framebuffers other tha

Re: [RFC PATCH 1/3] drm: use flags instead of boolean in plane check

2020-09-16 Thread Stefan Agner
On 2020-09-11 10:50, Daniel Vetter wrote: > On Thu, Sep 10, 2020 at 11:24:23AM +0200, Stefan Agner wrote: >> To improve readability and make it easier to add further optional checks >> replace the boolean parameters with a single flag bitfield as parameter >> of drm_atomic_hel

Re: [PATCH v3] drm: mxsfb: check framebuffer pitch

2020-09-16 Thread Stefan Agner
On 2020-09-08 16:16, Stefan Agner wrote: > The lcdif IP does not support a framebuffer pitch (stride) other than > framebuffer width. Check for equality and reject the framebuffer > otherwise. > > This prevents a distorted picture when using 640x800 and running the > Mesa gr

[RFC PATCH 2/3] drm/atomic-helper: add REQUIRE_MATCHING_FB flag

2020-09-10 Thread Stefan Agner
Add flag which checks that the framebuffer size matches the plane size exactly. This is useful for display controller which can't handle framebuffers other than the plane/CRTC size. Signed-off-by: Stefan Agner --- drivers/gpu/drm/drm_atomic_helper.c | 7 +++ drivers/gpu/drm

[RFC PATCH 1/3] drm: use flags instead of boolean in plane check

2020-09-10 Thread Stefan Agner
) + drm_atomic_helper_check_plane_state(e1, e2, e3, e4, 0) ) Signed-off-by: Stefan Agner --- This implements what has been discussed in the thread of the patch "drm: mxsfb: check framebuffer pitch": https://lkml.org/lkml/2020/9/8/1342 Before sending it out to all maintainers I wanted to get co

[RFC PATCH 3/3] drm: mxsfb: enforce framebuffer size matches plane size

2020-09-10 Thread Stefan Agner
The plane size must match the CRTC already (enforced by not setting the CAN_POSTION flag). However, the controller also requires the framebuffer to be exactly the CRTC size. Make use of the new flag DRM_PLANE_REQUIRE_MATCHING_FB to match the plane size. Signed-off-by: Stefan Agner --- drivers

[PATCH v3] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
at that particular resolution to width != stride. Currently Mesa has no fallback behavior, but rejecting this configuration allows userspace to handle the issue correctly. Fixes: 45d59d704080 ("drm: Add new driver for MXSFB controller") Signed-off-by: Stefan Agner Reviewed-by: Lauren

[PATCH v2] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
at that particular resolution to width != stride. Currently Mesa has no fallback behavior, but rejecting this configuration allows userspace to handle the issue correctly. Signed-off-by: Stefan Agner --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 21 - 1 file changed, 20 insertions(+), 1

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
On 2020-09-08 14:33, Laurent Pinchart wrote: > On Tue, Sep 08, 2020 at 02:29:02PM +0200, Daniel Vetter wrote: >> On Tue, Sep 8, 2020 at 2:07 PM Stefan Agner wrote: >> > On 2020-09-08 10:48, Daniel Vetter wrote: >> >> On Tue, Sep 08, 2020 at 11:18:25AM +0300, Tomi Va

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
On 2020-09-08 10:48, Daniel Vetter wrote: > On Tue, Sep 08, 2020 at 11:18:25AM +0300, Tomi Valkeinen wrote: >> Hi, >> >> On 08/09/2020 10:55, Stefan Agner wrote: >> > On 2020-09-07 20:18, Daniel Vetter wrote: >> >> On Mon, Sep 07, 2020 at 07:17:12PM +0300

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
On 2020-09-07 20:18, Daniel Vetter wrote: > On Mon, Sep 07, 2020 at 07:17:12PM +0300, Laurent Pinchart wrote: >> Hi Stefan, >> >> Thank you for the patch. >> >> On Mon, Sep 07, 2020 at 06:03:43PM +0200, Stefan Agner wrote: >> > The lcdif IP does not suppo

[PATCH] drm: mxsfb: check framebuffer pitch

2020-09-07 Thread Stefan Agner
at that particular resolution to width != stride. Currently Mesa has no fallback behavior, but rejecting this configuration allows userspace to handle the issue correctly. Signed-off-by: Stefan Agner --- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions

Re: [PATCH 2/8] dt-bindings: display: mxsfb: Add and fix compatible strings

2020-08-24 Thread Stefan Agner
On 2020-08-24 01:26, Laurent Pinchart wrote: > Hi Stefan, > > On Fri, Aug 21, 2020 at 04:53:56PM +0200, Stefan Agner wrote: >> On 2020-08-13 03:29, Laurent Pinchart wrote: >> > Additional compatible strings have been added in DT source for the >> > i.MX6SL, i.M

Re: [PATCH 4/8] dt-bindings: display: mxsfb: Rename to fsl, lcdif.yaml

2020-08-21 Thread Stefan Agner
P i.MX LCD Interface (LCDIF) > diff --git a/MAINTAINERS b/MAINTAINERS > index e3fac23383d2..fe1bda639a39 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11757,7 +11757,7 @@ M:Stefan Agner > L: dri-devel@lists.freedesktop.org > S: Supported > T: git git://anong

Re: [PATCH 2/8] dt-bindings: display: mxsfb: Add and fix compatible strings

2020-08-21 Thread Stefan Agner
On 2020-08-13 03:29, Laurent Pinchart wrote: > Additional compatible strings have been added in DT source for the > i.MX6SL, i.MX6SLL, i.MX6UL and i.MX7D without updating the bindings. > Most of the upstream DT sources use the fsl,imx28-lcdif compatible > string, which mostly predates the

Re: [PATCH] drm: fsl-dcu: enable PIXCLK on LS1021A

2020-08-21 Thread Stefan Agner
Hi Matthias, On 2020-08-20 12:58, Matthias Schiffer wrote: > The PIXCLK needs to be enabled in SCFG before accessing the DCU on LS1021A, > or the access will hang. Hm, this seems a rather ad-hoc access to SCFG from the DCU. We do support a pixel clock in the device tree bindings of fsl-dcu, so

Re: [PATCH v4 00/22] drm: mxsfb: Add i.MX7 support

2020-07-28 Thread Stefan Agner
On 2020-07-27 04:06, Laurent Pinchart wrote: > Hello, > > This patch series adds i.MX7 support to the mxsfb driver. The eLCDIF > instance found in the i.MX7 is backward-compatible with the already > supported LCDC v4, but has extended features amongst which the most > notable one is a second

Re: [PATCH v2 11/22] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-07-27 Thread Stefan Agner
On 2020-07-26 20:28, Laurent Pinchart wrote: > Hi Stefan, > > On Fri, Jul 17, 2020 at 05:06:55AM +0300, Laurent Pinchart wrote: >> On Thu, Jul 09, 2020 at 12:25:42PM +0200, Stefan Agner wrote: >> > On 2020-06-16 03:50, Laurent Pinchart wrote: >> >> On Thu, Jun

Re: [PATCH] drm/mxsfb: drop unused function parameter

2020-07-20 Thread Stefan Agner
On 2020-07-16 19:41, Uwe Kleine-König wrote: > flags is unused since the driver was introduced in commit 45d59d704080 > ("drm: Add new driver for MXSFB controller"). Applied to drm-misc-next. Thanks. -- Stefan > > Signed-off-by: Uwe Kleine-König > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4

Re: [PATCH] drm/mxsfb: Make supported modifiers explicit

2020-07-20 Thread Stefan Agner
On 2020-07-18 19:14, Guido Günther wrote: > Hi, > On Mon, Mar 23, 2020 at 04:51:05PM +0100, Lucas Stach wrote: >> Am Montag, den 23.03.2020, 15:52 +0100 schrieb Guido Günther: >> > In contrast to other display controllers on imx like DCSS and ipuv3 >> > lcdif/mxsfb does not support detiling e.g.

Re: [PATCH] drm/mxsfb: miss err handle in probe

2020-07-20 Thread Stefan Agner
On 2020-06-11 14:23, Bernard Zhao wrote: > There are three err return values in drm_fbdev_generic_setup. > In mxsfb_probe we called this function, but didn`t handle the > return value, this change is to add err handle, maybe make code > a bit more readable. This got recently changed, so I guess

Re: [PATCH v2 11/22] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-07-09 Thread Stefan Agner
Hi Laurent, On 2020-06-16 03:50, Laurent Pinchart wrote: > Hi Stefan, > > On Thu, Jun 11, 2020 at 09:33:11PM +0200, Stefan Agner wrote: >> On 2020-05-30 05:10, Laurent Pinchart wrote: >> > The DRM simple display pipeline helper only supports a single plane. In >>

Re: [PATCH v2 22/22] drm: mxsfb: Support the alpha plane

2020-06-17 Thread Stefan Agner
On 2020-05-30 05:10, Laurent Pinchart wrote: > The LCDIF in the i.MX6SX and i.MX7 have a second plane called the alpha > plane. Support it. > > Signed-off-by: Laurent Pinchart Looks good to me. Reviewed-by: Stefan Agner -- Stefan > --- > Changes since v1: > > -

Re: [PATCH v2 02/22] drm: mxsfb: Use drm_panel_bridge

2020-06-17 Thread Stefan Agner
, we should add a default type to avoid warnings for some panels. Other than that, looks good to me: Reviewed-by: Stefan Agner > --- > Changes since v1: > > - Select DRM_PANEL_BRIDGE in Kconfig > --- > drivers/gpu/drm/mxsfb/Kconfig | 1 + > drivers/gpu/drm/

Re: [PATCH v2 11/22] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-06-11 Thread Stefan Agner
;fb; > struct drm_gem_cma_object *gem; > > if (!fb) > @@ -190,8 +198,8 @@ static dma_addr_t mxsfb_get_fb_paddr(struct > mxsfb_drm_private *mxsfb) > > static void mxsfb_crtc_mode_set_nofb(struct mxsfb_drm_private *mxsfb) > { > - struct drm_device *drm

Re: [PATCH v2 21/22] drm: mxsfb: Remove unnecessary spaces after tab

2020-06-11 Thread Stefan Agner
On 2020-05-30 05:10, Laurent Pinchart wrote: > This is a cosmetic change only, no code change is included. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.h | 10 +- > 1 file changed, 5 insertions(+), 5 dele

Re: [PATCH v2 16/22] drm: mxsfb: Add i.MX7 and i.MX8M to the list of supported SoCs in Kconfig

2020-06-11 Thread Stefan Agner
; expanding it further in the future as support for more SoCs is added. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > Changes since v1: > > - Make description more explicit by mentioning LCDIF and eLCDIF > - Add i.MX8M > --- > drivers/gpu/drm/mxsfb/Kc

Re: [PATCH v2 14/22] drm: mxsfb: Enable vblank handling

2020-06-11 Thread Stefan Agner
off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 15 +-- > drivers/gpu/drm/mxsfb/mxsfb_kms.c | 6 +- > 2 files changed, 14 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c > b/drive

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-06-02 Thread Stefan Agner
On 2020-06-02 15:12, Daniel Vetter wrote: > On Sat, May 30, 2020 at 05:14:21AM +0300, Laurent Pinchart wrote: >> Hi Stefan, >> >> On Mon, Mar 23, 2020 at 10:27:21PM +0100, Stefan Agner wrote: >> > On 2020-03-09 20:51, Laurent Pinchart wrote: >> > > Replace

Re: [PATCH 1/2] drm/mxsfb: Call drm_crtc_vblank_on/off

2020-05-28 Thread Stefan Agner
On 2020-05-28 10:06, Daniel Vetter wrote: > On Thu, May 28, 2020 at 9:56 AM Stefan Agner wrote: >> >> Hi Daniel, >> >> On 2020-05-28 07:46, Daniel Vetter wrote: >> > On Wed, May 27, 2020 at 11:47:56AM +0200, Daniel Vetter wrote: >> >> mxsfb

Re: [PATCH 1/2] drm/mxsfb: Call drm_crtc_vblank_on/off

2020-05-28 Thread Stefan Agner
ck we can do >> the on/off as the first respectively last operation, and it should all >> work. >> >> Signed-off-by: Daniel Vetter >> Cc: Marek Vasut >> Cc: Stefan Agner >> Cc: Shawn Guo >> Cc: Sascha Hauer >> Cc: Pengutronix Kernel Team

Re: [PATCH 00/21] drm: mxsfb: Add i.MX7 support

2020-05-26 Thread Stefan Agner
Hi Laurent, On 2020-03-09 20:51, Laurent Pinchart wrote: > Hello, > > This patch series adds i.MX7 support to the mxsfb driver. The eLCDIF > instance found in the i.MX7 is backward-compatible with the already > supported LCDC v4, but has extended features amongst which the most > notable one is

Re: [PATCH 14/21] drm: mxsfb: Enable vblank handling

2020-03-24 Thread Stefan Agner
On 2020-03-24 00:08, Stefan Agner wrote: > On 2020-03-09 20:52, Laurent Pinchart wrote: >> Enable vblank handling when the CRTC is turned on and disable it when it >> is turned off. This requires moving vblank init after the KMS pipeline >> initialisation, otherwise drm_vbla

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-03-23 Thread Stefan Agner
On 2020-03-23 22:38, Sam Ravnborg wrote: > Hi Stefan. > > On Mon, Mar 23, 2020 at 10:27:21PM +0100, Stefan Agner wrote: >> On 2020-03-09 20:51, Laurent Pinchart wrote: >> > Replace the manual connector implementation based on drm_panel with the >> > drm_pan

Re: [PATCH 21/21] drm: mxsfb: Support the alpha plane

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The LCDIF in the i.MX6SX and i.MX7 have a second plane called the alpha > plane. Support it. > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 3 + > drivers/gpu/drm/mxsfb/mxsfb_drv.h | 16 ++-- >

Re: [PATCH 20/21] drm: mxsfb: Merge mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt()

2020-03-23 Thread Stefan Agner
update cycle in mxsfb_set_bus_fmt(). Make > this more efficient by merging them together. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_kms.c | 47 +-- > 1 file changed, 19 insertions(+), 28 deletion

Re: [PATCH 19/21] drm: mxsfb: Turn mxsfb_set_pixel_fmt() into a void function

2020-03-23 Thread Stefan Agner
see, we specify the supported plane formats when initializing the primary/overlay plane. Reviewed-by: Stefan Agner -- Stefan > --- > drivers/gpu/drm/mxsfb/mxsfb_kms.c | 11 ++- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_k

Re: [PATCH 18/21] drm: mxsfb: Drop non-OF support

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb driver is only used by OF platforms. Drop non-OF support. Nice cleanup. Actually only supported of anyways due to the pdev->dev.of_node check. Reviewed-by: Stefan Agner -- Stefan > > Signed-off-by: Laurent Pinchart >

Re: [PATCH 17/21] drm: mxsfb: Update internal IP version number for i.MX6SX

2020-03-23 Thread Stefan Agner
for support for the additional features. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c >

Re: [PATCH 16/21] drm: mxsfb: Add i.MX7 to the list of supported SoCs in Kconfig

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > Extend the Kconfig option description by listing the i.MX7 SoCs, as they > are supported by the same driver. Can you also add "i.MX8M" to the list since the bindings for this driver are also used in arch/arm64/boot/dts/freescale/imx8mq.dtsi. --

Re: [PATCH 15/21] drm: mxsfb: Remove mxsfb_devdata unused fields

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The debug0 and ipversion fields of the mxsfb_devdata structure are > unused. Remove them. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 > drivers/gpu/drm/

Re: [PATCH 14/21] drm: mxsfb: Enable vblank handling

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > Enable vblank handling when the CRTC is turned on and disable it when it > is turned off. This requires moving vblank init after the KMS pipeline > initialisation, otherwise drm_vblank_init() gets called with 0 CRTCs. > > Signed-off-by: Laurent

Re: [PATCH 13/21] drm: mxsfb: Don't touch AXI clock in IRQ context

2020-03-23 Thread Stefan Agner
() as is calls .disable_vblank() manually and is > used both at probe and remove time. > > The clock disabling is also moved to the last step of the > mxsfb_crtc_atomic_disable() function, to prepare for enabling vblank > handling. > > Signed-off-by: Laurent Pinchart Looks go

Re: [PATCH 12/21] drm: mxsfb: Move vblank event arm to CRTC .atomic_flush()

2020-03-23 Thread Stefan Agner
now that we no longer use the simple display pipeline we can and should use the flush callback). Otherwise looks good. Reviewed-by: Stefan Agner -- Stefan > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/mxsfb/mxsfb_kms.c | 35 ++- > 1

Re: [PATCH 11/21] drm: mxsfb: Rename mxsfb_crtc.c to mxsfb_kms.c

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_crtc.c file doesn't handle just the CRTC, but also the other > KMS objects. Rename it accordingly. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/Makefile

Re: [PATCH 10/21] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The DRM simple display pipeline helper only supports a single plane. In > order to prepare for support of the alpha plane on i.MX6SX and i.MX7, > move away from the helper. No new feature is added. > > Signed-off-by: Laurent Pinchart I actually

Re: [PATCH 09/21] drm: mxsfb: Remove unneeded includes

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > A fair number of includes are not needed. Drop them, and add a couple of > required includes that were included indirectly. > > Signed-off-by: Laurent Pinchart Out of curiosity, do you have some kind of tool helping with this? Reviewe

Re: [PATCH 08/21] drm: mxsfb: Remove register definitions from mxsfb_crtc.c

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > mxsfb_crtc.c defines several macros related to register addresses and > bit, which duplicates macros from mxsfb_regs.h. Use the macros from > mxsfb_regs.h instead and remove them. > > Signed-off-by: Laurent Pinchart Reviewed-b

Re: [PATCH 07/21] drm: mxsfb: Use LCDC_CTRL register name explicitly

2020-03-23 Thread Stefan Agner
inchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > index be60c4021e2f..722bd9b4f5

Re: [PATCH 06/21] drm: mxsfb: Pass mxsfb_drm_private pointer to mxsfb_reset_block()

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:52, Laurent Pinchart wrote: > The mxsfb_reset_block() function isn't special, pass it the > mxsfb_drm_private pointer instead of a pointer to the base address. > > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb

Re: [PATCH 05/21] drm: mxsfb: Clarify format and bus width configuration

2020-03-23 Thread Stefan Agner
pply anymore (the bus width can be specified through the > display_info bus format). Reviewed-by: Stefan Agner > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 17 + > drivers/gpu/drm/mxsfb/mxsfb_regs.h | 17 - >

Re: [PATCH 04/21] drm: mxsfb: Remove unused macros from mxsfb_regs.h

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > mxsfb_regs.h defines macros related to register bits. Some of them are > not used and don't clearly map to any particular register, so their > purpose isn't known. Remove them. > > Signed-off-by: Laurent Pinchart Reviewed-b

Re: [PATCH 03/21] drm: mxsfb: Use BIT() macro to define register bitfields

2020-03-23 Thread Stefan Agner
; Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_regs.h | 56 +++--- > 1 file changed, 28 insertions(+), 28 deletions(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_regs.h > b/drivers/gpu/drm/mxsfb/mxsfb

Re: [PATCH 02/21] drm: mxsfb: Use drm_panel_bridge

2020-03-23 Thread Stefan Agner
On 2020-03-09 20:51, Laurent Pinchart wrote: > Replace the manual connector implementation based on drm_panel with the > drm_panel_bridge helper. This simplifies the mxsfb driver by removing > connector-related code, and standardizing all pipeline control > operations on bridges. > > A hack is

Re: [PATCH 01/21] drm: mxsfb: Remove fbdev leftovers

2020-03-23 Thread Stefan Agner
f1028d74 ("drm/mxsfb: Use drm_fbdev_generic_setup()") > Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Agner I guess this could be merge independent of the rest already today. -- Stefan > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 - > 1 file changed, 1 deletion(-) > > diff

Re: [PATCH] drm: Add missing newline after comment

2020-02-05 Thread Stefan Agner
On 2020-02-05 23:50, Joe Perches wrote: > On Wed, 2020-02-05 at 23:26 +0100, Stefan Agner wrote: >> Clang prints a warning: >> drivers/gpu/drm/drm_lock.c:363:6: warning: misleading indentation; >> statement is not part of the previous 'if' [-Wmisleading-indentation] >>

[PATCH] drm: Add missing newline after comment

2020-02-05 Thread Stefan Agner
ere if (!drm_core_check_feature(dev, DRIVER_LEGACY)) ^ Fix this by adding a newline after the multi-line comment. Fixes: 058ca50ce3f1 ("drm/legacy: move lock cleanup for master into lock file (v2)") Link: https://github.com/ClangBuiltLinux/linux/issues/855 Signed-off-by:

Re: [PATCH] drm/imx: parallel-display: Adjust bus_flags and bus_format handling

2019-11-14 Thread Stefan Agner
On 2019-11-14 14:17, Marek Vasut wrote: > The bus_flags and bus_format handling logic does not seem to cover > all potential usecases. Specifically, this seems to fail with an > "edt,etm0700g0edh6" display attached to an 24bit display interface, > with interface-pix-fmt = "rgb24" set in DT. > >

Re: Overlay support in the i.MX7 display

2019-11-03 Thread Stefan Agner
Hi Laurent, On 2019-11-01 09:43, Laurent Pinchart wrote: > Hello, > > I'm looking at the available options to support overlays in the display > pipeline of the i.MX7. The LCDIF itself unfortunaltey doesn't support > overlays, the feature being implemented in the PXP. A driver for the PXP > is

Re: [PATCH v4 02/14] drm/mxsfb: Read bus flags from bridge if present

2019-10-14 Thread Stefan Agner
On 2019-08-29 13:30, Robert Chiras wrote: > From: Guido Günther > > The bridge might have special requirmentes on the input bus. This > is e.g. used by the imx-nwl bridge. > > Signed-off-by: Guido Günther > Reviewed-by: Stefan Agner Applied to the drm-misc-next branch

Re: [PATCH v4 01/14] drm/mxsfb: Update mxsfb to support a bridge

2019-10-14 Thread Stefan Agner
On 2019-08-29 13:30, Robert Chiras wrote: > Currently, the MXSFB DRM driver only supports a panel. But, its output > display signal can also be redirected to another encoder, like a DSI > controller. In this case, that DSI controller may act like a drm_bridge. > In order support this use-case too,

Re: [PATCH v4 05/14] drm/mxsfb: Update register definitions using bit manipulation defines

2019-10-14 Thread Stefan Agner
On 2019-08-29 13:30, Robert Chiras wrote: > Use BIT(x) and GEN_MASK(h, l) for better representation the inside of > various registers. > > Signed-off-by: Robert Chiras > Tested-by: Guido Günther > --- > drivers/gpu/drm/mxsfb/mxsfb_regs.h | 151 > ++--- > 1 file

Re: [PATCH v4 04/14] drm/mxsfb: Reset vital registers for a proper initialization

2019-10-14 Thread Stefan Agner
On 2019-08-29 13:30, Robert Chiras wrote: > Some of the registers, like LCDC_CTRL, CTRL2_OUTSTANDING_REQS and > CTRL1_RECOVERY_ON_UNDERFLOW needs to be properly cleared/initialized > for a better start and stop routine. This patch uses CTRL2_OUTSTANDING_REQS which is only introduced in the next

Re: [PATCH v4 13/14] drm/mxsfb: Add support for horizontal stride

2019-10-14 Thread Stefan Agner
Hi Robert, Sorry it took me so long to have a closer look at this patchset. I will definitely merge part of it, but this particular patch actually breaks i.MX 7. I have vertical stripes on my display with this patch applied (using Weston with DRM backend). Not sure why this exactly happens, from

Re: [PATCH v3 00/15] Improvements and fixes for mxsfb DRM driver

2019-08-26 Thread Stefan Agner
On 2019-08-26 14:05, Guido Günther wrote: > Hi, > On Wed, Aug 21, 2019 at 01:15:40PM +0300, Robert Chiras wrote: >> This patch-set improves the use of eLCDIF block on iMX 8 SoCs (like 8MQ, 8MM >> and 8QXP). Following, are the new features added and fixes from this >> patch-set: > > I've applied

Re: [EXT] Re: [PATCH v2 09/15] dt-bindings: display: Add max-res property for mxsfb

2019-08-14 Thread Stefan Agner
On 2019-08-14 13:14, Robert Chiras wrote: > Hi Stefan, > On Mi, 2019-08-14 at 13:03 +0200, Stefan Agner wrote: >> On 2019-08-14 12:48, Robert Chiras wrote: >> > >> > Add new optional property 'max-res', to limit the maximum supported >> > resolution by the MX

Re: [PATCH v2 04/15] drm/mxsfb: Reset vital register for a proper initialization

2019-08-14 Thread Stefan Agner
On 2019-08-14 12:48, Robert Chiras wrote: > Some of the regiters need, like LCDC_CTRL and CTRL2_OUTSTANDING_REQS Typo in registers, and there is a need to many. > needs to be properly cleared and initialized for a better start and stop > routine. > > Signed-off-by: Robert Chiras > --- >

Re: [PATCH v2 12/15] drm/mxsfb: Improve the axi clock usage

2019-08-14 Thread Stefan Agner
On 2019-08-14 12:48, Robert Chiras wrote: > Currently, the enable of the axi clock return status is ignored, causing > issues when the enable fails then we try to disable it. Therefore, it is > better to check the return status and disable it only when enable > succeeded. Is this actually the

Re: [PATCH v2 09/15] dt-bindings: display: Add max-res property for mxsfb

2019-08-14 Thread Stefan Agner
On 2019-08-14 12:48, Robert Chiras wrote: > Add new optional property 'max-res', to limit the maximum supported > resolution by the MXSFB_DRM driver. I would also mention the reason why we need this. I guess this needs a vendor prefix as well (fsl,max-res). I also would like to have the ack of

Re: [PATCH v1 07/16] drm/mxsfb: fix opencoded use of drm_panel_*

2019-08-05 Thread Stefan Agner
On 2019-08-04 22:16, Sam Ravnborg wrote: > Use the drm_panel_get_modes() function. Looks good to me, Acked-by: Stefan Agner -- Stefan > > Signed-off-by: Sam Ravnborg > Cc: Marek Vasut > Cc: Stefan Agner > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix

Re: [PATCH v1 05/16] drm/fsl-dcu: fix opencoded use of drm_panel_*

2019-08-05 Thread Stefan Agner
On 2019-08-04 22:16, Sam Ravnborg wrote: > Use drm_panel_get_modes() to access modes. > This has a nice side effect to simplify the code. > > Signed-off-by: Sam Ravnborg > Cc: Stefan Agner > Cc: Alison Wang > --- > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 10 +--

Re: [PATCH] drm/tegra: return with probe defer if GPIO subsystem is not ready

2019-07-26 Thread Stefan Agner
On 2019-07-26 16:46, Dmitry Osipenko wrote: > 26.07.2019 17:23, Stefan Agner пишет: >> Hi Thierry, Hi Dave, >> >> On 2018-09-07 01:31, Stefan Agner wrote: >>> On 26.07.2018 06:36, Stefan Agner wrote: >>>> If the GPIO subsystem is not ready make sure to ret

Re: [PATCH] drm/tegra: return with probe defer if GPIO subsystem is not ready

2019-07-26 Thread Stefan Agner
Hi Thierry, Hi Dave, On 2018-09-07 01:31, Stefan Agner wrote: > On 26.07.2018 06:36, Stefan Agner wrote: >> If the GPIO subsystem is not ready make sure to return -EPROBE_DEFER >> instead of silently continuing without HPD. >> >> Reported-by: Marcel Ziswiler >

Re: [PATCH 05/60] drm/bridge: simple-bridge: Add support for non-VGA bridges

2019-07-26 Thread Stefan Agner
*timings; > + unsigned int type; How about connector_type? That is how this field is named in other places. Otherwise looks good to me. Reviewed-by: Stefan Agner -- Stefan > +}; > + > struct simple_bridge { > struct drm_bridge bridge; > str

Re: [PATCH 06/60] drm/bridge: simple-bridge: Add support for enable GPIO

2019-07-26 Thread Stefan Agner
s good to me. Reviewed-by: Stefan Agner -- Stefan > --- > drivers/gpu/drm/bridge/simple-bridge.c | 22 ++ > 1 file changed, 18 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/simple-bridge.c > b/drivers/gpu/drm/bridge/simple-bridge.c >

Re: [PATCH 1/1] drm/mxsfb: Read bus flags from bridge if present

2019-07-26 Thread Stefan Agner
On 2019-07-26 11:49, Guido Günther wrote: > The bridge might have special requirmentes on the input bus. This > is e.g. used by the imx-nwl bridge. > > Signed-off-by: Guido Günther Looks good to me. Reviewed-by: Stefan Agner That is similar to what I sent for the imx DRM dr

Re: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h

2019-07-17 Thread Stefan Agner
On 2019-07-15 18:28, Sam Ravnborg wrote: > On Fri, Jul 05, 2019 at 10:47:30PM +0200, Stefan Agner wrote: >> On 2019-06-30 08:18, Sam Ravnborg wrote: >> > Drop use of the deprecated drmP.h header file. >> > >> > While touching the list of include files divid

Re: [PATCH v1 05/33] drm/mxsfb: drop use of drmP.h

2019-07-05 Thread Stefan Agner
arek Vasut > Cc: Stefan Agner > Cc: David Airlie > Cc: Daniel Vetter > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: NXP Linux Team > Cc: linux-arm-ker...@lists.infradead.org Acked-by: Stefan Agner -- Stefan > ---

Re: [PATCH v1 08/33] drm/fsl-dcu: drop use of drmP.h

2019-07-05 Thread Stefan Agner
On 2019-06-30 08:18, Sam Ravnborg wrote: > Drop use of the deprecated drmP.h header file. > Fix fallout. > > Signed-off-by: Sam Ravnborg > Cc: Stefan Agner > Cc: Alison Wang Acked-by: Stefan Agner -- Stefan > --- > The list of cc: was too large to add all recipi

Re: [PATCH 15/59] drm/fsl-dcu: Drop drm_gem_prime_export/import

2019-06-17 Thread Stefan Agner
On 14.06.2019 22:35, Daniel Vetter wrote: > They're the default. > > Aside: Would be really nice to switch the others over to > drm_gem_object_funcs. Acked-by: Stefan Agner -- Stefan > > Signed-off-by: Daniel Vetter > Cc: Stefan Agner > Cc: Alison Wang > ---

Re: [PATCH 22/59] drm/mxsfb: Drop drm_gem_prime_export/import

2019-06-17 Thread Stefan Agner
On 14.06.2019 22:35, Daniel Vetter wrote: > They're the default. > > Aside: Would be really nice to switch the others over to > drm_gem_object_funcs. Acked-by: Stefan Agner -- Stefan > > Signed-off-by: Daniel Vetter > Cc: Marek Vasut > Cc: Stefan Agner > Cc: Sh

Re: [PATCH] gpu: host1x: fix compile error when IOMMU API is not available

2019-04-11 Thread Stefan Agner
On 11.04.2019 10:23, Ben Dooks wrote: > On 2019-04-10 23:47, Stefan Agner wrote: >> In case the IOMMU API is not available compiling host1x fails with >> the following error: >> In file included from drivers/gpu/host1x/hw/host1x06.c:27: >> drivers/gpu/host1x/h

[PATCH] gpu: host1x: fix compile error when IOMMU API is not available

2019-04-10 Thread Stefan Agner
c_free Fixes: de5469c21ff9 ("gpu: host1x: Program the channel stream ID") Signed-off-by: Stefan Agner --- drivers/gpu/host1x/hw/channel_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/host1x/hw/channel_hw.c b/drivers/gpu/host1x/hw/channel_hw.c in

Re: [PATCH v2 36/49] drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags

2019-01-11 Thread Stefan Agner
t > Acked-by: Linus Walleij Reviewed-by: Stefan Agner -- Stefan > --- > Changes since v1: > > - Clarify commit message > - Address the DRM_BUS_FLAG_SYNC_* flags > - Rebase on top of drm-next > --- > drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 ++--- > drivers

Re: [PATCH v2 35/49] drm: Clarify definition of the DRM_BUS_FLAG_(PIXDATA|SYNC)_* macros

2019-01-11 Thread Stefan Agner
gt; the driving and sampling edge in their name to remove the confusion. The > driving macros are defined as the opposite of the sampling macros to > made code simpler based on the assumption that the driving and sampling > edges are opposite. > > Signed-off-by: Laurent Pinchart >

Re: [PATCH 09/10] drm/mxsfb: Improve the axi clock usage

2019-01-09 Thread Stefan Agner
On 09.01.2019 15:13, Robert Chiras wrote: > Currently, the enable of the axi clock return status is ignored, causing > issues when the enable fails then we try to disable it. Therefore, it is > better to check the return status and disable it only when enable > succeeded. > Also, remove the helper

Re: [PATCH 0/3] drm/mxsfb: support swapped RGB lanes

2019-01-02 Thread Stefan Agner
On 02.01.2019 18:02, Ahmad Fatoum wrote: > Hello, > > I got a board with the RED[0:7]/BLUE[0:7] lanes originating from the > LCDIF swapped and would like to describe this in the device tree: > > This first patch extends the mxsfb driver to support > following bus formats: >

Re: [PATCH v2 2/2] drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags

2018-12-05 Thread Stefan Agner
On 05.12.2018 11:42, Tomi Valkeinen wrote: > Hi, > > On 05/12/18 10:49, Laurent Pinchart wrote: >> From: Laurent Pinchart >> >> The DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE and >> DRM_BUS_FLAG_SYNC_(POS|NEG)EDGE flags are deprecated in favour of the >> new

Re: [PATCH 3/9] drm: replace "drm_dev_unref" function with "drm_dev_put"

2018-11-19 Thread Stefan Agner
s/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 4 ++-- > drivers/gpu/drm/etnaviv/etnaviv_drv.c| 4 ++-- > drivers/gpu/drm/mxsfb/mxsfb_drv.c| 4 ++-- For mxsfb: Acked-by: Stefan Agner -- Stefan > drivers/gpu/drm/rcar-du/rcar_du_drv.c| 2 +- > drivers/gpu/drm

Re: [PATCH] Revert "drm/imx: don't destroy mode objects manually on driver unbind"

2018-10-17 Thread Stefan Agner
On 17.10.2018 13:25, Stefan Agner wrote: > On 16.10.2018 18:09, Stefan Agner wrote: >> This reverts commit 8e3b16e2117409625b89807de3912ff773aea354. >> >> Using the component framework requires all components to undo in >> ->unbind what ->bind does. Unfortunatel

  1   2   3   4   5   >