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

2018-10-17 Thread Stefan Agner
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. Unfortunately that particular commit > broke this rule. In particu

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

2018-10-17 Thread Stefan Agner
On 16.10.2018 18:51, Lucas Stach wrote: > Am Dienstag, den 16.10.2018, 18:09 +0200 schrieb Stefan Agner: >> This reverts commit 8e3b16e2117409625b89807de3912ff773aea354. >> >> Using the component framework requires all components to undo in >> ->unbind w

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

2018-10-16 Thread Stefan Agner
y undo what ->bind does. Link: https://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg233327.html Suggested-by: Russell King Signed-off-by: Stefan Agner --- drivers/gpu/drm/imx/imx-drm-core.c | 4 ++-- drivers/gpu/drm/imx/imx-ldb.c | 6 ++ drivers/gpu/drm/imx/

Re: [PATCH 2/2] drm/imx: make sure to cleanup DRM before unbinding components

2018-10-10 Thread Stefan Agner
[adding Lucas] On 10.10.2018 12:38, Russell King - ARM Linux wrote: > On Tue, Oct 09, 2018 at 11:30:49PM +0200, Stefan Agner wrote: >> In situations where a component fails to bind, a previously >> successfully bound component might already registered itself >> with t

[PATCH 1/2] component: add optional cleanup function

2018-10-09 Thread Stefan Agner
Add optional cleanup function on master level. This allows the master to call framework level cleanup functions in case binding of any component failed before the previously successfully bound components get unbound. Signed-off-by: Stefan Agner --- Hi, This is an attempt to fix the issue

[PATCH 2/2] drm/imx: make sure to cleanup DRM before unbinding components

2018-10-09 Thread Stefan Agner
sure all framework level cleanup is done by the time we unbind components. Signed-off-by: Stefan Agner --- drivers/gpu/drm/imx/imx-drm-core.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c

Re: [PATCH 2/2] drm/fsl-dcu: use drm_display_mode_to_videomode to calculate timing parameters

2018-10-01 Thread Stefan Agner
On 01.10.2018 09:57, Daniel Vetter wrote: > On Wed, Sep 26, 2018 at 10:41:50PM +0200, Stefan Agner wrote: >> From: Satendra Singh Thakur >> >> Use the drm_display_mode_to_videomode function to calculate front/ >> back porches and sync length. >> >> Cc: M

Re: [PATCH 03/20] drm/fsl-dcu: Use drm_fbdev_generic_setup()

2018-09-28 Thread Stefan Agner
On 28.09.2018 16:57, Noralf Trønnes wrote: > Den 28.09.2018 16.11, skrev Stefan Agner: >> On 27.09.2018 23:23, Noralf Trønnes wrote: >>> Den 27.09.2018 23.08, skrev Stefan Agner: >>>> On 08.09.2018 15:46, Noralf Trønnes wrote: >>>>> The CMA helper is

Re: [PATCH 03/20] drm/fsl-dcu: Use drm_fbdev_generic_setup()

2018-09-28 Thread Stefan Agner
On 27.09.2018 23:23, Noralf Trønnes wrote: > Den 27.09.2018 23.08, skrev Stefan Agner: >> On 08.09.2018 15:46, Noralf Trønnes wrote: >>> The CMA helper is already using the drm_fb_helper_generic_probe part of >>> the generic fbdev emulation. This patch makes full u

Re: [PATCH 03/20] drm/fsl-dcu: Use drm_fbdev_generic_setup()

2018-09-27 Thread Stefan Agner
succeed probing. Can we add something like this, similar to tinydrm-core.c? if (ret) DRM_ERROR("Failed to initialize fbdev: %d\n", ret); -- Stefan > > Cc: Stefan Agner > Cc: Alison Wang > Signed-off-by: Noralf Trønnes > --- > drivers/gpu/drm/fsl-d

[PATCH 1/2] drm/fsl-dcu: drop unused drm_crtc_index()

2018-09-26 Thread Stefan Agner
The result of drm_crtc_index() is unused. Remove the call and the unused variable. Signed-off-by: Stefan Agner --- This is a split version of a patch posted a while ago: https://lore.kernel.org/patchwork/patch/903786/ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 3 +-- 1 file changed, 1

[PATCH 2/2] drm/fsl-dcu: use drm_display_mode_to_videomode to calculate timing parameters

2018-09-26 Thread Stefan Agner
From: Satendra Singh Thakur Use the drm_display_mode_to_videomode function to calculate front/ back porches and sync length. Cc: Madhur Verma Cc: Hemanshu Srivastava Signed-off-by: Satendra Singh Thakur Signed-off-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 32

Re: [PATCH v3 09/11] drm/fsl-dcu: Use drm_fb_cma_fbdev_init/fini()

2018-09-26 Thread Stefan Agner
er functions directly. > Remove console.h inclusion which was forgotten when converting to the > suspend/resume helpers. Just realized this never made it upstream. I guess its still valid and could be applied? -- Stefan > > Cc: Stefan Agner > Cc: Alison Wang > Signed-off-by: No

Re: [RESEND PATCH] drm/fsl-dcu: Replace drm_dev_unref with drm_dev_put

2018-09-26 Thread Stefan Agner
On 26.09.2018 13:43, Thomas Zimmermann wrote: > This patch unifies the naming of DRM functions for reference counting > of struct drm_device. The resulting code is more aligned with the rest > of the Linux kernel interfaces. Applied! -- Stefan > > Signed-off-by: Thomas Zimmermann > --- >

Re: [RESEND 0/5] drm/mxsfb: Fix runtime PM for unpowering lcdif block

2018-09-26 Thread Stefan Agner
On 20.09.2018 18:39, Sean Paul wrote: > On Thu, Sep 20, 2018 at 11:59 AM Leonard Crestez > wrote: >> >> On Mon, 2018-09-17 at 16:37 -0700, Stefan Agner wrote: >> > On 17.09.2018 12:16, Sean Paul wrote: >> > > On Mon, Sep 17, 2018 at 04:42:10PM +0300, Leona

Re: [PATCH] MAINTAINERS: Move fsl-dcu driver to drm-misc tree

2018-09-26 Thread Stefan Agner
On 26.09.2018 15:39, Sean Paul wrote: > On Wed, Sep 26, 2018 at 02:50:34PM +0200, Stefan Agner wrote: >> The driver is mostly in maintenance mode. > > Is the status still Supported, then? > Yeah Supported as defined in MAINTAINERS is still accurate. Its just that we d

[PATCH] MAINTAINERS: Move fsl-dcu driver to drm-misc tree

2018-09-26 Thread Stefan Agner
The driver is mostly in maintenance mode. Using drm-misc is a good fit and should make maintenance a bit easier. Signed-off-by: Stefan Agner --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 02a39617ec82..6646a3d098a1 100644 --- a/MAINTAINERS

Re: [PATCH 2/2] MAINTAINERS: Move mxsfb drm driver to drm-misc tree

2018-09-24 Thread Stefan Agner
On 19.09.2018 22:39, Sean Paul wrote: > From: Sean Paul > > Another "small driver" moving into drm-misc. Stefan has also offered to > co-maintain it. > > Cc: Marek Vasut > Cc: Stefan Agner > Cc: David Airlie > Cc: Gustavo Padovan > Cc: Maarten Lankh

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

2018-09-24 Thread Stefan Agner
On 24.09.2018 14:13, Thierry Reding wrote: > On Mon, Sep 24, 2018 at 01:59:25PM +0200, Stefan Agner wrote: >> On 24.09.2018 13:48, Thierry Reding wrote: >> > On Sat, Sep 22, 2018 at 03:15:04PM +0300, Laurent Pinchart wrote: >> >> The DRM_BUS_FLAG_PIXDATA_(POS

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

2018-09-24 Thread Stefan Agner
On 24.09.2018 13:48, Thierry Reding wrote: > On Sat, Sep 22, 2018 at 03:15:04PM +0300, Laurent Pinchart wrote: >> The DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE flags are deprecated in favour of >> the new DRM_BUS_FLAG_PIXDATA_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags. Replace >> them through the code. >> >>

Re: [RFC/PATCH 0/2] Clarify display info PIXDATA bus flags

2018-09-24 Thread Stefan Agner
On 22.09.2018 14:15, Laurent Pinchart wrote: > Hello, > > This patch series attemps at clarifying usage of the > DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE flags. It results from a discussion > on the mailing list available at [1]. > > The problem being discussed was confusion around how the >

Re: [PATCH 2/2] MAINTAINERS: Move mxsfb drm driver to drm-misc tree

2018-09-20 Thread Stefan Agner
On 19.09.2018 13:39, Sean Paul wrote: > From: Sean Paul > > Another "small driver" moving into drm-misc. Stefan has also offered to > co-maintain it. > > Cc: Marek Vasut > Cc: Stefan Agner > Cc: David Airlie > Cc: Gustavo Padovan > Cc: Maarten Lankho

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-19 Thread Stefan Agner
On 14.09.2018 02:49, Laurent Pinchart wrote: > Hi Stefan, > > On Thursday, 6 September 2018 23:25:56 EEST Stefan Agner wrote: >> On 06.09.2018 04:07, Linus Walleij wrote: >> > On Wed, Sep 5, 2018 at 8:32 PM Stefan Agner wrote: >> >> On 05.09.2018 00:44, Laur

Re: [PATCH v2 1/8] drm/bridge: use bus flags in bridge timings

2018-09-18 Thread Stefan Agner
On 14.09.2018 02:23, Laurent Pinchart wrote: > Hi Stefan, > > Thankk you for the patch. > > On Wednesday, 12 September 2018 21:32:15 EEST Stefan Agner wrote: >> The DRM bus flags conveys additional information on pixel data on >> the bus. All currently available bus

Re: [RESEND 0/5] drm/mxsfb: Fix runtime PM for unpowering lcdif block

2018-09-17 Thread Stefan Agner
On 17.09.2018 12:16, Sean Paul wrote: > On Mon, Sep 17, 2018 at 04:42:10PM +0300, Leonard Crestez wrote: >> Adding lcdif nodes to a power domain currently doesn't work, it results >> in black/corrupted screens or hangs. While the driver does enable >> runtime pm it does not deal correctly with the

Re: [PATCH v2 6/8] drm/imx: support handling bridge timings bus flags

2018-09-13 Thread Stefan Agner
On 13.09.2018 01:38, Philipp Zabel wrote: > On Wed, 2018-09-12 at 11:32 -0700, Stefan Agner wrote: >> A bridge might require specific settings for the pixel data on >> the bus. > > On which bus? The bridge has input and output. > >> Copy the bus flags from

Re: drm/imx: Crash in drm_mode_config_cleanup

2018-09-13 Thread Stefan Agner
Hi Philipp, On 13.09.2018 01:36, Philipp Zabel wrote: > Hi Stefan, > > thank you for the report. I think what happens is the following: Thanks for looking into it! > > On Wed, 2018-09-12 at 15:26 -0700, Stefan Agner wrote: >> Hi, >> >> While working on

Re: drm/imx: Crash in drm_mode_config_cleanup

2018-09-12 Thread Stefan Agner
On 12.09.2018 15:26, Stefan Agner wrote: > Hi, > > While working on Apalis iMX6 with four displays, I encountered the > following crash: > > ... > [2.978166] imx-drm display-subsystem: trying to bring up master > [2.984368] imx-drm display-subsystem:

drm/imx: Crash in drm_mode_config_cleanup

2018-09-12 Thread Stefan Agner
Hi, While working on Apalis iMX6 with four displays, I encountered the following crash: ... [2.978166] imx-drm display-subsystem: trying to bring up master [2.984368] imx-drm display-subsystem: Looking for component 0 [2.990236] imx-drm display-subsystem: master has incomplete

[PATCH v2 8/8] ARM: dts: imx6qdl-apalis: add GPIO I2C node for DDC

2018-09-12 Thread Stefan Agner
-bus = <>; }; { /delete-property/ pinctrl-0; }; { status = "okay"; }; Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/a

[PATCH v2 7/8] ARM: dts: imx6qdl-apalis: add VGA support

2018-09-12 Thread Stefan Agner
The Apalis iMX6 modules use a simple DAC using resistor ladders to convert parallel RGB to VGA. Add support for this output using the dumb VGA driver. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 28 + arch/arm/boot/dts/imx6qdl-apalis.dtsi | 52

[PATCH v2 6/8] drm/imx: support handling bridge timings bus flags

2018-09-12 Thread Stefan Agner
A bridge might require specific settings for the pixel data on the bus. Copy the bus flags from the bridge timings if a bridge is in use. Signed-off-by: Stefan Agner --- drivers/gpu/drm/imx/parallel-display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/imx/parallel

[PATCH v2 5/8] dt-bindings: display: add data-enable polarity property

2018-09-12 Thread Stefan Agner
Allow to specify the data-enable polarity required by a dumb VGA DAC converting parallel RGB to VGA. Signed-off-by: Stefan Agner --- .../devicetree/bindings/display/bridge/dumb-vga-dac.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display

[PATCH v2 4/8] drm/bridge: allow to specify data-enable polarity

2018-09-12 Thread Stefan Agner
Support boards with a passive RGB to VGA bridge which require a low active data-enable polarity. Signed-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/dumb-vga

[PATCH v2 2/8] drm/pl111: simplify bridge timing support

2018-09-12 Thread Stefan Agner
Simplify bridge timing support by only supporting pixel clock polarity. This aligns pixel clock polarity handling for bridges with displays. Signed-off-by: Stefan Agner --- drivers/gpu/drm/pl111/pl111_display.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff

[PATCH v2 3/8] drm/bridge: simplify bridge timing info

2018-09-12 Thread Stefan Agner
it seems not convincing that this is currently really required for bridges either. Remove setup/hold timings again to better align timing information of displays and briges. Signed-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 17 + include/drm/drm_bridge.h

[PATCH v2 1/8] drm/bridge: use bus flags in bridge timings

2018-09-12 Thread Stefan Agner
). This is an assumption we already make for displays. For all we know it is a safe assumption for bridges too. Signed-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 +++--- include/drm/drm_bridge.h | 11 +-- 2 files changed, 8 insertions(+), 9 deletions

[PATCH v2 0/8] drm/bridge: add bus flag support

2018-09-12 Thread Stefan Agner
. -- Stefan Changes in v2: - Rename bus_flags to simple_bus_flags - Reword dt-bindings for de-active - Add patch 2/3 which attempts to simplify bridge timings Stefan Agner (8): drm/bridge: use bus flags in bridge timings drm/pl111: simplify bridge timing support drm/bridge: simplify bridge timing

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-07 Thread Stefan Agner
On 07.09.2018 00:10, Linus Walleij wrote: > On Thu, Sep 6, 2018 at 10:25 PM Stefan Agner wrote: > >> Ok, I read a bit up on the history of bridge timing, especially: >> https://www.spinics.net/lists/dri-devel/msg155618.html >> >> IMHO, this got overengineered. F

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

2018-09-06 Thread Stefan Agner
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 > Signed-off-by: Stefan Agner I think this did not get merged yet, any chance to get it

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-06 Thread Stefan Agner
On 06.09.2018 04:07, Linus Walleij wrote: > On Wed, Sep 5, 2018 at 8:32 PM Stefan Agner wrote: >> On 05.09.2018 00:44, Laurent Pinchart wrote: > >> Good point! I actually really don't like that we use the same flags here >> but from a different perspective. Especially

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-06 Thread Stefan Agner
On 06.09.2018 09:54, Laurent Pinchart wrote: > Hi Stefan, > > On Thursday, 6 September 2018 19:48:51 EEST Stefan Agner wrote: >> On 06.09.2018 05:25, Laurent Pinchart wrote: >> > On Thursday, 6 September 2018 14:07:41 EEST Linus Walleij wrote: >> >> On Wed,

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-06 Thread Stefan Agner
On 06.09.2018 05:25, Laurent Pinchart wrote: > Hi Linus, > > On Thursday, 6 September 2018 14:07:41 EEST Linus Walleij wrote: >> On Wed, Sep 5, 2018 at 8:32 PM Stefan Agner wrote: >> > On 05.09.2018 00:44, Laurent Pinchart wrote: >> > >> > Good point

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-05 Thread Stefan Agner
On 05.09.2018 00:44, Laurent Pinchart wrote: > Hi Stefan, > > On Wednesday, 5 September 2018 10:06:28 EEST Laurent Pinchart wrote: >> On Wednesday, 5 September 2018 08:21:08 EEST Stefan Agner wrote: >> > The DRM bus flags convey additional information on pixel data on &

Re: [PATCH 3/6] dt-bindings: display: add data-enable polarity property

2018-09-05 Thread Stefan Agner
On 05.09.2018 00:07, Laurent Pinchart wrote: > Hi Stefan, > > Thank you for the patch. > > On Wednesday, 5 September 2018 08:21:10 EEST Stefan Agner wrote: >> Allow to specify the data-enable polarity required by a dumb VGA >> DAC converting parallel RGB to VGA. >&g

Re: [PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-05 Thread Stefan Agner
On 05.09.2018 11:00, Stefan Agner wrote: > The DRM bus flags convey additional information on pixel data on > the bus. All current available bus flags might be of interest for > a bridge. Remove the sampling_edge field and use bus_flags. > > In the case at hand a dumb VGA bridge n

[PATCH 2/6] drm/bridge: allow to specify data-enable polarity

2018-09-05 Thread Stefan Agner
Support boards with a passive RGB to VGA bridge which require a low active data-enable polarity. Signed-off-by: Stefan Agner --- Alternatively a new dt binding could be introduced for dumb VGA bridges requiring low active data enable... However, also other polarities might need a specific

[PATCH 3/6] dt-bindings: display: add data-enable polarity property

2018-09-05 Thread Stefan Agner
Allow to specify the data-enable polarity required by a dumb VGA DAC converting parallel RGB to VGA. Signed-off-by: Stefan Agner --- .../devicetree/bindings/display/bridge/dumb-vga-dac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display

[PATCH libdrm 1/2] modeprint: use libutil to lookup strings

2018-09-05 Thread Stefan Agner
Use libutil to lookup connector type names and state. This also makes sure that the latest connector type addition "DPI" gets printed correctly. Signed-off-by: Stefan Agner --- tests/modeprint/Makefile.am | 1 + tests/modeprint/meson.build | 2 +- tests/modeprint/modepr

[PATCH libdrm 2/2] modeprint: print encoder type

2018-09-05 Thread Stefan Agner
Print encoder types similar to connector types. Signed-off-by: Stefan Agner --- tests/modeprint/modeprint.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 1d62270f..ad727e12 100644 --- a/tests/modeprint

[PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-05 Thread Stefan Agner
-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 +++--- include/drm/drm_bridge.h | 11 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c index 9b706789a341

[PATCH 6/6] ARM: dts: imx6qdl-apalis: add GPIO I2C node for DDC

2018-09-04 Thread Stefan Agner
-bus = <>; }; { /delete-property/ pinctrl-0; }; { status = "okay"; }; Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/a

[PATCH 4/6] drm/imx: support handling bridge timings bus flags

2018-09-04 Thread Stefan Agner
A bridge might require specific settings for the pixel data on the bus. Copy the bus flags from the bridge timings if a bridge is in use. Signed-off-by: Stefan Agner --- drivers/gpu/drm/imx/parallel-display.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/imx

[PATCH 1/6] drm/bridge: use bus flags in bridge timings

2018-09-04 Thread Stefan Agner
-off-by: Stefan Agner --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 6 +++--- include/drm/drm_bridge.h | 11 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c index 9b706789a341

[PATCH 5/6] ARM: dts: imx6qdl-apalis: add VGA support

2018-09-04 Thread Stefan Agner
The Apalis iMX6 modules use a simple DAC using resistor ladders to convert parallel RGB to VGA. Add support for this output using the dump VGA driver. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 28 + arch/arm/boot/dts/imx6qdl-apalis.dtsi | 52

[PATCH 2/6] drm/bridge: allow to specify data-enable polarity

2018-09-04 Thread Stefan Agner
Support boards with a passive RGB to VGA bridge which require a low active data-enable polarity. Signed-off-by: Stefan Agner --- Alternatively a new dt binding could be introduced for dumb VGA bridges requiring low active data enable... However, also other polarities might need a specific

[PATCH 3/6] dt-bindings: display: add data-enable polarity property

2018-09-04 Thread Stefan Agner
Allow to specify the data-enable polarity required by a dumb VGA DAC converting parallel RGB to VGA. Signed-off-by: Stefan Agner --- .../devicetree/bindings/display/bridge/dumb-vga-dac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display

Re: [PATCH v4 2/5] drm/mxsfb: Fix initial corrupt frame when activating display

2018-08-08 Thread Stefan Agner
d NEXT_BUF when > activating the CRTC. > > Signed-off-by: Leonard Crestez > Tested-by: Philipp Zabel Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 45 +- > 1 file changed, 32 insertions(+), 13 deletions(-) > > diff

Re: [PATCH v4 1/5] drm/mxsfb: Move axi clk enable/disable to crtc enable/disable

2018-08-08 Thread Stefan Agner
fb_crtc_disable for simmetry > > This shouldn't have any functional effect. > > Signed-off-by: Leonard Crestez Thanks, looks good! Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) >

Re: [PATCH v3 4/4] drm/mxsfb: Switch to drm_atomic_helper_commit_tail_rpm

2018-08-08 Thread Stefan Agner
On 08.08.2018 10:00, Leonard Crestez wrote: > On Tue, 2018-08-07 at 21:01 +0200, Stefan Agner wrote: >> On 06.08.2018 21:31, Leonard Crestez wrote: >> > The lcdif block is only powered on when display is active so plane >> > updates when not enabled are not valid. Writi

[PATCH] drm/doc: clarify how to acquire required vblank event reference

2018-08-07 Thread Stefan Agner
As a driver write it is not entirely obvious that a reference to the event e mentioned in the doc can be obtained via drm_crtc_vblank_get(). Clarify how to obtain the reference. Signed-off-by: Stefan Agner --- drivers/gpu/drm/drm_vblank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH v3 4/4] drm/mxsfb: Switch to drm_atomic_helper_commit_tail_rpm

2018-08-07 Thread Stefan Agner
tail_rpm just exacerbates an issue which we haven't seen before... Since I think it is a general fix, I'd rather prefer have it in a separate commit. > > Signed-off-by: Leonard Crestez > Suggested-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 15 +++ > 1

Re: [PATCH v3 3/4] drm/mxsfb: Add PM_SLEEP support

2018-08-07 Thread Stefan Agner
On 06.08.2018 21:31, Leonard Crestez wrote: > Since power to the lcdif block can be lost on suspend implement > PM_SLEEP_OPS using drm_mode_config_helper_suspend/resume to save/restore > the current mode. > > Signed-off-by: Leonard Crestez Reviewed-by: Stefan Agner > ---

Re: [PATCH v3 2/4] drm/mxsfb: Add pm_runtime calls to pipe_enable/disable

2018-08-07 Thread Stefan Agner
mxsfb_pipe_enable/disable. > > Signed-off-by: Leonard Crestez Reviewed-by: Stefan Agner > --- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c > b/drivers/gpu/drm/mxsfb/mxsfb_drv.c

Re: [PATCH v3 1/4] drm/mxsfb: Fix initial corrupt frame when activating display

2018-08-07 Thread Stefan Agner
On 06.08.2018 21:31, Leonard Crestez wrote: > LCDIF will repeatedly display data from CUR_BUF and set CUR_BUF to > NEXT_BUF when done. Since we are only ever writing to NEXT_BUF the > display will show an initial corrupt frame. > > Fix by writing the FB paddr to both CUR_BUF and NEXT_BUF when >

Re: [PATCH v2] drm/mxsfb: Fix runtime PM for unpowering lcdif block

2018-08-02 Thread Stefan Agner
On 02.08.2018 12:17, Philipp Zabel wrote: > On Tue, 2018-07-31 at 12:17 +, Leonard Crestez wrote: >> On Tue, 2018-07-31 at 13:54 +0200, Philipp Zabel wrote: >> > On Tue, 2018-07-17 at 13:48 +0300, Leonard Crestez wrote: >> > > Adding lcdif nodes to a power domain currently does work, it

Re: [PATCH v2] drm/mxsfb: Fix runtime PM for unpowering lcdif block

2018-08-01 Thread Stefan Agner
On 17.07.2018 12:48, Leonard Crestez wrote: > Adding lcdif nodes to a power domain currently does work, it results in > black/corrupted screens or hangs. While the driver does enable runtime > pm it does not deal correctly with the block being unpowered. > > Ensure power is on when required by

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

2018-07-26 Thread Stefan Agner
If the GPIO subsystem is not ready make sure to return -EPROBE_DEFER instead of silently continuing without HPD. Reported-by: Marcel Ziswiler Signed-off-by: Stefan Agner --- drivers/gpu/drm/tegra/output.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

Re: [PATCH 1/2] drm/mxsfb: Fix runtime PM for unpowering lcdif block

2018-07-13 Thread Stefan Agner
On 05.06.2018 19:11, Leonard Crestez wrote: > Adding imx6sl/sx lcdif nodes in a power domain currently does work, it > results in black/corrupted screens or hangs. While the driver does > enable runtime pm it does not deal correctly with the block being > unpowered. > > Fix by adding

Re: [PATCH] drm: mxsfb: fix runtime PM handling

2018-07-13 Thread Stefan Agner
On 13.07.2018 12:36, Marek Vasut wrote: > On 07/13/2018 12:33 PM, Stefan Agner wrote: >> On 13.07.2018 11:12, Marek Vasut wrote: >>> On 07/13/2018 11:06 AM, Anson Huang wrote: >>> [...] >>>>> >>>>> On 07/13/2018 10:54 AM, Anson Huang wro

Re: [PATCH] drm: mxsfb: fix runtime PM handling

2018-07-13 Thread Stefan Agner
On 13.07.2018 11:12, Marek Vasut wrote: > On 07/13/2018 11:06 AM, Anson Huang wrote: > [...] >>> >>> On 07/13/2018 10:54 AM, Anson Huang wrote: As display power domain is combined with lcdif node on some i.MX platforms like i.MX6SL, when lcdif driver is enabled, the mxsfb_load is

Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm

2018-07-12 Thread Stefan Agner
On 12.07.2018 15:03, Leonard Crestez wrote: > On Thu, 2018-07-12 at 11:21 +0200, Stefan Agner wrote: >> On 10.07.2018 11:11, Marek Vasut wrote: >> > On 07/10/2018 11:06 AM, Stefan Agner wrote: >> > > This is one of the situation where states quo is ki

Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm

2018-07-12 Thread Stefan Agner
[adding Authors of the problematic device trees] On 10.07.2018 11:11, Marek Vasut wrote: > On 07/10/2018 11:06 AM, Stefan Agner wrote: >> On 16.06.2018 01:32, Marek Vasut wrote: >>> On 06/16/2018 12:42 AM, Leonard Crestez wrote: >>>> On Fri, 2018-06-15 at

Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm

2018-07-12 Thread Stefan Agner
On 10.07.2018 11:11, Marek Vasut wrote: > On 07/10/2018 11:06 AM, Stefan Agner wrote: >> On 16.06.2018 01:32, Marek Vasut wrote: >>> On 06/16/2018 12:42 AM, Leonard Crestez wrote: >>>> On Fri, 2018-06-15 at 23:36 +0200, Marek Vasut wrote: >>>>>

Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm

2018-07-10 Thread Stefan Agner
On 16.06.2018 01:32, Marek Vasut wrote: > On 06/16/2018 12:42 AM, Leonard Crestez wrote: >> On Fri, 2018-06-15 at 23:36 +0200, Marek Vasut wrote: >>> On 06/15/2018 10:58 PM, Leonard Crestez wrote: On Fri, 2018-06-15 at 16:47 -0300, Fabio Estevam wrote: > On Fri, Jun 15, 2018 at 4:43 PM,

Re: [PATCH 1/3] drm: mxsfb: Change driver.name to mxsfb-drm

2018-06-18 Thread Stefan Agner
On 18.06.2018 09:43, Daniel Vetter wrote: > On Sat, Jun 16, 2018 at 01:32:44AM +0200, Marek Vasut wrote: >> On 06/16/2018 12:42 AM, Leonard Crestez wrote: >> > On Fri, 2018-06-15 at 23:36 +0200, Marek Vasut wrote: >> >> On 06/15/2018 10:58 PM, Leonard Crestez wrote: >> >>> On Fri, 2018-06-15 at

[PATCH] drm/exynos: ipp: use correct enum type

2018-06-17 Thread Stefan Agner
The limit_id_fallback array uses enum drm_ipp_size_id to index its content. The content itself is of type enum drm_exynos_ipp_limit_type. Cc: Marek Szyprowski Signed-off-by: Stefan Agner --- drivers/gpu/drm/exynos/exynos_drm_ipp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd/display: don't initialize result

2018-06-17 Thread Stefan Agner
-conversion] enum dc_status result = DDC_RESULT_UNKNOWN; ~~ ^~ 1 warning generated. Initialization of result is unnecessary anyway, just drop the initialization. Signed-off-by: Stefan Agner --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

[PATCH] drm/amdgpu: use first uvd instance to avoid clang build error

2018-06-17 Thread Stefan Agner
to support multiple instances") Cc: James Zhu Signed-off-by: Stefan Agner --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index bcf68f80bbf0..666

[PATCH v2] drm/atmel-hlcdc: check stride values in the first plane

2018-06-17 Thread Stefan Agner
ead. Signed-off-by: Stefan Agner --- Changes in v2: - Check for first value instead of dropping if statement (subject was: drm/atmel-hlcdc: remove unnecessary if statement) drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

Re: [PATCH] drm/atmel-hlcdc: remove unnecessary if statement

2018-06-16 Thread Stefan Agner
Boris, Maxime, On 07.08.2017 08:26, Stefan Agner wrote: > The statement always evaluates to true since the struct fields > are arrays. This has shown up as a warning when compiling with > clang: > warning: address of array 'desc->layout.xstride' will always > evaluate to

Re: [PATCH] drm/mxsfb: rename driver to mxsfb-drm

2018-06-13 Thread Stefan Agner
[adding Sascha and Bartlomiej] On 13.06.2018 09:17, Marek Vasut wrote: > On 06/13/2018 09:16 AM, Stefan Agner wrote: >> On 13.06.2018 01:08, Marek Vasut wrote: >>> On 06/12/2018 06:01 PM, Fabio Estevam wrote: >>>> On Tue, Jun 12, 2018 at 11:35 AM, Stefan Agner w

Re: [PATCH] drm/mxsfb: rename driver to mxsfb-drm

2018-06-13 Thread Stefan Agner
On 13.06.2018 01:08, Marek Vasut wrote: > On 06/12/2018 06:01 PM, Fabio Estevam wrote: >> On Tue, Jun 12, 2018 at 11:35 AM, Stefan Agner wrote: >> >>> There are two drivers for the LCDIF/MXSFB peripheral. If the DRM >>> and fbdev are compiled in, the registrati

[PATCH] drm/mxsfb: rename driver to mxsfb-drm

2018-06-12 Thread Stefan Agner
Error: Driver 'mxsfb' is already registered, aborting... Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver. Signed-off-by: Stefan Agner --- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-05-20 Thread Stefan Agner
The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: http://git.agner.ch/git/linux-drm-fsl-dcu.git tags/drm-fsl-dcu-fixes-for-v4.18 for you to fetch changes up to

Re: [PATCH v2] MAINTAINERS: drm: fsl-dcu: Update to Alison's NXP email address

2018-05-20 Thread Stefan Agner
1..794c130 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -4661,7 +4661,7 @@ F: > Documentation/devicetree/bindings/display/exynos/ > > DRM DRIVERS FOR FREESCALE DCU > M: Stefan Agner <ste...@agner.ch> > -M: Alison Wang <alison.w...@freescale.c

Re: [PATCH 04/13] drm/kms/mode/fsl-dcu: using helper func drm_display_mode_to_videomode for calculating timing parameters

2018-05-07 Thread Stefan Agner
On 03.05.2018 10:44, Satendra Singh Thakur wrote: > To avoid duplicate logic for the same How about: Use drm_display_mode_to_videomode to avoid duplicate logic. > > Signed-off-by: Satendra Singh Thakur > Cc: Madhur Verma > Cc: Hemanshu

[PATCH] drm/panel: simple: fix data type in KEO TX31D200VM0BAA timings

2018-04-19 Thread Stefan Agner
value from 33.5 to 33 [-Wliteral-conversion] .vback_porch = { 6, 21, 33.5 }, ~^~~~ Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/gpu/drm/panel/panel-simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/g

[PATCH] drm/msm/dsi: use correct enum in dsi_get_cmd_fmt

2018-03-19 Thread Stefan Agner
' to different enumeration type 'enum dsi_cmd_dst_format' [-Wenum-conversion] case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666; ~~ ^ Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/gpu/drm/m

[PATCH] drm/tegra: dc: use correct format array for Tegra124.

2018-03-19 Thread Stefan Agner
Use tegra124_(primary|overlay)_formats for Tegra124. Fixes: 511c7023cf23 ("drm/tegra: dc: Support more formats") Signed-off-by: Stefan Agner <ste...@agner.ch> --- drivers/gpu/drm/tegra/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/

Re: [RFC][PATCH 04/11] drm: Split the display info into static and dynamic parts

2018-02-28 Thread Stefan Agner
gt; change when I start clear out the entire dynamic state with memset(). Back when I introduced bus flags it was meant to be a static information. So for the general idea/drm_connector.h: Reviewed-by: Stefan Agner <ste...@agner.ch> [...] > drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c

Error handling when vmalloc is too small

2018-01-12 Thread Stefan Agner
Hi there, Error handling seems to be broken when allocating a framebuffer fails (see below). Observed on a Apalis TK1 (Tegra K1 with 2GB RAM, seems to allocate 240 MB for vmalloc) using Linux 4.15.0-rc7 connected to a 4K TV: [5.632659] [drm:drm_setup_crtcs] [5.636227]

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

2017-11-20 Thread Stefan Agner
DPMS property Stefan Agner (2): drm/fsl-dcu: avoid disabling pixel clock twice on suspend drm/fsl-dcu: enable IRQ before drm_atomic_helper_resume() drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 3 +-- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 5 - 2 files changed, 1 insertion

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

2017-11-20 Thread Stefan Agner
On 2017-11-20 11:18, Daniel Vetter wrote: > On Sat, Nov 18, 2017 at 01:23:28AM +0100, Stefan Agner wrote: >> Hi Daniel, > > What am I supposed to do with this pull request? drm-misc doesn't take > pull requests, and I'm not the drm top-level tree maintainer ... > >

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

2017-11-17 Thread Stefan Agner
changes up to 9fd99f4f3f5e13ce959900ae57d64b1bdb51d823: drm/fsl-dcu: enable IRQ before drm_atomic_helper_resume() (2017-11-14 17:19:24 +0100) Laurent Pinchart (1): drm/fsl-dcu: Don't set connector DPMS property Stefan Agner

[PATCH v2 2/2] drm/fsl-dcu: enable IRQ before drm_atomic_helper_resume()

2017-11-14 Thread Stefan Agner
Signed-off-by: Stefan Agner <ste...@agner.ch> Acked-by: Noralf Trønnes <nor...@tronnes.org> --- Rebased onto drm-misc-next-fixes drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/dri

[PATCH v2 1/2] drm/fsl-dcu: avoid disabling pixel clock twice on suspend

2017-11-14 Thread Stefan Agner
re_disable+0x8c/0x90 Remove clk_disable_unprepare call for pixel clock to avoid unbalanced clock disable on suspend. Fixes: 0a70c998d0c5 ("drm/fsl-dcu: enable pixel clock when enabling CRTC") Signed-off-by: Stefan Agner <ste...@agner.ch> Acked-by: Noralf Trønnes <nor...@tronnes.

Re: [PATCH v2 4/6] drm/fsl-dcu: Use drm_mode_config_helper_suspend/resume()

2017-11-14 Thread Stefan Agner
On 2017-11-14 16:40, Noralf Trønnes wrote: > Den 14.11.2017 16.23, skrev Stefan Agner: >> On 2017-11-10 19:06, Noralf Trønnes wrote: >>> Den 10.11.2017 17.39, skrev Stefan Agner: >>>> On 2017-11-09 17:49, Noralf Trønnes wrote: >>>>> Den 09.11.2017 15.34

Re: [PATCH v2 5/6] drm/tinydrm: Use drm_mode_config_helper_suspend/resume()

2017-11-14 Thread Stefan Agner
On 2017-11-06 20:18, Noralf Trønnes wrote: > Replace driver's code with the generic helpers that do the same thing. > Remove todo entry. This patch looks good to me: Reviewed-by: Stefan Agner <ste...@agner.ch> One question below though: > > Signed-off-by: Noralf Trønnes &

Re: [PATCH v2 4/6] drm/fsl-dcu: Use drm_mode_config_helper_suspend/resume()

2017-11-14 Thread Stefan Agner
On 2017-11-10 19:06, Noralf Trønnes wrote: > Den 10.11.2017 17.39, skrev Stefan Agner: >> On 2017-11-09 17:49, Noralf Trønnes wrote: >>> Den 09.11.2017 15.34, skrev Stefan Agner: >>>> On 2017-11-06 20:18, Noralf Trønnes wrote: >>>>> Replace driver's c

<    1   2   3   4   5   >