Re: [PATCH v2 0/9] drm/sun4i: Support multiple display pipelines

2017-04-23 Thread Maxime Ripard
On Fri, Apr 21, 2017 at 04:38:48PM +0800, Chen-Yu Tsai wrote: > Hi, > > This is v2 of the series previously named "drm/sun4i: Support two > display pipelines". As the name change suggests, the driver now > supports any number of pipelines, though the hardware only has > 2 or 3. > > Changes since

Re: linux-next: build failure after merge of the drm-misc tree

2017-04-23 Thread Stephen Rothwell
Hi all, On Fri, 21 Apr 2017 12:10:14 +1000 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/tee/tee_shm.c:87:2: error: unknown field 'kmap_atomic' specified in > initializer >

[PATCH v5 00/11] Initial Allwinner Display Engine 2.0 Support

2017-04-23 Thread Icenowy Zheng
This patchset is the initial patchset for Allwinner DE2 support. It contains the support of clocks in DE2 and the mixers in DE2. The SoC used to develop this patchset is V3s, as V3s is the simplest one of the SoCs that have DE2. (Allwinner V3s features only one mixer, although its clock control

[PATCH v5 07/11] drm/sun4i: Add compatible string for V3s display engine

2017-04-23 Thread Icenowy Zheng
Allwinner V3s features the new "Display Engine 2.0", which can now also be driven with our subdrivers in sun4i-drm. Add the compatible string for in sun4i_drv.c, in order to make the display engine and its components probed. Signed-off-by: Icenowy Zheng ---

[PATCH v5 09/11] ARM: dts: sun8i: add DE2 nodes for V3s SoC

2017-04-23 Thread Icenowy Zheng
Allwinner V3s SoC features a "Display Engine 2.0" with only one TCON which have RGB LCD output. Add device nodes for it as well as the TCON. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 87 1 file changed, 87

[PATCH v5 06/11] drm/sun4i: add support for Allwinner DE2 mixers

2017-04-23 Thread Icenowy Zheng
Allwinner have a new "Display Engine 2.0" in their new SoCs, which comes with mixers to do graphic processing and feed data to TCON, like the old backends and frontends. Add support for the mixer on Allwinner V3s SoC; it's the simplest one. Currently a lot of functions are still missing -- more

Re: [PATCH] drm/etnaviv: add thermal dependency

2017-04-23 Thread Eduardo Valentin
On Wed, Apr 19, 2017 at 08:11:16PM +0200, Arnd Bergmann wrote: > When CONFIG_THERMAL is enabled as a loadable module, and etnaviv is > built-in, we get a link error: > > drivers/gpu/drm/etnaviv/etnaviv_gpu.o: In function `etnaviv_gpu_bind': > etnaviv_gpu.c:(.text.etnaviv_gpu_bind+0x34): undefined

[PATCH v5 08/11] drm/sun4i: tcon: add support for V3s TCON

2017-04-23 Thread Icenowy Zheng
Allwinner V3s SoC features a TCON without channel 1. Add support for it. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/sun4i/sun4i_drv.c | 3 ++- drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 1/1] drm/radeon: check return vlaue of radeon_fence_emit

2017-04-23 Thread Pan Bian
From: Pan Bian Function radeon_fence_emit() returns -ENOMEM if there is no enough memory. And in this case, function radeon_ring_unlock_undo() rather than function radeon_ring_unlock_commit() should be called. However, in function radeon_test_create_and_emit_fence(), the

Re: [PATCH RFC 1/7] clk: samsung: Add enable/disable operation for PLL36XX clocks

2017-04-23 Thread Krzysztof Kozlowski
On Fri, Apr 21, 2017 at 07:19:45PM +0200, Sylwester Nawrocki wrote: > The existing enable/disable ops for PLL35XX are made more generic > and used also for PLL36XX. This fixes issues in the kernel with > PLL36XX PLLs when the PLL has not been already enabled by bootloader. > > Signed-off-by:

[PATCH v5 05/11] drm/sun4i: abstract a engine type

2017-04-23 Thread Icenowy Zheng
As we are going to add support for the Allwinner DE2 engine in sun4i-drm driver, we will finally have two types of display engines -- the DE1 backend and the DE2 mixer. They both do some display blending and feed graphics data to TCON, so I choose to call them both "engine" here. Abstract the

[PATCH v5 01/11] dt-bindings: add binding for the Allwinner DE2 CCU

2017-04-23 Thread Icenowy Zheng
Allwinner "Display Engine 2.0" contains some clock controls in it. In order to add them as clock drivers, we need a device tree binding. Add the binding here. Also add the device tree binding headers. Signed-off-by: Icenowy Zheng --- Changes in v5: - Moved dt-binding headers

[PATCH v5 03/11] dt-bindings: add bindings for DE2 on V3s SoC

2017-04-23 Thread Icenowy Zheng
Allwinner V3s SoC have a display engine which have a different pipeline with older SoCs. Add document for it (new compatibles and the new "mixer" part). Signed-off-by: Icenowy Zheng Acked-by: Rob Herring --- Changes in v4: - Removed the refactor at TCON

[PATCH v5 11/11] [DO NOT MERGE] ARM: dts: sun8i: enable LCD panel of Lichee Pi Zero

2017-04-23 Thread Icenowy Zheng
A 480x272 QiaoDian QD43003C0-40-7LED panel is available from Lichee Pi. This commit connects this panel to Lichee Pi Zero. Lichee Pi also provides a 800x480 panel without accurate model number, so do not merge this patch. It will finally come as device tree overlay. Signed-off-by: Icenowy Zheng

[PATCH v5 02/11] clk: sunxi-ng: add support for DE2 CCU

2017-04-23 Thread Icenowy Zheng
The "Display Engine 2.0" in Allwinner newer SoCs contains a clock management unit for its subunits, like the DE CCU in A80. Add a sunxi-ng style driver for it. Signed-off-by: Icenowy Zheng --- Changes in v5: - Removed dt-bindings headers (they're now in patch 1). Changes in v4:

[PATCH v5 04/11] drm/sun4i: return only planes for layers created

2017-04-23 Thread Icenowy Zheng
As we are going to add support for the Allwinner DE2 Mixer in sun4i-drm driver, we will finally have two types of layers. Each layer is bound to a drm_plane that is CRTC-specific, so we create them when initializing CRTC (calling sun4i_layers_init, which will be generalized in next patch). The

Re: [Nouveau] [PATCH v4 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

2017-04-23 Thread Karol Herbst
2017-04-22 11:24 GMT+02:00 Oscar Salvador : > This patch introduces the nouveau_hwmon_ops structure, sets up > .is_visible and .read_string operations and adds all the functions > for these operations. > This is also a preparation for the next patches, where most of

[PATCH v5 10/11] ARM: dts: sun8i: add pinmux for LCD pins of V3s SoC

2017-04-23 Thread Icenowy Zheng
Allwinner V3s SoC features a set of pins that have functionality of RGB LCD, the pins are at different pin ban than other SoCs. Add pinctrl node for them. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 9 + 1 file changed, 9 insertions(+) diff

Re: [PATCH RFC 3/7] clk: samsung: exynos542x: Add EPLL rate table

2017-04-23 Thread Krzysztof Kozlowski
On Fri, Apr 21, 2017 at 07:19:47PM +0200, Sylwester Nawrocki wrote: > A specific clock rate table is added for EPLL so it is possible > to set frequency of the EPLL output clock as multiple of various > audio sampling rates. > > Signed-off-by: Sylwester Nawrocki > --- >

Re: [PATCH RFC 4/7] drm: exynos: Add driver for HDMI audio interface

2017-04-23 Thread Krzysztof Kozlowski
On Fri, Apr 21, 2017 at 07:19:48PM +0200, Sylwester Nawrocki wrote: > The hdmi-codec interface added in this patch is required to properly > support HDMI audio. Currently the audio part of the SoC internal > HDMI transmitter is configured with fixed values, which makes HDMI > audio working by

Re: [PATCH RFC 2/7] clk: samsung: Add definitions of some audio related clocks

2017-04-23 Thread Krzysztof Kozlowski
On Fri, Apr 21, 2017 at 07:19:46PM +0200, Sylwester Nawrocki wrote: > This patch adds missing definitions of mux clocks required for using > EPLL as the audio subsystem root clock on exynos5420/exynos5422 SoCs. > > Signed-off-by: Sylwester Nawrocki > --- >

[PATCH 1/1] drm/radeon: check return value of radeon_ring_lock

2017-04-23 Thread Pan Bian
From: Pan Bian Function radeon_ring_lock() returns an errno on failure, and its return value should be validated. However, in functions r420_cp_errata_init() and r420_cp_errata_fini(), its return value is not checked. This patch adds the checks. Signed-off-by: Pan Bian

[PATCH] drm/nouveau/kms: Increase max retries in scanout position queries.

2017-04-23 Thread Mario Kleiner
So far we only allowed for 1 retry and just failed the query - and thereby high precision vblank timestamping - if we did not get a reasonable result, as such a failure wasn't considered all too horrible. There are a few NVidia gpu models out there which may need a bit more than 1 retry to get a

[PATCH 2/2] drm/radeon: Make display watermark calculations more accurate

2017-04-23 Thread Mario Kleiner
Avoid big roundoff errors in scanline/hactive durations for high pixel clocks, especially for >= 500 Mhz, and thereby program more accurate display fifo watermarks. This is a port of the corresponding amdgpu patch. Implemented for DCE 4,6,8. Tested on Evergreen/DCE-4 with Radeon HD-5770.

[PATCH 1/2] drm/radeon: Avoid overflows/divide-by-zero in latency_watermark calculations.

2017-04-23 Thread Mario Kleiner
At dot clocks > approx. 250 Mhz, some of these calcs will overflow and cause miscalculation of latency watermarks, and for some overflows also divide-by-zero driver crash. Make calcs more overflow resistant. This is a direct port of the corresponding patch from amdgpu-kms, copy-paste for cik from

Port of amdgpu watermark improvements to radeon-kms.

2017-04-23 Thread Mario Kleiner
Hi, a direct port of the patches we already have in amdgpu, for completeness. These are tested on an old HD-5770, DCE4 only. -mario ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 1/2] drm/amdgpu: Add missing lb_vblank_lead_lines setup to DCE-6 path.

2017-04-23 Thread Mario Kleiner
This apparently got lost when implementing the new DCE-6 support and would cause failures in pageflip scheduling and timestamping. Signed-off-by: Mario Kleiner Cc: Alex Deucher Cc: sta...@vger.kernel.org ---

[PATCH 1/2] drm/fb-helper: Make fbdev inherit the crtc's rotation

2017-04-23 Thread Hans de Goede
From: Ville Syrjala If a connector added through drm_fb_helper_add_one_connector() has a crtc attached and that crtc has a rotation configured make the fbdev inherit the crtc's rotation. This is useful on e.g. some tablets which have their lcd panel mounted upside

[PATCH 2/2] drm/i915: Make get_initial_plane_config also get the initial rotation config

2017-04-23 Thread Hans de Goede
From: Ville Syrjala When retrieving the initial settings / mode from the hardware also retrieve the initial rotation config. Together with "drm/fb-helper: Make fbdev inherit the crtc's rotation" this will make the fbdev inherit the initial rotation. This is

[PATCH 1/2] drm: Make fbdev inherit the crtc's initial rotation

2017-04-23 Thread Hans de Goede
Hi All, So I recently bought a (second-hand) Bay Trail tablet which has its LCD mounted upside-down. As such I've ported Ville Syrjala's patches to deal with this to current mainline and I'm hereby posting them upstream for merging. These patches fix the kernel-console as well as the boot-splash

[Bug 100761] `radeon_ib_ring_tests` takes 0.5 s on resume

2017-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100761 Paul Menzel changed: What|Removed |Added CC|

[Bug 100761] `radeon_ib_ring_tests` takes 0.5 s on resume

2017-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100761 Bug ID: 100761 Summary: `radeon_ib_ring_tests` takes 0.5 s on resume Product: DRI Version: DRI git Hardware: Other OS: All Status: NEW Severity: normal