[PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-10 Thread Andrey Lebedev
A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). The support for such procedure is ported from u-boot and follows u-boot naming convention: SUN6I*

Re: [PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-12 Thread Andrey Lebedev
changes too, right? Hm, I agree. I think it would be reasonable to include LVDS0/1 pins and sample (but disabled) lvds panel, connected to tcon to arch/arm/boot/dts/sun7i-a20.dtsi. Does that make sense to you? Would you expect dts changes in the same patch or separate? P.S. This is my first patch

[PATCH v2 1/2] ARM: sun7i: Support LVDS output on Allwinner A20

2020-02-13 Thread andrey . lebedev
From: Andrey Lebedev A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_t

Re: [PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-13 Thread Andrey Lebedev
to contemporary software. > > and sample (but disabled) lvds panel, > > That's good for the sake of the example, but it shouldn't be in the > same patch, it won't be merged. I jave just submitted version 2 of the patches - set of 2 patches this time. Addressed your comment

[PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-13 Thread andrey . lebedev
From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 45 +--- 1 file changed, 42 insertions(+), 3 deletions

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
On Thu, Feb 13, 2020 at 10:43:04AM +0100, Maxime Ripard wrote: > On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebe...@gmail.com wrote: > > From: Andrey Lebedev > > > > Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and > > provide sample LVD

[PATCH v3 2/3] drm/sun4i: tcon: Support LVDS output on Allwinner A20

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_t

[PATCH v3 3/3] ARM: dts: sun7i: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions

[PATCH v3 1/3] drm/sun4i: tcon: Introduce LVDS setup routine setting

2020-02-14 Thread Andrey Lebedev
From: Andrey Lebedev Different sunxi flavors require slightly different sequence for enabling LVDS output. This allows to differentiate between them. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 68 -- drivers/gpu/drm/sun4i/sun4i_tcon.h

Re: [PATCH 1/1] Support LVDS output on Allwinner A20

2020-02-14 Thread Andrey Lebedev
opengl API isn't supported in OSS drivers yet (even though app only renders 2d graphics). Hopefully that wasn't too much complaining for you :) If you have any insight on possible causes or attack vectors on any of these, that would help a lot. Also, please feel free

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-17 Thread Andrey Lebedev
On Fri, Feb 14, 2020 at 09:53:51AM +0100, Maxime Ripard wrote: > On Fri, Feb 14, 2020 at 10:43:58AM +0200, Andrey Lebedev wrote: > > On Fri, Feb 14, 2020 at 08:52:18AM +0100, Maxime Ripard wrote: > > > > > This will create a spurious warning message for TCON1, since w

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-17 Thread Andrey Lebedev
flag for tcon0 Can you give me an idea how that compatible might look like? tcon0: lcd-controller@1c0c000 { compatible = "allwinner,sun7i-a20-tcon", "allwinner,lvds"; or tcon0: lcd-controller@1c0c000 { compatible = &quo

Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-19 Thread Andrey Lebedev
ompatible in > sun4i_tcon_of_table, and that will do Aha! Does this look good to you? >From 4ad2978e404c63d4cca1b7890bc5bdd4d1e8965d Mon Sep 17 00:00:00 2001 From: Andrey Lebedev Date: Tue, 18 Feb 2020 19:47:33 +0200 Subject: [PATCH] Mark tcon0 to be the only tcon capable of LVDS on sun7i

PATCH v4

2020-02-20 Thread Andrey Lebedev
Address all outstanding review comments. Maxime, please confirm I've got "document the new compatibles" part right. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 4/5] dt-bindings: display: sun4i: New compatibles for A20 tcons

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Document new compatibles used to differentiate between timing controllers on A20 (sun7i) Signed-off-by: Andrey Lebedev --- .../bindings/display/allwinner,sun4i-a10-tcon.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree

[PATCH 2/5] drm/sun4i: tcon: Separate quirks for tcon0 and tcon1 on A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Timing controllers on A20 are not equivalent: tcon0 on A20 supports LVDS output and tcon1 does not. Separate the capabilities by introducing independent set of quirks for each of the tcons. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 ++ 1

[PATCH 5/5] drm/sun4i: tcon: Support LVDS output on Allwinner A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev A20 SoC (found in Cubieboard 2 among others) requires different LVDS set up procedure than A33. Timing controller (tcon) driver only implements sun6i-style procedure, that doesn't work on A20 (sun7i). Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_t

[PATCH 1/5] drm/sun4i: tcon: Introduce LVDS setup routine setting

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Different sunxi flavors require slightly different sequence for enabling LVDS output. This allows to differentiate between them. Signed-off-by: Andrey Lebedev --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 68 -- drivers/gpu/drm/sun4i/sun4i_tcon.h

[PATCH 3/5] ARM: dts: sun7i: Add LVDS panel support on A20

2020-02-20 Thread Andrey Lebedev
From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 30 ++ 1 file changed, 26 insertions(+), 4 deletions

Re: [PATCH 1/5] drm/sun4i: tcon: Introduce LVDS setup routine setting

2020-02-21 Thread Andrey Lebedev
LVDS-setup-routine-setting.patch has no obvious style problems and is ready for submission. In any case, thanks for correcting it! -- Andrey Lebedev aka -.- . -.. -.. . .-. Software engineer Homepage: http://lebedev.lt/ ___ dri-devel mailing list dri-devel@lis

[PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-18 Thread Andrey Lebedev
From: Andrey Lebedev Some pp or gp jobs can be successfully repeated even after they time outs. Introduce lima module parameter to specify number of times a job can hang before being dropped. Signed-off-by: Andrey Lebedev --- Hello, This patch allows to work around a freezing problem as

[PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-18 Thread Andrey Lebedev
From: Andrey Lebedev Some pp or gp jobs can be successfully repeated even after they time outs. Introduce lima module parameter to specify number of times a job can hang before being dropped. Signed-off-by: Andrey Lebedev --- Changed type of lima_job_hang_limit to unsigned int. drivers/gpu

[PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-18 Thread Andrey Lebedev
From: Andrey Lebedev Some pp or gp jobs can be successfully repeated even after they time outs. Introduce lima module parameter to specify number of times a job can hang before being dropped. Signed-off-by: Andrey Lebedev --- Fixes for the embarrassing build error Reported-by: kernel test

[PATCH] drm/lima: Expose job_hang_limit module parameter

2020-06-22 Thread Andrey Lebedev
From: Andrey Lebedev Some pp or gp jobs can be successfully repeated even after they time outs. Introduce lima module parameter to specify number of times a job can hang before being dropped. Signed-off-by: Andrey Lebedev --- Now all types are correct (uint). drivers/gpu/drm/lima/lima_drv.c

Re: [PATCH] drm/lima: Expose job_hang_limit module parameter

2020-07-07 Thread Andrey Lebedev
Hello guys, What is the status of this patch? Was this committed to any branch? Is it pending for merge to the mainline? Do I have to do anything in order to make it mergeable? On 6/19/20 10:58 AM, Andrey Lebedev wrote: From: Andrey Lebedev Some pp or gp jobs can be successfully repeated

Re: [PATCH 5/5] drm/sun4i: tcon: Support LVDS output on Allwinner A20

2020-04-02 Thread Andrey Lebedev
Hello Maxime, Since Linus' merge window is now open, do I have to do anything to get this merged into the mainline kernel? On 2/20/20 7:25 PM, Maxime Ripard wrote: On Wed, Feb 19, 2020 at 08:08:58PM +0200, Andrey Lebedev wrote: From: Andrey Lebedev A20 SoC (found in Cubieboard 2