[PATCH] drm/fsl-dcu: fix endian issue when using clk_register_divider

2016-09-02 Thread Stefan Agner
bce1 ("drm/fsl-dcu: use common clock framework for pixel clock divider") Reported-by: Meng Yi Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b

[PATCH] drm/fsl-dcu: Add gamma set for crtc

2016-09-02 Thread Stefan Agner
Hi Meng, hi Mark, [added Mark Brown to discuss the endian issue] On 2016-07-15 01:50, Meng Yi wrote: > Gamma correction is optional and can be used to adjust the color > output values to match the gamut of a particular TFT LCD panel > > Signed-off-by: Meng Yi > --- > drivers/gpu/drm/fsl-dcu/Kc

[PATCH] drm/fsl-dcu: Add gamma set for crtc

2016-09-05 Thread Stefan Agner
On 2016-09-04 19:28, Meng Yi wrote: > Hi Stefan, > >> > + */ >> > +static u32 swap_bytes(u16 var) >> >> We certainly don't want a byte swapping function in the driver. I am sure >> Linux >> has appropriate functions for that already, however, I am not convinced that >> we need that at all. >> >

[PATCH] drm/fsl-dcu: Add gamma set for crtc

2016-09-05 Thread Stefan Agner
On 2016-09-03 03:49, Mark Brown wrote: > On Fri, Sep 02, 2016 at 02:22:46PM -0700, Stefan Agner wrote: >> I guess the problem is that regmap_write does byte swapping because >> ls1021a.dtsi defines the whole DCU register space to be big-endian. So >> you end up doing byte swa

[PATCH] drm/fsl-dcu: fix endian issue when using clk_register_divider

2016-09-05 Thread Stefan Agner
rent endianness. Check >> endianness using the device-tree property "big-endian" to determine the >> location of DIV_RATIO. >> >> Cc: stable at vger.kernel.org >> Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for pixel >> clock divide

[PATCH -next] drm/fsl-dcu: use PTR_ERR_OR_ZERO() to simplify the code

2016-09-05 Thread Stefan Agner
On 2016-07-25 00:08, Wei Yongjun wrote: > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Wei Yongjun Applied! -- Stefan

[PATCH] drm/fsl-dcu: disable clock on error path

2016-09-05 Thread Stefan Agner
On 2016-08-21 19:22, Fabio Estevam wrote: > From: Fabio Estevam > > In fsl_dcu_drm_pm_resume() we should disable the previously enabled > clock (fsl_dev->clk) when enabling fsl_dev->pix_clk fails. > > Signed-off-by: Fabio Estevam Applied, thanks! -- Stefan

[PATCH 0/4] drm/fsl-dcu: add overlay and cursor plane support

2016-09-05 Thread Stefan Agner
READREG, which according to documentation: The READREG bit causes a single transfer to begin at the next frame blanking period. This bit is cleared when the transfer is complete. I made a video how that looks: https://cloud.agner.ch/index.php/s/Yfqa2u7UBEWUT8N Any ideas? Stefan Agner (4): drm/fsl

[PATCH 1/4] drm/fsl-dcu: support overlay and cursor planes

2016-09-05 Thread Stefan Agner
Add support for overlay plane and a cursor plane. The driver uses the topmost plane as cursor plane. The DCU IP would have dedicated cursor support, but that lacks proper color support and hence is not practical to use for Linux systems. Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu

[PATCH 2/4] drm/fsl-dcu: respect pos/size register sizes

2016-09-05 Thread Stefan Agner
Mask the size and position values to avoid mutual overwriting. Especially, a negative X position caused the Y position to be overwritten with 0xfff too. This has been observed when using a layer as cursor layer. Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h | 8

[PATCH 3/4] drm/fsl-dcu: update all registers on flush

2016-09-05 Thread Stefan Agner
Use the UPDATE_MODE READREG bit to initiate a register transfer on flush. This makes sure that we flush all registers only once for all planes. Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 3 +++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 5 - 2 files

[PATCH 4/4] drm/fsl-dcu: do not update when modifying irq registers

2016-09-05 Thread Stefan Agner
The IRQ status and mask registers are not "double buffered" according to the reference manual. Hence, there is no extra transfer/update write needed when modifying these registers. Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 1 file changed, 4

[PATCH v3] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-07 Thread Stefan Agner
ce in 2D-ACE is big-endian. > Workaround: > Split the DCU regs into "regs", "palette", "gamma" and "cursor". > Create a second regmap for gamma memory space using little endian. > > Suggested-by: Stefan Agner > Signed-off-by: Meng Yi >

[PATCH v3] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-13 Thread Stefan Agner
an registers > while the rest of the address-space in 2D-ACE is big-endian. > Workaround: > Split the DCU regs into "regs", "palette", "gamma" and "cursor". > Create a second regmap for gamma memory space using little endian. > > Sugge

[GIT PULL] drm/fsl-dcu: fixes for v4.9

2016-09-13 Thread Stefan Agner
Estevam (1): drm/fsl-dcu: disable clock on error path Stefan Agner (1): drm/fsl-dcu: fix endian issue when using clk_register_divider Wei Yongjun (1): drm/fsl-dcu: use PTR_ERR_OR_ZERO() to simplify the code drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 12 ++-- drivers/gpu/d

[PATCH v3] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-21 Thread Stefan Agner
On 2016-09-13 01:49, Meng Yi wrote: >> > diff --git a/drivers/gpu/drm/fsl-dcu/Kconfig >> > b/drivers/gpu/drm/fsl-dcu/Kconfig index 14a72c4..f9c76b1 100644 >> > --- a/drivers/gpu/drm/fsl-dcu/Kconfig >> > +++ b/drivers/gpu/drm/fsl-dcu/Kconfig >> > @@ -11,3 +11,9 @@ config DRM_FSL_DCU >> >help >>

[PATCH 0/4] drm/fsl-dcu: add overlay and cursor plane support

2016-09-21 Thread Stefan Agner
>> https://cloud.agner.ch/index.php/s/Yfqa2u7UBEWUT8N It would be interesting whether you see that on LS1021a too. -- Stefan >> >> Any ideas? >> >> Stefan Agner (4): >> drm/fsl-dcu: support overlay and cursor planes >> drm/fsl-dcu: respect pos/siz

[PATCH v3] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-26 Thread Stefan Agner
On 2016-09-25 23:04, Meng Yi wrote: >> On Wed, Sep 21, 2016 at 11:10:11AM -0700, Stefan Agner wrote: >> > On 2016-09-13 01:49, Meng Yi wrote: >> > >> > diff --git a/drivers/gpu/drm/fsl-dcu/Kconfig >> > >> > b/drivers/gpu/drm/fsl-dcu/Kconfig index

[PATCH v4] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-27 Thread Stefan Agner
amma regmap section. Also, please mention that we did not access the registers after the first address space yet, hence new device trees would even work with old kernels. Just new kernel need the new format so we can access the separate gamma reg space. > > Suggested-by: Stefan Agner > Signed-o

[PATCH v5] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-09-30 Thread Stefan Agner
ate a second regmap for gamma memory space using little endian. > The registers after the first address space are not accessed yet, > hence new device trees would even work with old kernels. Just new > kernel need the new format so we can access the separate gamma > reg space. > &

[PATCH] drm/fsl-dcu: add COMMON_CLK dependency

2016-05-02 Thread Stefan Agner
; Signed-off-by: Arnd Bergmann > Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for > pixel clock divider") Oh right, thx! Acked-by: Stefan Agner @Dave, can you pick that up directly or do you prefer a pull request? -- Stefan > --- > drivers/gpu/drm/fsl-dcu/

fsl-dcu not works on latest "drm-next"

2016-05-03 Thread Stefan Agner
Hi Meng, Please use plain text mails on mailing lists. On 2016-05-03 02:26, Meng Yi wrote: > Hi, > > I just tested the latest drm-next branch on Freescale/NXP ls1021a-twr, and > got some log below. And fsl-dcu not works. > > Since "drm-next" merged some branch , use git bisect had some pr

[PATCH RESEND v3 0/2] drm: introduce bus_flags for pixel clock polarity

2016-05-04 Thread Stefan Agner
ic changes to the first commit Changes since v1: - Introduce bus_flags to convey the pixel clock polarity from panel-simple.c to the driver. Stefan Agner (2): drm: introduce bus_flags in drm_display_info drm/fsl-dcu: use bus_flags for pixel clock polarity drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_

[PATCH RESEND v3 1/2] drm: introduce bus_flags in drm_display_info

2016-05-04 Thread Stefan Agner
-by: Stefan Agner --- drivers/gpu/drm/panel/panel-simple.c | 2 ++ include/drm/drm_crtc.h | 9 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index ceb2048..77ae07f 100644 --- a/drivers/gpu/drm

[PATCH RESEND v3 2/2] drm/fsl-dcu: use bus_flags for pixel clock polarity

2016-05-04 Thread Stefan Agner
ned-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 5 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h | 4 ++-- drivers/gpu/drm/panel/panel-simple.c | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b/drive

[PATCH RESEND v3 1/2] drm: introduce bus_flags in drm_display_info

2016-05-05 Thread Stefan Agner
#x27;t direct get > the panel, save polarity on panel_desc means need more work to > transmit it to crtc. > > Thanks. > > On 2016年05月05日 13:08, Stefan Agner wrote: >> Introduce bus_flags to specify display bus properties like signal >> polarities. This is usefu

[PATCH RESEND v3 1/2] drm: introduce bus_flags in drm_display_info

2016-05-05 Thread Stefan Agner
On 2016-05-05 03:06, Daniel Vetter wrote: > On Wed, May 04, 2016 at 10:08:59PM -0700, Stefan Agner wrote: >> Introduce bus_flags to specify display bus properties like signal >> polarities. This is useful for parallel display buses, e.g. to >> specify the pixel clock or

[GIT PULL] drm/fsl-dcu: add pixel clock polarity support

2016-05-05 Thread Stefan Agner
) Stefan Agner (2): drm: introduce bus_flags in drm_display_info drm/fsl-dcu: use bus_flags for pixel clock polarity drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 5 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h | 4 ++-- drivers

[PATCH] drm/imx: use bus_flags for pixel clock polarity

2016-05-10 Thread Stefan Agner
On 2016-05-10 08:07, Philipp Zabel wrote: > This patch allows panels to set pixel clock and data enable pin polarity > other than the default of driving data at the rising pixel clock edge and > active high display enable. > > Signed-off-by: Philipp Zabel > --- > drivers/gpu/drm/imx/imx-drm-

fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Stefan Agner
y 03, 2016 5:27 PM > To: 'dri-devel at lists.freedesktop.org' > ; David Airlie ; > 'Stefan Agner' ; 'airlied at redhat.com' > > Subject: fsl-dcu not works on latest "drm-next" > > Hi, > > > I just tested the latest drm-next branch

fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Stefan Agner
On 2016-05-26 02:11, Alexander Stein wrote: > On Thursday 26 May 2016 08:23:42, Meng Yi wrote: >> Hi Mark, >> >> > You've not specifically described the problem here - what are the >> > endiannesses of both the CPU and the device you're talking to? What >> > specifically is the endianess problem y

fsl-dcu not works on latest "drm-next"

2016-05-27 Thread Stefan Agner
On 2016-05-27 05:20, Mark Brown wrote: > On Thu, May 26, 2016 at 10:54:16PM -0700, Stefan Agner wrote: >> On 2016-05-26 02:11, Alexander Stein wrote: > >> > This needs to be a flat cache. See >> > https://lists.freedesktop.org/archives/dri-devel/2016-January/099121

[PATCH v2 0/3] drm: introduce bus_flags for pixel clock polarity

2016-02-23 Thread Stefan Agner
e v1: > - Introduce bus_flags to convey the pixel clock polarity from > panel-simple.c to the driver. > > Stefan Agner (3): > drm/fsl-dcu: use mode flags for hsync/vsync polarity > drm: introduce bus_flags in drm_display_info > drm/fsl-dcu: use bus_flags fo

[PATCH v2 0/3] drm: introduce bus_flags for pixel clock polarity

2016-02-24 Thread Stefan Agner
On 2016-02-24 03:06, Tomi Valkeinen wrote: > Hi, > > On 24/02/16 01:30, Stefan Agner wrote: >> Any comments on this? >> >> Also added Manfred, Tomi and Boris to CC which previously attended in >> similar discussions. >> >> Previous discussions: >

[PATCH 0/7] drm/fsl-dcu: fixes and enhancements

2016-02-25 Thread Stefan Agner
On 2015-11-18 18:42, Stefan Agner wrote: > During testing the DCU DRM driver on the Freescale Vybrid platform > I came across some (platform independent) bugs and problems which > this patchset addresses. > > Note: To use the driver on Vybrid some platform/device-tree > enhan

[PATCH v2 1/3] drm/fsl-dcu: use mode flags for hsync/vsync polarity

2016-02-25 Thread Stefan Agner
On 2016-02-08 13:57, Stefan Agner wrote: > The current default configuration is as follows: > - Invert VSYNC signal (active LOW) > - Invert HSYNC signal (active LOW) > > The mode flags allow to specify the required polarity per > mode. Furthermore, none of the current

[PATCH v2 1/2] drm/fsl-dcu: fix register initialization

2016-02-25 Thread Stefan Agner
On 2016-02-02 17:06, Stefan Agner wrote: > The layer enumeration start with 0 (0-15 for LS1021a and 0-63 for > Vybrid) whereas the register enumeration start from 1 (1-10 for > LS1021a and 1-9 for Vybrid). The loop started off from 0 for both > iterations and initialized the numb

[GIT PULL] drm/fsl-dcu: cleanup changes and fixes for v4.6

2016-02-25 Thread Stefan Agner
u to fetch changes up to f76b9873d7db0afb51f2df389a99284ef484b86f: drm/fsl-dcu: fix register initialization (2016-02-25 16:13:16 -0800) Meng Yi (1): drm: fsl-dcu: Fix no fb check bug Stefan Agner (9): MAINTAINERS:

Re: 答复: [RESEND 1/3] drm: fsl-dcu: Fix no fb check bug

2016-01-03 Thread Stefan Agner
== > NULL is an error in your driver and must be fixed. Thanks for this clarification. Ok, I agree the patch is needed despite my fix then... Acked-by: Stefan Agner -- Stefan

[PATCH] MAINTAINERS: update for Freescale DCU DRM driver

2016-01-06 Thread Stefan Agner
Promote myself as new maintainer of the Freescale DCU DRM driver. Signed-off-by: Stefan Agner --- This has been previously discussed privately. The original driver author and maintainer Jianwei does not work for Freescale anymore and can not carve out spare time to maintain the driver. As I

[RESEND,V2] drm: fsl-dcu: Fix no fb check bug

2016-01-13 Thread Stefan Agner
On 2016-01-08 01:20, Emil Velikov wrote: > Hi guys, > > Am I loosing the plot here or something feels amiss here ? > > On 6 January 2016 at 06:12, Meng Yi wrote: >> For state->fb or state->crtc may be NULL in fsl_dcu_drm_plane_atomic_check >> function, if so, return 0. >> >> Signed-off-by: Meng

Lockdep warning when using REGCACHE_RBTREE

2016-01-14 Thread Stefan Agner
Hi Mark, I currently work on the DCU DRM driver (drivers/gpu/drm/fsl-dcu/) on a Linux 4.4 kernel. With CONFIG_LOCKDEP enabled I get the following warning on startup: [1.327284] [ cut here ] [1.332010] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2755 lockdep_

Lockdep warning when using REGCACHE_RBTREE

2016-01-14 Thread Stefan Agner
On 2016-01-14 16:01, Mark Brown wrote: > On Thu, Jan 14, 2016 at 02:30:50PM -0800, Stefan Agner wrote: > >> I currently work on the DCU DRM driver (drivers/gpu/drm/fsl-dcu/) on a >> Linux 4.4 kernel. With CONFIG_LOCKDEP enabled I get the following >> warning on startup:

Lockdep warning when using REGCACHE_RBTREE

2016-01-15 Thread Stefan Agner
On 2016-01-15 08:28, Mark Brown wrote: > On Thu, Jan 14, 2016 at 05:14:47PM -0800, Stefan Agner wrote: > >> On a slightly other topic, I question whether REGCACHE_RBTREE is the >> right cache type for the DCU DRM driver. The driver has uses a regmap >> area of 1144 32

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] 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 ch

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. vi

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 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 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 plane

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 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
ding 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 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 11/22] drm: mxsfb: Stop using DRM simple display pipeline helper

2020-06-11 Thread Stefan Agner
vate *mxsfb) > > static void mxsfb_crtc_mode_set_nofb(struct mxsfb_drm_private *mxsfb) > { > - struct drm_device *drm = mxsfb->pipe.crtc.dev; > - struct drm_display_mode *m = &mxsfb->pipe.crtc.state->adjusted_mode; > + struct drm_device *drm =

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

2020-06-17 Thread Stefan Agner
hread, 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

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: > > - Spl

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 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 nee

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/

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

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 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/

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 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 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 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 woul

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 12/21] drm: mxsfb: Move vblank event arm to CRTC .atomic_flush()

2020-03-23 Thread Stefan Agner
at 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 ++- >

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

2020-03-23 Thread Stefan Agner
sable() 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 Loo

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 Pincha

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 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. -- Stefa

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 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 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 20/21] drm: mxsfb: Merge mxsfb_set_pixel_fmt() and mxsfb_set_bus_fmt()

2020-03-23 Thread Stefan Agner
ate 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 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 ++-- > drivers/gpu/drm/m

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_panel_b

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 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

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: [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 othe

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 othe

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 id

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 realizati

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-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

[PATCH] drm: mxsfb: check framebuffer pitch

2020-09-07 Thread Stefan Agner
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] 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

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-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

[PATCH v2] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
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

[PATCH v3] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
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

[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

[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/gp

[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 conformat

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 a

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

2020-05-28 Thread Stefan Agner
e_vblank callback 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: Pengutroni

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 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

<    1   2   3   4   5   >