[PATCH v2 17/26] drm: sun4i: Add DT bindings documentation

2016-02-03 Thread Maxime Ripard
next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/d38c1394/attachment-0001.sig>

[PATCH v2 11/26] ARM: sun5i: Add DRAM gates

2016-02-03 Thread Maxime Ripard
}; > > diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi > > index 0840612b5ed6..c72d94228915 100644 > > --- a/arch/arm/boot/dts/sun5i.dtsi > > +++ b/arch/arm/boot/dts/sun5i.dtsi > > @@ -338,6 +338,25 @@ > > clock

[PATCH v2 10/26] ARM: sun5i: a13: Add display and TCON clocks

2016-02-03 Thread Maxime Ripard
e properly tested, they can definitely be moved to sun5i.dtsi. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/73dab241/attachment.sig>

[PATCH v2 07/26] clk: sunxi: Add TCON channel1 clock

2016-02-03 Thread Maxime Ripard
4i_a10_tcon_ch1_lock; > > + > > + sclk1 = clk_register_composite(NULL, sclk1_name, &sclk2_name, 1, > > + NULL, NULL, > > + &sclk1_div->hw, &clk_divider_ops, > > + &sclk1_gate->hw, &clk_gate_ops, > > + 0); > > + if (IS_ERR(sclk1)) { > > + pr_err("%s: Couldn't register the clock\n", sclk1_name); > > + goto free_sclk1_gate; > > + } > > + > > + ret = of_clk_add_provider(node, of_clk_src_simple_get, sclk1); > > + if (WARN_ON(ret)) > > + goto free_sclk1; > > + > > + return; > > + > > +free_sclk1: > > + clk_unregister_composite(sclk1); > > +free_sclk1_gate: > > + kfree(sclk1_gate); > > +free_sclk1_mux: > > + kfree(sclk1_div); > > +free_sclk2: > > + clk_unregister(sclk2); > > +free_sclk2_div: > > + kfree(sclk2_div); > > +free_sclk2_gate: > > + kfree(sclk2_gate); > > +free_sclk2_mux: > > + kfree(sclk2_mux); > > Cleanup after of_io_request_and_map? Indeed. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/a23789f0/attachment.sig>

[PATCH v2 06/26] clk: sunxi: Add PLL3 clock

2016-02-03 Thread Maxime Ripard
t register the clock\n", clk_name); > > + goto err_free_mult; > > + } > > + > > + ret = of_clk_add_provider(node, of_clk_src_simple_get, clk); > > + if (WARN_ON(ret)) > > Any particular reason for WARN_ON instead of pr_err like above? I guess not, I'll change that. > > > + goto err_clk_unregister; > > + > > + return; > > + > > +err_clk_unregister: > > + clk_unregister_composite(clk); > > +err_free_mult: > > + kfree(mult); > > +err_free_gate: > > + kfree(gate); > > Clean up after of_io_request_and_map(), otherwise Ack > > Acked-by: Chen-Yu Tsai Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/c7f23515/attachment-0001.sig>

[PATCH v2 05/26] clk: sunxi: Add display and TCON0 clocks driver

2016-02-03 Thread Maxime Ripard
gt; + if (data->has_div) > > + kfree(div); > > +free_gate: > > + kfree(gate); > > +free_mux: > > + kfree(mux); > > Cleanup after of_io_request_and_map()? Hmm, indeed... > > > +} > > + > > +static struct sun4i_a10_display_clk_data sun4i_a10_tcon_ch0_data = { > > + .has_rst= true, > > + .parents= 4, > > + .offset_en = 31, > > + .offset_rst = 29, > > My datasheets (A10 v1.5, A20 v1.4), say bit 30 for LCD0 ch0 reset. > > A13 and R8 manuals do not list this clock, but A10s does, which has > bit 30 for LCD reset and bit 29 for TV encoder reset. > > I suggest changing has_rst to int, and for sun5i variant, have > has_rst = 2, reset_cells = 1, for 2 separate reset controls. > The tcon and tv encoder bits of the DTSI should be updated as > well. > > I assume your tests work because U-boot already de-asserted the > resets (both if you're using composite output). You're right, I'll fix it as you suggested. > > + .offset_mux = 24, > > + .width_mux = 2, > > +}; > > + > > +static void __init sun4i_a10_tcon_ch0_setup(struct device_node *node) > > +{ > > + sun4i_a10_display_init(node, &sun4i_a10_tcon_ch0_data); > > +} > > +CLK_OF_DECLARE(sun4i_a10_tcon_ch0, "allwinner,sun4i-a10-tcon-ch0-clk", > > + sun4i_a10_tcon_ch0_setup); > > + > > +static struct sun4i_a10_display_clk_data sun4i_a10_display_data = { > > + .has_div= true, > > Missing .has_rst = true. Indeed > > + .parents= 3, > > + .offset_en = 31, > > + .offset_rst = 30, > > + .offset_mux = 24, > > + .offset_div = 0, > > This is already implied. Because the structure would already by initialised to 0? Yeah, true, but I wanted to make that explicit that the div offset is actually 0, and not something that got forgotten. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/f5f4063e/attachment.sig>

[PATCH v2 17/26] drm: sun4i: Add DT bindings documentation

2016-02-03 Thread Maxime Ripard
ists.infradead.org/pipermail/linux-arm-kernel/2015-October/382115.html Has that changed? > > +}; > > + > > +tve0: tv-encoder at 01c0a000 { > > + compatible = "allwinner,sun4i-a10-tv-encoder"; > > + reg = <0x01c0a000 0x1000>; > > + clocks = <&ahb_gates 34>; > > + > > + port { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + tve0_in_tcon0: endpoint at 0 { > > + reg = <0>; > > I would drop the reg where you only have 1 node for ports or endpoints. Ok Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/441bf2b8/attachment.sig>

[PATCH v10 13/13] clk: mediatek: remove hdmitx_dig_cts from TOP clocks

2016-02-03 Thread Philipp Zabel
The hdmitx_dig_cts clock signal is not a child of tvdpll_445p5m, but is routed out of the HDMI PHY module. Signed-off-by: Philipp Zabel --- drivers/clk/mediatek/clk-mt8173.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt8173.c b/drivers/clk/mediatek/clk-mt8173.c

[PATCH v10 12/13] dt-bindings: hdmi-connector: add DDC I2C bus phandle documentation

2016-02-03 Thread Philipp Zabel
Add an optional ddc-i2c-bus phandle property that points to an I2C master controller that handles the connector DDC pins. Signed-off-by: Philipp Zabel Acked-by: Rob Herring --- Documentation/devicetree/bindings/display/connector/hdmi-connector.txt | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH v10 11/13] clk: mediatek: Add hdmi_ref HDMI PHY PLL reference clock output

2016-02-03 Thread Philipp Zabel
The configurable hdmi_ref output of the PLL block is derived from the tvdpll_594m clock signal via a configurable PLL post-divider. It is used as the PLL reference input to the HDMI PHY module. Signed-off-by: Philipp Zabel Acked-by: James Liao --- drivers/clk/mediatek/clk-mt8173.c | 5

[PATCH v10 10/13] clk: mediatek: make dpi0_sel propagate rate changes

2016-02-03 Thread Philipp Zabel
This mux is supposed to select a fitting divider after the PLL is already set to the correct rate. Signed-off-by: Philipp Zabel Acked-by: James Liao --- drivers/clk/mediatek/clk-mt8173.c | 2 +- drivers/clk/mediatek/clk-mtk.h| 7 +-- 2 files changed, 6 insertions(+), 3 deletions(-) dif

[PATCH v10 09/13] arm64: dts: mt8173: Add HDMI related nodes

2016-02-03 Thread Philipp Zabel
From: CK Hu This patch adds the device nodes for the HDMI encoder, HDMI PHY, and HDMI CEC modules. Signed-off-by: CK Hu Signed-off-by: Cawa Cheng Signed-off-by: Jie Qiu Signed-off-by: Daniel Kurtz Signed-off-by: Philipp Zabel --- Changes since v9: - remove flt_5v pin setup - disable cec,

[PATCH v10 08/13] arm64: dts: mt8173: Add display subsystem related nodes

2016-02-03 Thread Philipp Zabel
From: CK Hu This patch adds the device nodes for the DISP function blocks comprising the display subsystem. Signed-off-by: CK Hu Signed-off-by: Cawa Cheng Signed-off-by: Jie Qiu Signed-off-by: Daniel Kurtz Signed-off-by: Philipp Zabel --- Changes since v9: - remove dpi0 output port and end

[PATCH v10 07/13] drm/mediatek: enable hdmi output control bit

2016-02-03 Thread Philipp Zabel
From: Jie Qiu MT8173 HDMI hardware has a output control bit to enable/disable HDMI output. Because of security reason, so this bit can ONLY be controlled in ARM supervisor mode. Now the only way to enter ARM supervisor is the ARM trusted firmware. So atf provides a API for HDMI driver to call to

[PATCH v10 06/13] drm/mediatek: Add HDMI support

2016-02-03 Thread Philipp Zabel
From: Jie Qiu This patch adds drivers for the HDMI bridge connected to the DPI0 display subsystem function block, for the HDMI DDC block, and for the HDMI PHY to support HDMI output. Signed-off-by: Jie Qiu Signed-off-by: Philipp Zabel --- Changes since v9: - fix no signal after suspend/resume

[PATCH v10 05/13] dt-bindings: drm/mediatek: Add Mediatek HDMI dts binding

2016-02-03 Thread Philipp Zabel
Add the device tree binding documentation for Mediatek HDMI, HDMI PHY and HDMI DDC devices. Signed-off-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/display/mediatek/mediatek,hdmi.txt| 148 + 1 file changed, 148 insertions(+) create mode 100644 Documentation

[PATCH v10 04/13] drm/mediatek: Add DPI sub driver

2016-02-03 Thread Philipp Zabel
From: Jie Qiu Add DPI connector/encoder to support HDMI output via the attached HDMI bridge. Signed-off-by: Jie Qiu Signed-off-by: Philipp Zabel --- Changes since v9: - whitespace fixes --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_dpi.c | 757 ++

[PATCH v10 03/13] drm/mediatek: Add DSI sub driver

2016-02-03 Thread Philipp Zabel
From: CK Hu This patch add a drm encoder/connector driver for the MIPI DSI function block of the Mediatek display subsystem and a phy driver for the MIPI TX D-PHY control module. Signed-off-by: Jitao Shi Signed-off-by: Philipp Zabel -- Changes since v9: - don't crash on cleanup if the connect

[PATCH v10 02/13] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2016-02-03 Thread Philipp Zabel
From: CK Hu This patch adds an initial DRM driver for the Mediatek MT8173 DISP subsystem. It currently supports two fixed output streams from the OVL0/OVL1 sources to the DSI0/DPI0 sinks, respectively. Signed-off-by: CK Hu Signed-off-by: YT Shen Signed-off-by: Daniel Kurtz Signed-off-by: Bibb

[PATCH v10 01/13] dt-bindings: drm/mediatek: Add Mediatek display subsystem dts binding

2016-02-03 Thread Philipp Zabel
From: CK Hu Add device tree binding documentation for the display subsystem in Mediatek MT8173 SoCs. Signed-off-by: CK Hu Signed-off-by: Philipp Zabel Acked-by: Rob Herring --- .../bindings/display/mediatek/mediatek,disp.txt| 203 + .../bindings/display/mediatek/media

[PATCH v10 00/13] MT8173 DRM support

2016-02-03 Thread Philipp Zabel
Hi, this MT8173 DRM update gets rebased onto v4.5-rc1, fixes a few issues and addresses review comments from the last round. The custom GEM creation IOCTL patch has been dropped and dmabuf sg import support has been added. The RDMA code has been moved into its own driver so it can grow into a more

[PATCH 8/8] drm/i915: Add more Haswell OA metric sets

2016-02-03 Thread Robert Bragg
This adds 'compute', 'compute extended', 'memory reads', 'memory writes' and 'sampler balance' metric sets for Haswell. Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/i915_oa_hsw.c | 513 +++-- 1 file changed, 497 insertions(+), 16 deletions(-) diff --git a

[PATCH 7/8] drm/i915: add oa_event_min_timer_exponent sysctl

2016-02-03 Thread Robert Bragg
The minimal sampling period is now configurable via a dev.i915.oa_min_timer_exponent sysctl parameter. Following the precedent set by perf, the default is the minimum that won't (on its own) exceed the default kernel.perf_event_max_sample_rate default of 10 samples/s. Signed-off-by: Robert Br

[PATCH 6/8] drm/i915: Add dev.i915.perf_event_paranoid sysctl option

2016-02-03 Thread Robert Bragg
Consistent with the kernel.perf_event_paranoid sysctl option that can allow non-root users to access system wide cpu metrics, this can optionally allow non-root users to access system wide OA counter metrics from Gen graphics hardware. Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/i915_dr

[PATCH 5/8] drm/i915: advertise available metrics via sysfs

2016-02-03 Thread Robert Bragg
Each metric set is given a sysfs entry like: /sys/class/drm/card0/metrics//id This allows userspace to enumerate the specific sets that are available for the current system. The 'id' file contains an unsigned integer that can be used to open the associated metric set via DRM_IOCTL_I915_PERF_OPEN.

[PATCH 4/8] drm/i915: Add i915 perf event for Haswell OA unit

2016-02-03 Thread Robert Bragg
Gen graphics hardware can be set up to periodically write snapshots of performance counters into a circular buffer via its Observation Architecture and this patch exposes that capability to userspace via the i915 perf interface. Cc: Chris Wilson Signed-off-by: Robert Bragg Signed-off-by: Zhenyu

[PATCH 3/8] drm/i915: Add 'render basic' Haswell OA unit config

2016-02-03 Thread Robert Bragg
Adds a static OA unit, MUX + B Counter configuration for basic render metrics on Haswell. This is autogenerated from an internal XML description of metric sets. Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/Makefile | 3 +- drivers/gpu/drm/i915/i915_drv.h| 14 drivers/gpu

[PATCH 2/8] drm/i915: rename OACONTROL GEN7_OACONTROL

2016-02-03 Thread Robert Bragg
OACONTROL changes quite a bit for gen8, with some bits split out into a per-context OACTXCONTROL register. Rename now before add more gen7 OA registers Signed-off-by: Robert Bragg --- drivers/gpu/drm/i915/i915_cmd_parser.c | 4 ++-- drivers/gpu/drm/i915/i915_reg.h| 2 +- 2 files changed,

[PATCH 1/8] drm/i915: Add i915 perf infrastructure

2016-02-03 Thread Robert Bragg
Adds base i915 perf infrastructure for Gen performance metrics. This adds a DRM_IOCTL_I915_PERF_OPEN ioctl that takes an array of uint64 properties to configure a stream of metrics and returns a new fd usable with standard VFS system calls including read() to read typed and sized records; ioctl()

[PATCH 0/8] Enable Gen 7 Observation Architecture

2016-02-03 Thread Robert Bragg
Compared to the last revision, this is just rebased on drm-intel-nightly Robert Bragg (8): drm/i915: Add i915 perf infrastructure drm/i915: rename OACONTROL GEN7_OACONTROL drm/i915: Add 'render basic' Haswell OA unit config drm/i915: Add i915 perf event for Haswell OA unit drm/i915: adve

[PATCH v9 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-02-03 Thread Daniel Kurtz
Hi Jitao, Looks really good. Just a couple of tiny things... On Wed, Feb 3, 2016 at 4:48 PM, Jitao Shi wrote: > > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi > --- [snip] > +static int ps8640_get_modes(struct drm_connector *connector) >

BUG caused by "Use new drm_fb_helper functions" series

2016-02-03 Thread Michel Dänzer
On 03.02.2016 03:38, Peter Hurley wrote: > On 02/01/2016 09:20 PM, Archit Taneja wrote: >> Hi Peter, >> >> On 02/02/2016 02:07 AM, Peter Hurley wrote: >>> Hi Archit, >>> >>> Just booting 4.4-rc5+, I got this splat [1] >>> At first glance, this appears to be a simple fix. >> >> Thanks for sharing th

[PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-02-03 Maarten Lankhorst : > Op 03-02-16 om 14:25 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > Turn sync_fence_info into __u64 type enable us to extend the struct in the > > future without breaking the ABI. > > > > v2: use type __u64 for fence_info > > > > v3: fix c

[PATCH v8.1 1/2] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-02-03 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v8.1: - Removed the unused "drm_encoder_slave.h" head file. (Jean) Changes in v8: - Don't check whether encoder output fo

[Bug 92790] Radeon.mst error

2016-02-03 Thread bugzilla-dae...@freedesktop.org
... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/745d2f21/attachment.html>

[PATCH v8 1/2] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-02-03 Thread Yakir Yang
Hi Jean, Sorry about miss your comments :) On 01/29/2016 03:20 PM, Jean-Francois Moine wrote: > On Fri, 29 Jan 2016 14:47:39 +0800 > Yakir Yang wrote: > >> The Innosilicon HDMI is a low power HDMI 1.4 transmitter >> IP, and it have been integrated on some rockchip CPUs >> (like RK3036, RK312x).

[PATCH v9 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-02-03 Thread Jitao Shi
This patch adds drm_bridge driver for parade DSI to eDP bridge chip. Signed-off-by: Jitao Shi --- Changes since v8: - Change ps8640_regw to ps8640_write_bytes - Fine tune ps8640 power squence - Cache the panel edid avoid power on ps8640 every ps8640_get_modes - Replace devm_regulator_* api wi

[PATCH v9 1/2] Documentation: bridge: Add documentation for ps8640 DT properties

2016-02-03 Thread Jitao Shi
Add documentation for DT properties supported by ps8640 DSI-eDP converter. Signed-off-by: Jitao Shi Acked-by: Rob Herring Reviewed-by: Philipp Zabel --- Changes since v8: - No change --- .../devicetree/bindings/display/bridge/ps8640.txt | 43 1 file changed, 43 inserti

[PATCH v3 01/10] drm/hisilicon: Add device tree binding for hi6220 display subsystem

2016-02-03 Thread Xinliang Liu
On 1 February 2016 at 23:10, Rob Herring wrote: > On Sat, Jan 30, 2016 at 04:54:26PM +0800, Xinliang Liu wrote: >> Add ADE display controller binding doc. >> Add DesignWare DSI Host Controller v1.20a binding doc. >> >> Signed-off-by: Xinliang Liu >> >> v3: >> - Make ade as the drm master node. >>

[pull] radeon and amdgpu drm-fixes-4.5

2016-02-03 Thread Alex Deucher
Hi Dave, Radeon and amdgpu fixes for 4.5. Highlights: - fix and enable iceland/topaz support - handle WC on platforms that don't support it The following changes since commit d8b8eb829d4c30cd1e41a1ddc308a0e7c22169da: Merge branch 'drm-rockchip-next-fixes-2016-01-22' of https://github.com/ma

[PATCH v2 0/3] drm: adv7511: edid read fixes

2016-02-03 Thread Wolfram Sang
was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/526245b1/attachment.sig>

[PATCH 1/3] drm: add helper to check for wc memory support

2016-02-03 Thread Oded Gabbay
On Wed, Feb 3, 2016 at 3:53 PM, Alex Deucher wrote: > On Wed, Feb 3, 2016 at 3:17 AM, Oded Gabbay wrote: >> On Tue, Feb 2, 2016 at 5:07 PM, Alex Deucher >> wrote: >>> On Tue, Feb 2, 2016 at 7:01 AM, Oded Gabbay >>> wrote: On Mon, Feb 1, 2016 at 7:01 PM, Alex Deucher wrote: > >

[PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-03 Thread Maarten Lankhorst
Op 03-02-16 om 14:25 schreef Gustavo Padovan: > From: Gustavo Padovan > > Turn sync_fence_info into __u64 type enable us to extend the struct in the > future without breaking the ABI. > > v2: use type __u64 for fence_info > > v3: fix commit message to reflect the v2 change > > Signed-off-by: Gusta

[Bug 93988] Amdgpu, Tonga R9 380: ring 0 test failed (scratch(0xC040)=0xCAFEDEAD)

2016-02-03 Thread bugzilla-dae...@freedesktop.org
xt part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/a9b39fa5/attachment.html>

[Bug 93988] Amdgpu, Tonga R9 380: ring 0 test failed (scratch(0xC040)=0xCAFEDEAD)

2016-02-03 Thread bugzilla-dae...@freedesktop.org
xt part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/be6954b7/attachment.html>

[PATCH v9 02/14] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Mittwoch, den 03.02.2016, 01:12 +0800 schrieb Daniel Kurtz: [...] > > +int mtk_drm_crtc_create(struct drm_device *drm_dev, > > + const enum mtk_ddp_comp_id *path, unsigned int > > path_len) > > +{ [...] > > + for (i = 0; i < mtk_crtc->ddp_comp_nr; i++) {

[PATCH v9 02/14] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Mittwoch, den 20.01.2016, 14:23 -0800 schrieb Daniel Kurtz: > Hi Philipp, > > This driver is looking very good now to me. > > Sorry for the delay reviewing. Some comments inline below. [...] > > diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c > > b/drivers/gpu/drm/mediatek/

[PATCH 7/7] drm/fsl-dcu: use mode flags for hsync/vsync pixelclk polarity

2016-02-03 Thread Stefan Agner
On 2016-02-03 06:04, Thierry Reding wrote: > On Wed, Jan 27, 2016 at 06:46:50PM -0800, Stefan Agner wrote: > [...] >> On 2015-11-18 18:42, Stefan Agner wrote: > [...] >> > diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c > [...] >> > @@ -89,6 +91,15 @@ static void fsl_dcu_drm_crtc_mode_set_n

[PATCH 7/7] drm/fsl-dcu: use mode flags for hsync/vsync pixelclk polarity

2016-02-03 Thread Stefan Agner
On 2016-02-03 06:00, Thierry Reding wrote: > On Wed, Jan 27, 2016 at 06:46:50PM -0800, Stefan Agner wrote: > [...] >> > diff --git a/drivers/gpu/drm/panel/panel-simple.c >> > b/drivers/gpu/drm/panel/panel-simple.c >> > index f97b73e..fa68b56 100644 >> > --- a/drivers/gpu/drm/panel/panel-simple.c >>

[PATCH 7/7] drm/fsl-dcu: use mode flags for hsync/vsync pixelclk polarity

2016-02-03 Thread Thierry Reding
o the mode flags changes in the remainder of the patch. Thierry ------ next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/a88e090e/attachment.sig>

[PATCH 7/7] drm/fsl-dcu: use mode flags for hsync/vsync pixelclk polarity

2016-02-03 Thread Thierry Reding
not very clear to me. I don't think we have an equivalent DRM_MODE_FLAG_* but we could add one if there's really a need. Thierry -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: no

[PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-02-03 Thread Luis Henriques
This fixes the following build failure: drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.o: In function `msm_dsi_pll_28nm_8960_init': dsi_pll_28nm.c:(.text+0x1198): multiple definition of `msm_dsi_pll_28nm_8960_init' drivers/gpu/drm/msm/dsi/pll/dsi_pll.o:dsi_pll.c:(.text+0x0): first defined here Signed

[PATCH v2 17/26] drm: sun4i: Add DT bindings documentation

2016-02-03 Thread Rob Herring
On Wed, Feb 3, 2016 at 1:59 PM, Maxime Ripard wrote: > Hi Rob, > > On Thu, Jan 14, 2016 at 09:15:15PM -0600, Rob Herring wrote: >> On Thu, Jan 14, 2016 at 04:25:00PM +0100, Maxime Ripard wrote: >> > The display pipeline of the Allwinner A10 is involving several loosely >> > coupled components. >>

[PATCH 10/10] drm/exynos: exynos5433_decon: fix wrong state in decon_vblank_enable

2016-02-03 Thread Marek Szyprowski
BIT_IRQS_ENABLED was never set because of incorrect test in decon_vlank_enable() function, what resulted in lack of enabling vblank support. This patch fixes this issue. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 09/10] drm/exynos: exynos5433_decon: fix wrong state assignment in decon_enable

2016-02-03 Thread Marek Szyprowski
Patch ebf3fd403b79ba6561bd1a4bb5a7cacc99da08e5 ("drm/exynos: add pm_runtime to DECON 5433") removed some code from decon_enable() function, but it left set_bit(BIT_SUSPENDED, &ctx->flags) call, which was earlier called only in error path. This patch removes it, what finally lets driver to go out of

[PATCH 08/10] drm/exynos: initialize DMA ops for virtual Exynos DRM device

2016-02-03 Thread Marek Szyprowski
Virtual DRM device is used for memory allocation for GEM objects. On some architectures null dma operations are assigned for virtual devices if no explicit initialization has been made. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 + 1 file changed, 1 insertion

[PATCH 07/10] drm/exynos: dsi: restore support for drm bridge

2016-02-03 Thread Marek Szyprowski
This patch fixes issue introduced by commit cf67cc9a29ac19c98bc4fa0e6d14b0c1f592d322 ("drm/exynos: remove struct exynos_drm_display"), which removed assigning of drm bridge to drm encoder. Lack of it caused that no bridge callbacks were called on encoder enable/disable actions. Signed-off-by: Mare

[PATCH 06/10] drm/exynos: mic: make all functions static

2016-02-03 Thread Marek Szyprowski
There is no point exposing all internal functions to global kernel name space, so make all internals functions static. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos

[PATCH 05/10] drm/exynos: mic: convert to component framework

2016-02-03 Thread Marek Szyprowski
MIC is SoC component and important part of kms pipeline on Exynos5433, so convert it to use component framework like other KMS/CRTC drivers. MIC driver is already listed on KMS component driver list in Exynos DRM core, so without this conversion, initialization of Exynos DRM core fails on Exynos 54

[PATCH 04/10] drm/exynos: mic: use devm_clk interface

2016-02-03 Thread Marek Szyprowski
Drivers should use devm_clk* interface instead of of_clk* functions. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_m

[PATCH 03/10] drm/exynos: fix types for compilation on 64bit architectures

2016-02-03 Thread Marek Szyprowski
This patch fixes compilation warnings (on 64bit architectures) and bugs related to casting pointers through 32bit integers. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 5 +++-- drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_v

[PATCH 02/10] drm/exynos: ipp: fix incorrect format specifiers in debug messages

2016-02-03 Thread Marek Szyprowski
Drivers should use %p for printing pointers instead of hardcoding them as hexadecimal integers. This patch fixes compilation warnings on 64bit architectures. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_fimc.c| 2 +- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 2

[PATCH 01/10] drm/exynos: depend on ARCH_EXYNOS for DRM_EXYNOS

2016-02-03 Thread Marek Szyprowski
From: Joonyoung Shim Because PLAT_SAMSUNG isn't include exynos SoCs for arm64, but ARCH_EXYNOS can do it. And it also needs to add ARCH_S3C64XX instead of PLAT_SAMSUNG. Signed-off-by: Joonyoung Shim Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/Kconfig | 2 +- 1 file changed, 1 i

[PATCH 00/10] Exynos DRM: various fixes for 64bit and Exynos5433

2016-02-03 Thread Marek Szyprowski
Hello all, This patch series is a set of various fixes to get Exynos DRM working on Exynos 5433 SoCs and 64bit ARM64 architecture. Patches are based on top of v4.5-rc2 release. Best regards Marek Szyprowski Samsung R&D Institute Poland Patch summary: Joonyoung Shim (1): drm/exynos: depend o

[PATCH 1/8] drm/amdgpu: move gmc7 support out of CIK dependency

2016-02-03 Thread Christian König
Am 02.02.2016 um 22:52 schrieb Christian König: > Am 02.02.2016 um 22:36 schrieb Alex Deucher: >> It's used by iceland which is VI. >> >> Signed-off-by: Alex Deucher >> Cc: stable at vger.kernel.org > > Nice work, the full set is Reviewed-by: Christian König > > > Going to test it tomorrow as

[PATCH] drm/radeon: Avoid double gpu reset by adding a timeout on IB ring tests.

2016-02-03 Thread Christian König
Am 31.01.2016 um 19:50 schrieb Matthew Dawson: > On Sunday, January 24, 2016 10:49:00 AM EST Christian König wrote: >> Am 24.01.2016 um 07:18 schrieb Matthew Dawson: >>> When the radeon driver resets a gpu, it attempts to test whether all the >>> rings can successfully handle an IB. If these ring

[PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Dienstag, den 02.02.2016, 16:10 +0800 schrieb Daniel Kurtz: > On Tue, Jan 5, 2016 at 1:36 AM, Philipp Zabel > wrote: > > From: CK Hu > > > > This patch adds the device nodes for the DISP function blocks > > comprising the display subsystem. > > > > Signed-off-by: CK Hu > > Signed

[PATCH v9 03/14] drm/mediatek: Add DSI sub driver

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Dienstag, den 02.02.2016, 21:32 +0800 schrieb Daniel Kurtz: > Hi Philipp, > > I ran into some issues when trying to bring up just the DSI path of > the Mediatek DRM driver. > Things were failing in probe/bind that triggered some oopses in the > unbind/error paths. > This resulted in

[PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Mittwoch, den 03.02.2016, 00:24 +0800 schrieb Daniel Kurtz: > Hi Philipp, > > Two more comments below... > > On Tue, Feb 2, 2016 at 4:10 PM, Daniel Kurtz wrote: > > On Tue, Jan 5, 2016 at 1:36 AM, Philipp Zabel > > wrote: [...] > >> + > >> + dsi0: dsi at 1401b000 {

[PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes

2016-02-03 Thread Philipp Zabel
Hi Daniel, Am Dienstag, den 02.02.2016, 16:10 +0800 schrieb Daniel Kurtz: > On Tue, Jan 5, 2016 at 1:36 AM, Philipp Zabel > wrote: > > From: CK Hu > > > > This patch adds the device nodes for the DISP function blocks > > comprising the display subsystem. > > > > Signed-off-by: CK Hu > > Signed

[PATCH v8 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-02-03 Thread Daniel Kurtz
Hi Jitao, One more comment, inline... On Mon, Feb 1, 2016 at 12:13 PM, Jitao Shi wrote: > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi [snip] > +static int ps8640_probe(struct i2c_client *client, > + const struct i2c_d

[PATCH v3 11/11] staging/android: remove redundant comments on sync_merge_data

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/and

[PATCH v3 10/11] staging/android: add flags member to sync ioctl structs

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Play safe and add flags member to all structs. So we don't need to break API or create new IOCTL in the future if new features that requires flags arises. v2: check if flags are valid (zero, in this case) Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c

[PATCH v3 09/11] staging/android: rename SYNC_IOC_FENCE_INFO

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan We don't use the 'fence' name to refer to sync_file anymore. So rename it to SYNC_IOC_FILE_INFO. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 +- drivers/staging/android/uapi/sync.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) di

[PATCH v3 08/11] staging/android: make info->len return only size of sync_fence_info array

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan The len member of struct sync_file_info was returning the size of the whole buffer (struct sync_file_info + sync_fence_infos at the of it). This commit change it to return only the size of the array of sync_fence_infos. It also moves len to be right before the sync_fences_i

[PATCH v3 07/11] staging/android: add num_fences field to struct sync_file_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Inform userspace how many fences are in the sync_fence_info field. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 ++ drivers/staging/android/uapi/sync.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/staging/android/sync.c b/dr

[PATCH v3 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Turn sync_fence_info into __u64 type enable us to extend the struct in the future without breaking the ABI. v2: use type __u64 for fence_info v3: fix commit message to reflect the v2 change Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 2 +- d

[PATCH v3 05/11] staging/android: remove len field from struct sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan After removing driver_data struct sync_fence_info has now a fixed size, thus it doesn't need any field to tell its size, it is already known. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 4 +--- drivers/staging/android/uapi/sync.h | 2 -- 2 fil

[PATCH v3 04/11] staging/android: remove driver_data from struct sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan It is unclear in what situations driver_data should be used thus better do not upstream it for now. If a need arises in the future a discussion can be started to re-add it. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c | 14 -- drivers

[PATCH v3 03/11] staging/android: rename sync_file_info_data to sync_file_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan info_data is a bit redundant, let's keep it as only sync_file_info. It is also smaller. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 26 +- drivers/staging/android/uapi/sync.h | 9 - 2 files changed, 17 insertio

[PATCH v3 02/11] staging/android: rename sync_pt_info to sync_fence_info

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan As struct sync_pt doesn't exist anymore it is a good idea remove any reference to it in the sync_framework. sync_pts were replaced directly by fences and here we rename it to sync_fence_info to let the fence namespace clean. v2: rename fence_info to sync_fence_info (Maarten

[PATCH v3 01/11] staging/android: remove SYNC_WAIT ioctl

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan This ioctl is replicating the work of poll() syscall so let's take the opportunity that this is still on staging tree and remove the duplication and force new users to use the poll() standard interface. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c

[PATCH v3 00/11] android sync framework: clean up IOCTLs and ABI

2016-02-03 Thread Gustavo Padovan
From: Gustavo Padovan Hi, This patch series clean up IOCTLs and abi of sync framework and it is a follow up on the clean up series I've sent on Jan 21: http://thread.gmane.org/gmane.comp.video.dri.devel/145509 The main changes here are: * remove of SYNC_WAIT ioctl, poll() should be used inst

[PATCH v3 5/5] drm/atomic: Add encoder_mask to crtc_state, v3.

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-01-28 Maarten Lankhorst : > This allows iteration over encoders without requiring connection_mutex. > > Changes since v1: > - Add a set_best_encoder helper function and update encoder_mask inside > it. > Changes since v2: > - Relax the WARN_ON(!crtc), with explanation. > - Cal

[Intel-gfx] [PATCH 4/5] drm/atomic: Do not unset crtc when an encoder is stolen

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-01-07 Maarten Lankhorst : > While we steal the encoder away from the connector the connector may > be updated to use a different encoder. > > Without this change if 2 connectors swap encoders one of them will > end up without a crtc. > > Signed-off-by: Maarten Lankhorst > ---

[PATCH 3/5] drm/i915: Do not touch best_encoder for load detect.

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-01-07 Maarten Lankhorst : > This should only be touched by drm_atomic_helper. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/intel_display.c | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Gustavo Padovan Gustavo

[PATCH 2/5] drm/core: Add drm_for_each_encoder_mask, v2.

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-01-07 Maarten Lankhorst : > This is similar to the other drm_for_each_*_mask functions. > > Changes since v1: > - Use for_each_if > > Signed-off-by: Maarten Lankhorst > --- > include/drm/drm_crtc.h | 11 +++ > 1 file changed, 11 insertions(+) Reviewed-by: Gustavo Pad

[Intel-gfx] [PATCH 1/5] drm/core: Add drm_encoder_index.

2016-02-03 Thread Gustavo Padovan
Hi Maarten, 2016-01-07 Maarten Lankhorst : > This is useful for adding encoder_mask in crtc_state. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/drm_crtc.c | 23 +++ > include/drm/drm_crtc.h | 1 + > 2 files changed, 24 insertions(+) Reviewed-by: Gustav

[PATCH 1/3] drm: add helper to check for wc memory support

2016-02-03 Thread Oded Gabbay
On Tue, Feb 2, 2016 at 5:07 PM, Alex Deucher wrote: > On Tue, Feb 2, 2016 at 7:01 AM, Oded Gabbay wrote: >> On Mon, Feb 1, 2016 at 7:01 PM, Alex Deucher >> wrote: >>> >>> On Sat, Jan 30, 2016 at 4:57 AM, Christian König >>> wrote: >>> > Am 30.01.2016 um 06:59 schrieb Oded Gabbay: >>> >> >>> >

[PATCH v2 06/11] staging/android: turn fence_info into a __u64 pointer

2016-02-03 Thread Maarten Lankhorst
Op 02-02-16 om 21:28 schreef Gustavo Padovan: > Hi Maarten, > > 2016-02-02 Maarten Lankhorst : > >> Op 02-02-16 om 14:23 schreef Gustavo Padovan: >>> From: Gustavo Padovan >>> >>> Making fence_info a pointer enables us to extend the struct in the future >>> without breaking the ABI. >>> >>> v2: us

[PATCH 1/3] drm: add helper to check for wc memory support

2016-02-03 Thread Alex Deucher
On Wed, Feb 3, 2016 at 3:17 AM, Oded Gabbay wrote: > On Tue, Feb 2, 2016 at 5:07 PM, Alex Deucher wrote: >> On Tue, Feb 2, 2016 at 7:01 AM, Oded Gabbay wrote: >>> On Mon, Feb 1, 2016 at 7:01 PM, Alex Deucher >>> wrote: On Sat, Jan 30, 2016 at 4:57 AM, Christian König wrote: >>

[Intel-gfx] [PATCH 4/8] drm/i915: Add i915 perf event for Haswell OA unit

2016-02-03 Thread kbuild test robot
-Gen-7-Observation-Architecture/20160203-053423 config: i386-defconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/gpu/drm/i915/i915_perf.c: In function 'gen7_oa_read&#

[PATCH 4/4] drm/layerscape: Add HDMI driver for freescale DCU

2016-02-03 Thread Meng Yi
Hi Stefan, I will take PTO during Chinese Spring Festival, and I will rebase my patches according to your tree and send out after 2/16/2016 ^_^ BR Meng > On Wednesday, February 03, 2016 5:56 AM, Stefan Agner [stefan at agner.ch] > wrote: > > Hi Meng Yi, > > I plan to review the patchset t

[Bug 93970] Second Life - Advanced Lighting Model shader fails to compile on Radeon SI driver

2016-02-03 Thread bugzilla-dae...@freedesktop.org
assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/3444c641/attachment.html>

[PATCH v9 02/14] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2016-02-03 Thread Daniel Kurtz
Hi Philipp, Sorry for the previous HTML email. Trying again... Below are some more comments from my observations today trying to configure Mediatek DRM to use just the MIPI/DSI path (no HDMI). On Tue, Jan 12, 2016 at 11:15 PM, Philipp Zabel wrote: > From: CK Hu > > This patch adds an initial

[PATCH v9 02/14] drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.

2016-02-03 Thread Daniel Kurtz
m_driver, dev); > + if (!drm) > + return -ENOMEM; > + > + drm_dev_set_unique(drm, dev_name(dev)); > + > + ret = drm_dev_register(drm, 0); > + if (ret < 0) > + goto err_free; > + > + drm->dev_private = private; > + private->drm = drm; > + > + ret = mtk_drm_kms_init(drm); > + if (ret < 0) > + goto err_unregister; > + > + return 0; > + > +err_unregister: > + drm_dev_unregister(drm); > +err_free: > + drm_dev_unref(drm); > + return ret; > +} -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160203/a5a3d175/attachment-0001.html>

[PATCH v8 08/13] arm64: dts: mt8173: Add display subsystem related nodes

2016-02-03 Thread Daniel Kurtz
Hi Philipp, Two more comments below... On Tue, Feb 2, 2016 at 4:10 PM, Daniel Kurtz wrote: > On Tue, Jan 5, 2016 at 1:36 AM, Philipp Zabel > wrote: >> From: CK Hu >> >> This patch adds the device nodes for the DISP function blocks >> comprising the display subsystem. >> >> Signed-off-by: CK H