[Intel-gfx] [PATCH v2 1/3] drm: Hold mode_config.lock to prevent hotplug whilst setting up crtcs

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson wrote: > The fb_helper->connector_count is modified when a new connector is > constructed following a hotplug event (e.g. DP-MST). This causes trouble > for drm_setup_crtcs() and friends that assume that fb_helper is > constant: > > [ 1250.872997] BUG

[Intel-gfx] [PATCH v2 3/3] drm: Protect fb_helper list manipulation with a mutex

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson wrote: > Though we only walk the kernel_fb_helper_list inside a panic (or single > thread debugging), we still need to protect the list manipulation on > creating/removing a framebuffer device in order to prevent list > corruption. > > Signed-off-by:

[Intel-gfx] [PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson wrote: > drm_fb_helper_probe_connector_modes() is always called before > drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a > small bit of code compaction. > > Signed-off-by: Chris Wilson > Reviewed-by: Daniel Vetter > --- > driver

[PATCH V3 2/3] dt-bindings: mxsfb: Add new bindings for the MXSFB driver

2016-11-29 Thread Rob Herring
On Fri, Nov 25, 2016 at 12:26 PM, Marek Vasut wrote: > On 11/16/2016 01:21 PM, Marek Vasut wrote: >> Add new DT bindings for new MXSFB driver that is using the >> OF graph to parse the video output structure instead of >> hard-coding the display properties into the MXSFB node. >> The old MXSFB fbd

[Intel-gfx] [PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Chris Wilson
On Tue, Nov 29, 2016 at 10:28:03AM -0500, Sean Paul wrote: > On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson > wrote: > > drm_fb_helper_probe_connector_modes() is always called before > > drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a > > small bit of code compaction. > > > > S

[Bug 96868] AMDGPU Tonga only does 2560x1440 at 120hz, switching to 144hz causes display errors, same thing used to happen with fglrx.

2016-11-29 Thread bugzilla-dae...@freedesktop.org
chment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/81b1c252/attachment.html>

[Bug 98903] [AMDGPU] System hang with latest CS:GO update

2016-11-29 Thread bugzilla-dae...@freedesktop.org
.. URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/c8e3e886/attachment-0001.html>

[Intel-gfx] [PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 10:34 AM, Chris Wilson wrote: > On Tue, Nov 29, 2016 at 10:28:03AM -0500, Sean Paul wrote: >> On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson >> wrote: >> > drm_fb_helper_probe_connector_modes() is always called before >> > drm_setup_crtcs(), so just move the call into drm

[PATCH RFC v3] drm: Add a new connector atomic property for link status

2016-11-29 Thread Manasi Navare
On Tue, Nov 29, 2016 at 09:59:14AM +0100, Daniel Vetter wrote: > On Mon, Nov 28, 2016 at 05:07:52PM -0800, Manasi Navare wrote: > > On Thu, Nov 24, 2016 at 08:51:35AM +0100, Daniel Vetter wrote: > > > On Wed, Nov 23, 2016 at 11:28:21PM -0800, Manasi Navare wrote: > > > > This is RFC patch for addin

[PATCH] dim: Add status command

2016-11-29 Thread Jani Nikula
On Tue, 29 Nov 2016, Daniel Vetter wrote: > Useful with our branch proliferation to make sure nothing is stuck (we > now also have drm-misc-next/-next-fixes/-fixes). > > v2: Gracefully handle if some remotes arent' there. > > Acked-by: seanpaul at chromium.org > Signed-off-by: Daniel Vetter Acke

[Bug/RFC] drm/imx: warning: vblank wait timed out

2016-11-29 Thread Philipp Zabel
Hi Christopher, Am Dienstag, den 29.11.2016, 16:45 +0100 schrieb Christopher Spinrath: > Hi all, > > I am trying to enable the second display pipeline of my imx6q based > Utilite Pro. I appended a devicetree patch to this email for reference. > > While it works perfectly on its own there occur k

[RFC][PATCH 1/5 v2] drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context

2016-11-29 Thread John Stultz
On Mon, Nov 28, 2016 at 10:46 PM, Laurent Pinchart wrote: > Hi John, > > Thank you for the patch. > > On Monday 28 Nov 2016 21:04:40 John Stultz wrote: >> I was recently seeing issues with EDID probing, where >> the logic to wait for the EDID read bit to be set by the >> IRQ wasn't happening and t

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Stefan Agner
On 2016-11-29 01:04, Laurent Pinchart wrote: > Instead of linking encoders and bridges in every driver (and getting it > wrong half of the time, as many drivers forget to set the drm_bridge > encoder pointer), do so in core code. The drm_bridge_attach() function > needs the encoder and optional pre

[PATCH] drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'

2016-11-29 Thread Sinclair Yeh
Good catch. Reviewed-by: Sinclair Yeh On Tue, Nov 29, 2016 at 07:49:19AM +0100, Christophe JAILLET wrote: > 'vmw_cotable_alloc()' returns an error pointer on error, not NULL. > Propagate the error code, instead of returning -ENOMEM unconditionally > > Signed-off-by: Christophe JAILLET > --- >

[PATCH v3 09/13] drm: Add encoder_type field to the drm_bridge structure

2016-11-29 Thread Laurent Pinchart
Hi Daniel, On Tuesday 29 Nov 2016 11:27:20 Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 11:58:44AM +0200, Laurent Pinchart wrote: > > On Tuesday 29 Nov 2016 10:56:53 Daniel Vetter wrote: > >> On Tue, Nov 29, 2016 at 11:04:39AM +0200, Laurent Pinchart wrote: > >>> The drm_bridge object models on-

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Laurent Pinchart
Hi Archit, On Tuesday 29 Nov 2016 15:57:06 Archit Taneja wrote: > On 11/29/2016 02:34 PM, Laurent Pinchart wrote: > > Instead of linking encoders and bridges in every driver (and getting it > > wrong half of the time, as many drivers forget to set the drm_bridge > > encoder pointer), do so in core

[RFC][PATCH 2/5 v2] drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()

2016-11-29 Thread John Stultz
On Mon, Nov 28, 2016 at 10:50 PM, Laurent Pinchart wrote: > Hi John, > > Thank you for the patch. > > On Monday 28 Nov 2016 21:04:41 John Stultz wrote: >> In chasing down a previous issue with EDID probing from calling >> drm_helper_hpd_irq_event() from irq context, Laurent noticed >> that the DRM

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Laurent Pinchart
Hi Daniel, On Tuesday 29 Nov 2016 11:05:27 Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 11:43:19AM +0200, Laurent Pinchart wrote: > > On Tuesday 29 Nov 2016 10:35:24 Daniel Vetter wrote: > >> On Tue, Nov 29, 2016 at 11:04:33AM +0200, Laurent Pinchart wrote: > >>> Instead of linking encoders and

[Bug 98901] amdgpu doesn't reinitialize after reboot in Xen PV DomU

2016-11-29 Thread bugzilla-dae...@freedesktop.org
the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/c11b1b5b/attachment.html>

[Bug 98901] amdgpu doesn't reinitialize after reboot in Xen PV DomU

2016-11-29 Thread bugzilla-dae...@freedesktop.org
his mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/4d596b00/attachment.html>

[pull] drm/msm: msm-next for 4.10

2016-11-29 Thread Rob Clark
Hi Dave, A bit late, but worth the wait. The big news is a5xx support. Latest version of the corresponding mesa patches are here: https://github.com/freedreno/mesa/commits/a5xx On the userspace side, all the basics are working, and most of glmark2 is working. I've been working through deqp,

[PATCH v2 01/13] devicetree/bindings: display: Document common panel properties

2016-11-29 Thread Laurent Pinchart
Hi Rob, On Tuesday 29 Nov 2016 09:14:09 Rob Herring wrote: > On Tue, Nov 29, 2016 at 2:27 AM, Laurent Pinchart wrote: > > On Tuesday 22 Nov 2016 11:36:55 Laurent Pinchart wrote: > >> On Monday 21 Nov 2016 10:48:15 Rob Herring wrote: > >>> On Sat, Nov 19, 2016 at 05:28:01AM +0200, Laurent Pinchart

[Bug 95306] Random Blank(black) screens on "Carrizo"

2016-11-29 Thread bugzilla-dae...@freedesktop.org
u are on the CC list for the bug. > > -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/bb575416/attachment-0001.html>

[PATCH v7 2/8] drm/sun8i: Add DT bindings documentation of Allwinner DE2

2016-11-29 Thread Laurent Pinchart
Hi Jean-François, Thank you for the patch. On Monday 28 Nov 2016 19:02:39 Jean-Francois Moine wrote: > Signed-off-by: Jean-Francois Moine > --- > .../bindings/display/sunxi/sun8i-de2.txt | 121 ++ > 1 file changed, 121 insertions(+) > create mode 100644 > Documentati

[PATCH 4/6] drm/vc4: Document VEC DT binding

2016-11-29 Thread Eric Anholt
From: Boris Brezillon Document the DT binding for the VEC (Video EnCoder) IP. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- Documentation/devicetree/bindings/display/brcm,bcm-vc4.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/b

[PATCH 0/6] drm/vc4: VEC (SDTV) output support

2016-11-29 Thread Eric Anholt
Here's a series from Boris for enabling SDTV output on VC4. There are two other patches to the clk subsystem necessary to get it working, which I'm in the process of reviewing. I've tested it on composite input of a monitor I had laying around, and it's basically working. Booting with the firmwa

[PATCH 5/6] ARM: bcm/dt: Add VEC node in bcm283x.dtsi

2016-11-29 Thread Eric Anholt
From: Boris Brezillon Add the VEC (Video EnCoder) node definition in bcm283x.dtsi. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283

[PATCH 6/6] ARM: bcm/dt: Enable the VEC IP on all RaspberryPi boards

2016-11-29 Thread Eric Anholt
From: Boris Brezillon Enable the VEC IP on all RaspberryPi boards. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi

[PATCH 2/6] drm: Add TV connector states to drm_connector_state

2016-11-29 Thread Eric Anholt
From: Boris Brezillon Some generic TV connector properties are exposed in drm_mode_config, but they are currently handled independently in each DRM encoder driver. Extend the drm_connector_state to store TV related states, and modify the drm_atomic_connector_{set,get}_property() helpers to fill

[PATCH 1/6] drm/vc4: Fix ->clock_select setting for the VEC encoder

2016-11-29 Thread Eric Anholt
From: Boris Brezillon PV_CONTROL_CLK_SELECT_VEC is actually 2 and not 0. Fix the definition and rework the vc4_set_crtc_possible_masks() to cover the full range of the PV_CONTROL_CLK_SELECT field. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_crtc.c | 3

[PATCH 3/6] drm/vc4: Add support for the VEC (Video Encoder) IP

2016-11-29 Thread Eric Anholt
From: Boris Brezillon The VEC IP is a TV DAC, providing support for PAL and NTSC standards. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/Makefile | 1 + drivers/gpu/drm/vc4/vc4_debugfs.c | 1 + drivers/gpu/drm/vc4/vc4_drv.c | 1 + drivers/gp

[PATCH v7 2/8] drm/sun8i: Add DT bindings documentation of Allwinner DE2

2016-11-29 Thread Laurent Pinchart
Hi Jean-François, A brief update. On Tuesday 29 Nov 2016 20:41:30 Laurent Pinchart wrote: > On Monday 28 Nov 2016 19:02:39 Jean-Francois Moine wrote: > > Signed-off-by: Jean-Francois Moine > > --- > > > > .../bindings/display/sunxi/sun8i-de2.txt | 121 > > 1 file ch

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Laurent Pinchart
Hi Jean-François, Thank you for the patch. On Tuesday 29 Nov 2016 10:08:25 Jean-Francois Moine wrote: > Signed-off-by: Jean-Francois Moine > --- > .../devicetree/bindings/display/sunxi/hdmi.txt | 56 +++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Laurent Pinchart
Hi Daniel, On Tuesday 29 Nov 2016 20:02:01 Laurent Pinchart wrote: > On Tuesday 29 Nov 2016 11:05:27 Daniel Vetter wrote: > > On Tue, Nov 29, 2016 at 11:43:19AM +0200, Laurent Pinchart wrote: > >> On Tuesday 29 Nov 2016 10:35:24 Daniel Vetter wrote: > >>> On Tue, Nov 29, 2016 at 11:04:33AM +0200,

[PATCH v3 04/13] drm: bridge: Detach bridge from encoder at encoder cleanup time

2016-11-29 Thread Laurent Pinchart
Hi Archit, On Tuesday 29 Nov 2016 16:04:08 Archit Taneja wrote: > On 11/29/2016 02:34 PM, Laurent Pinchart wrote: > > Most drivers that use bridges forgot to detach them at cleanup time. > > Instead of fixing them one by one, detach the bridge in the core > > drm_encoder_cleanup() function. > > >

[PATCH 1/2] drm/i915/dsi: Fix swapping of MIPI_SEQ_DEASSERT_RESET / MIPI_SEQ_ASSERT_RESET

2016-11-29 Thread Ville Syrjälä
On Tue, Nov 29, 2016 at 04:06:31PM +0200, Ville Syrjälä wrote: > On Tue, Nov 29, 2016 at 02:06:20PM +0100, Hans de Goede wrote: > > Hi, > > > > Thanks for the quick reply. > > > > On 29-11-16 13:48, Ville Syrjälä wrote: > > > On Tue, Nov 29, 2016 at 01:38:57PM +0100, Hans de Goede wrote: > >

[Bug 98905] XFX Radeon RX 480 XXX OC GPU hangs in games with "auto" power_dpm_force_performance_level

2016-11-29 Thread bugzilla-dae...@freedesktop.org
el. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/988f5bc1/attachment.html>

[PATCH v3 04/13] drm: bridge: Detach bridge from encoder at encoder cleanup time

2016-11-29 Thread Laurent Pinchart
Hi Daniel, On Tuesday 29 Nov 2016 10:48:21 Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 11:04:34AM +0200, Laurent Pinchart wrote: > > Most drivers that use bridges forgot to detach them at cleanup time. > > Instead of fixing them one by one, detach the bridge in the core > > drm_encoder_cleanup(

[PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Laurent Pinchart
Hi Neil, Thank you for the patch. On Tuesday 29 Nov 2016 11:47:47 Neil Armstrong wrote: > Add Video Processing Unit and CVBS Output nodes, and enable CVBS on selected > boards. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 46 +++

[PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Laurent Pinchart
Hi Neil, On Tuesday 29 Nov 2016 21:16:17 Laurent Pinchart wrote: > On Tuesday 29 Nov 2016 11:47:47 Neil Armstrong wrote: > > Add Video Processing Unit and CVBS Output nodes, and enable CVBS on > > selected boards. > > > > Signed-off-by: Neil Armstrong > > --- > > > > arch/arm64/boot/dts/amlogi

[PATCH libdrm 1/5] xf86drm: implement drmGetMinorNameForFD for non-sysfs

2016-11-29 Thread Emil Velikov
On 26 November 2016 at 00:40, Jonathan Gray wrote: > Implement drmGetMinorNameForFD for systems without sysfs by > adapting drm_get_device_name_for_fd() from the Mesa loader. > > Signed-off-by: Jonathan Gray > --- > xf86drm.c | 20 +++- > 1 file changed, 19 insertions(+), 1 delet

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 20:46:22 +0200 Laurent Pinchart wrote: [snip] > > +Example: > > + > > + hdmi: hdmi at 01ee { > > + compatible = "allwinner,sun8i-a83t-hdmi"; > > + reg = <0x01ee 0x2>; > > + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI>, > > +

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Laurent Pinchart
Hi Jean-François, On Tuesday 29 Nov 2016 20:27:51 Jean-Francois Moine wrote: > On Tue, 29 Nov 2016 20:46:22 +0200 Laurent Pinchart wrote: > [snip] > > >> +Example: > >> + > >> + hdmi: hdmi at 01ee { > >> + compatible = "allwinner,sun8i-a83t-hdmi"; > >> + reg = <0x01ee

[PATCH v3 1/2] dt-bindings: drm/bridge: adv7511: Add regulator bindings

2016-11-29 Thread Laurent Pinchart
Hi Mark, On Tuesday 29 Nov 2016 11:01:25 Mark Brown wrote: > On Tue, Nov 29, 2016 at 11:11:03AM +0200, Laurent Pinchart wrote: > > On Tuesday 29 Nov 2016 13:41:33 Archit Taneja wrote: > >> I thought we couldn't add mandatory properties once the device is > >> already present in DT for one or more

[PATCH RFC] drm: Add a new connector atomic property for link status

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 9:45 AM, Sean Paul wrote: > On Mon, Nov 28, 2016 at 7:59 PM, Manasi Navare > wrote: >> On Wed, Nov 23, 2016 at 09:09:28AM +0100, Daniel Vetter wrote: >>> On Tue, Nov 22, 2016 at 09:27:35PM -0500, Sean Paul wrote: >>> > On Tue, Nov 22, 2016 at 8:30 PM, Manasi Navare >>> >

[PATCH libdrm 2/5] xf86drm: implement drmParseSubsystemType for OpenBSD

2016-11-29 Thread Emil Velikov
On 26 November 2016 at 00:40, Jonathan Gray wrote: > Implement drmParseSubsystemType for OpenBSD by always returning > DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is > unlikely to change anytime soon as the existing ones aren't permissively > licensed. > A few noticeable X11 MI

[PATCH libdrm 3/5] xf86drm: implement drmParsePciDeviceInfo for OpenBSD

2016-11-29 Thread Emil Velikov
On 26 November 2016 at 00:40, Jonathan Gray wrote: > Implement drmParsePciDeviceInfo for OpenBSD by using the new > DRM_IOCTL_GET_PCIINFO ioctl. > > Signed-off-by: Jonathan Gray > --- > xf86drm.c | 51 +++ > 1 file changed, 51 insertions(+) > > dif

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Boris Brezillon
On Tue, 29 Nov 2016 11:04:33 +0200 Laurent Pinchart wrote: > Instead of linking encoders and bridges in every driver (and getting it > wrong half of the time, as many drivers forget to set the drm_bridge > encoder pointer), do so in core code. The drm_bridge_attach() function > needs the encoder

[Bug 98005] VCE dual instance encoding inconsistent since st/va: enable dual instances encode by sync surface

2016-11-29 Thread bugzilla-dae...@freedesktop.org
next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/0ff4c287/attachment.html>

[PATCH libdrm 5/5] xf86drm: implement an OpenBSD specific drmGetDevice

2016-11-29 Thread Emil Velikov
On 26 November 2016 at 00:40, Jonathan Gray wrote: > This avoids walking all of /dev and directly maps the fd to a path to a > primary node. > I realise that the code is pretty ugly/bad/etc, but I would stay way from similar optimisations. As-is it will just work as you guys get support for render

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 21:33 +0200 Laurent Pinchart wrote: > > > You need a third port for the HDMI encoder output, connected to an HDMI > > > connector DT node. > > > > I don't see what you mean. The HDMI device is both the encoder > > and connector (as the TDA998x): > > The driver might create b

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Laurent Pinchart
Hi Jean-François, On Tuesday 29 Nov 2016 21:04:55 Jean-Francois Moine wrote: > On Tue, 29 Nov 2016 21:33 +0200 Laurent Pinchart wrote: > >>> You need a third port for the HDMI encoder output, connected to an > >>> HDMI connector DT node. > >> > >> I don't see what you mean. The HDMI device is bo

[PATCH 2/6] drm: Add TV connector states to drm_connector_state

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 10:41:58AM -0800, Eric Anholt wrote: > From: Boris Brezillon > > Some generic TV connector properties are exposed in drm_mode_config, but > they are currently handled independently in each DRM encoder driver. > > Extend the drm_connector_state to store TV related states,

[PATCH V3 3/3] drm: Add new driver for MXSFB controller

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 06:27:30PM +0100, Marek Vasut wrote: > On 11/14/2016 12:47 PM, Daniel Vetter wrote: > > On Mon, Nov 14, 2016 at 11:10:36AM +0100, Marek Vasut wrote: > >> Add new driver for the MXSFB controller found in i.MX23/28/6SX . > >> The MXSFB controller is a simple framebuffer contro

[PATCH v5 3/4] drm/bridge: Add ti-tfp410 DVI transmitter driver

2016-11-29 Thread Jyri Sarha
The module unload should not be allowed while the bridge is attached. So still need to add these: On 11/25/16 11:02, Jyri Sarha wrote: > + > +static int tfp410_attach(struct drm_bridge *bridge) > +{ > + struct tfp410 *dvi = drm_bridge_to_tfp410(bridge); > + int ret; > + + if (!try_

[PATCH v5 4/4] drm/tilcdc: Add drm bridge support for attaching drm bridge drivers

2016-11-29 Thread Jyri Sarha
On 11/25/16 11:02, Jyri Sarha wrote: > -void tilcdc_remove_external_encoders(struct drm_device *dev) > +void tilcdc_remove_external_device(struct drm_device *dev) > { > struct tilcdc_drm_private *priv = dev->dev_private; > - int i; > > /* Restore the original helper functions, if

[PATCH] drm/atomic: debugfs atomic state should be removed too

2016-11-29 Thread Jyri Sarha
If atomic state file is not removed from debugfs it will prevent atomic driver modules from reloading after unload when debugfs is enabled. Fixes commit 6559c901cb484 ("drm/atomic: add debugfs file to dump out atomic state") Signed-off-by: Jyri Sarha --- drivers/gpu/drm/drm_atomic.c | 6 ++

[PATCH v3 04/13] drm: bridge: Detach bridge from encoder at encoder cleanup time

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 08:56:44PM +0200, Laurent Pinchart wrote: > Hi Archit, > > On Tuesday 29 Nov 2016 16:04:08 Archit Taneja wrote: > > On 11/29/2016 02:34 PM, Laurent Pinchart wrote: > > > Most drivers that use bridges forgot to detach them at cleanup time. > > > Instead of fixing them one by

[PATCH v3 09/13] drm: Add encoder_type field to the drm_bridge structure

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 07:49:22PM +0200, Laurent Pinchart wrote: > Hi Daniel, > > On Tuesday 29 Nov 2016 11:27:20 Daniel Vetter wrote: > > On Tue, Nov 29, 2016 at 11:58:44AM +0200, Laurent Pinchart wrote: > > > On Tuesday 29 Nov 2016 10:56:53 Daniel Vetter wrote: > > >> On Tue, Nov 29, 2016 at 11

[PATCH v5 3/4] drm/bridge: Add ti-tfp410 DVI transmitter driver

2016-11-29 Thread Laurent Pinchart
Hi Jyri, On Tuesday 29 Nov 2016 22:18:25 Jyri Sarha wrote: > The module unload should not be allowed while the bridge is attached. So > still need to add these: > > On 11/25/16 11:02, Jyri Sarha wrote: > > + > > +static int tfp410_attach(struct drm_bridge *bridge) > > +{ > > + struct tfp410 *dv

[PATCH v5 4/4] drm/tilcdc: Add drm bridge support for attaching drm bridge drivers

2016-11-29 Thread Laurent Pinchart
Hi Jyri, On Tuesday 29 Nov 2016 22:18:56 Jyri Sarha wrote: > On 11/25/16 11:02, Jyri Sarha wrote: > > -void tilcdc_remove_external_encoders(struct drm_device *dev) > > +void tilcdc_remove_external_device(struct drm_device *dev) > > { > > struct tilcdc_drm_private *priv = dev->dev_private; > >

[PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 12:02:16PM +, Chris Wilson wrote: > drm_fb_helper_probe_connector_modes() is always called before > drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a > small bit of code compaction. > > Signed-off-by: Chris Wilson > Reviewed-by: Daniel Vetter rb not

[PATCH RFC] drm: Add a new connector atomic property for link status

2016-11-29 Thread Manasi Navare
On Tue, Nov 29, 2016 at 02:43:55PM -0500, Sean Paul wrote: > On Tue, Nov 29, 2016 at 9:45 AM, Sean Paul wrote: > > On Mon, Nov 28, 2016 at 7:59 PM, Manasi Navare > > wrote: > >> On Wed, Nov 23, 2016 at 09:09:28AM +0100, Daniel Vetter wrote: > >>> On Tue, Nov 22, 2016 at 09:27:35PM -0500, Sean Pau

[PATCH] drm/atomic: debugfs atomic state should be removed too

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 10:19:10PM +0200, Jyri Sarha wrote: > If atomic state file is not removed from debugfs it will prevent > atomic driver modules from reloading after unload when debugfs is > enabled. > > Fixes commit 6559c901cb484 ("drm/atomic: add debugfs file to dump out > atomic state") >

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Laurent Pinchart
Many drivers (21 to be exact) create connectors that are always connected (for instance to an LVDS or DSI panel). Instead of forcing them to implement a dummy .detect() handler, make the callback optional and consider the connector as always connected in that case. Signed-off-by: Laurent Pinchart

[Intel-gfx] [PATCH v2 1/3] drm: Hold mode_config.lock to prevent hotplug whilst setting up crtcs

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson wrote: > The fb_helper->connector_count is modified when a new connector is > constructed following a hotplug event (e.g. DP-MST). This causes trouble > for drm_setup_crtcs() and friends that assume that fb_helper is > constant: > > [ 1250.872997] BUG

[PATCH v3 06/13] drm: bridge: Add LVDS encoder driver

2016-11-29 Thread Laurent Pinchart
Hi Daniel, On Tuesday 29 Nov 2016 10:54:09 Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 11:04:36AM +0200, Laurent Pinchart wrote: > > The LVDS encoder driver is a DRM bridge driver that supports the > > parallel to LVDS encoders that don't require any configuration. The > > driver thus doesn't i

[PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 3:29 PM, Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 12:02:16PM +, Chris Wilson wrote: >> drm_fb_helper_probe_connector_modes() is always called before >> drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a >> small bit of code compaction. >> >> Signe

[Intel-gfx] [PATCH v2 3/3] drm: Protect fb_helper list manipulation with a mutex

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 7:02 AM, Chris Wilson wrote: > Though we only walk the kernel_fb_helper_list inside a panic (or single > thread debugging), we still need to protect the list manipulation on > creating/removing a framebuffer device in order to prevent list > corruption. > > Signed-off-by:

[PATCH 2/3] drm/dp/mst: Calculate total link bandwidth instead of hardcoding it

2016-11-29 Thread Ville Syrjälä
On Thu, Nov 17, 2016 at 06:03:47PM -0800, Dhinakaran Pandiyan wrote: > The total or the nominal link bandwidth, which we save in terms of PBN, is > a factor of link rate and lane count. But, currently we hardcode it to > 2560 PBN. This results in incorrect computation of total slots. > > E.g, 2 la

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Maxime Ripard
, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/87359257/attachment.sig>

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Sean Paul
On Tue, Nov 29, 2016 at 3:56 PM, Laurent Pinchart wrote: > Many drivers (21 to be exact) create connectors that are always > connected (for instance to an LVDS or DSI panel). Instead of forcing > them to implement a dummy .detect() handler, make the callback optional > and consider the connector a

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Laurent Pinchart
Hi Sean, On Tuesday 29 Nov 2016 16:07:02 Sean Paul wrote: > On Tue, Nov 29, 2016 at 3:56 PM, Laurent Pinchart wrote: > > Many drivers (21 to be exact) create connectors that are always > > connected (for instance to an LVDS or DSI panel). Instead of forcing > > them to implement a dummy .detect()

[PATCH v5 3/4] drm/bridge: Add ti-tfp410 DVI transmitter driver

2016-11-29 Thread Jyri Sarha
On 11/29/16 22:26, Laurent Pinchart wrote: > Hi Jyri, > > On Tuesday 29 Nov 2016 22:18:25 Jyri Sarha wrote: >> > The module unload should not be allowed while the bridge is attached. So >> > still need to add these: >> > >> > On 11/25/16 11:02, Jyri Sarha wrote: >>> > > + >>> > > +static int tfp4

[PATCH] drm/drm_bridge: adjust bridge module's refcount

2016-11-29 Thread Jyri Sarha
Store the module that provides the bridge and adjust its refcount accordingly. The bridge module unload should not be allowed while the bridge is attached. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/drm_bridge.c | 15 --- include/drm/drm_bridge.h | 11 ++- 2 files chan

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Deucher, Alexander
> -Original Message- > From: Laurent Pinchart > [mailto:laurent.pinchart+renesas at ideasonboard.com] > Sent: Tuesday, November 29, 2016 3:57 PM > To: dri-devel at lists.freedesktop.org > Cc: Deucher, Alexander; Koenig, Christian; Alexey Brodkin; Stefan Agner; > Alison Wang; Patrik Jakobsso

[PATCH] drm: Make the connector .detect() callback optional

2016-11-29 Thread Jyri Sarha
On 11/29/16 22:56, Laurent Pinchart wrote: > Many drivers (21 to be exact) create connectors that are always > connected (for instance to an LVDS or DSI panel). Instead of forcing > them to implement a dummy .detect() handler, make the callback optional > and consider the connector as always connec

[PATCH] drm/drm_bridge: adjust bridge module's refcount

2016-11-29 Thread Jyri Sarha
On 11/29/16 23:12, Jyri Sarha wrote: > @@ -114,6 +118,9 @@ int drm_bridge_attach(struct drm_device *dev, struct > drm_bridge *bridge) > if (bridge->dev) > return -EBUSY; > > + if (!try_module_get(bridge->module)) > + return -ENOENT; > + > bridge->dev = d

[PATCH v7 0/8] drm: sun8i: Add DE2 HDMI video support

2016-11-29 Thread Maxime Ripard
top.org/archives/dri-devel/attachments/20161129/3fff35b9/attachment.sig>

[PATCH] drm: bridge: Detach all bridges in a chain at encoder cleanup time

2016-11-29 Thread Laurent Pinchart
Instead of detaching only the bridge directly connected to the encoder, detach all bridges in the chain. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/drm_encoder.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) Hi Daniel, As requested, here's a patch that makes brid

[PATCH v6 3/5] ARM: dts: sun8i-h3: add HDMI video nodes

2016-11-29 Thread Maxime Ripard
trons Embedded Linux and Kernel engineering http://free-electrons.com -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/a265faef/attachment.sig>

[Bug 97137] R7 M370 hangs with radeon.dpm=1 when running demanding graphical programs with DRI PRIME

2016-11-29 Thread bugzilla-dae...@freedesktop.org
ts.freedesktop.org/archives/dri-devel/attachments/20161129/9bfebd4a/attachment.html>

[Bug 98907] commit bf75ef3 causes Xorg lock-up

2016-11-29 Thread bugzilla-dae...@freedesktop.org
Nicolai Hähnle -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/d25c6251/attachment.html>

[Bug 98907] commit bf75ef3 causes Xorg lock-up

2016-11-29 Thread bugzilla-dae...@freedesktop.org
ou are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/0bd3f966/attachment.html>

[PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Chris Wilson
On Tue, Nov 29, 2016 at 09:29:06PM +0100, Daniel Vetter wrote: > On Tue, Nov 29, 2016 at 12:02:16PM +, Chris Wilson wrote: > > drm_fb_helper_probe_connector_modes() is always called before > > drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a > > small bit of code compaction.

[Bug 93341] Semi-random GPU lockups on radeonsi with a RadeonHD 7770 (when playing videos, running OpenGL games, WebGL apps, or after extended periods of time)

2016-11-29 Thread bugzilla-dae...@freedesktop.org
An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/a1abd358/attachment.html>

[PATCH v2 2/3] drm: Pull together probe + setup for drm_fb_helper

2016-11-29 Thread Daniel Vetter
On Tue, Nov 29, 2016 at 11:26 PM, Chris Wilson wrote: > On Tue, Nov 29, 2016 at 09:29:06PM +0100, Daniel Vetter wrote: >> On Tue, Nov 29, 2016 at 12:02:16PM +, Chris Wilson wrote: >> > drm_fb_helper_probe_connector_modes() is always called before >> > drm_setup_crtcs(), so just move the call

[PATCH] drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'

2016-11-29 Thread Christophe JAILLET
'vmw_cotable_alloc()' returns an error pointer on error, not NULL. Propagate the error code, instead of returning -ENOMEM unconditionally Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[Bug/RFC] drm/imx: warning: vblank wait timed out

2016-11-29 Thread Christopher Spinrath
Hi all, I am trying to enable the second display pipeline of my imx6q based Utilite Pro. I appended a devicetree patch to this email for reference. While it works perfectly on its own there occur kernel warnings (see below) if both pipelines are connected. Furthermore, the machine becomes almost

[PATCH v7 0/8] drm: sun8i: Add DE2 HDMI video support

2016-11-29 Thread Jernej Skrabec
those are fixed, I cannot see how this driver can be merged, > unfortunately. > > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com Best regards, Jernej Å krabec -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/244c185f/attachment-0001.html>

[PATCH 0/4] drm: Add support for the Amlogic Video Processing Unit

2016-11-29 Thread Neil Armstrong
This a repost of the previous RFC at [1] with fixes, the following patches will be sent via a PULL Request once the Amlogic maintainer acks and takes the DT patches to avoid merges conflicts. The Amlogic Meson SoCs embeds a Video Processing Unit able to output at least a Composite/CVBS Video with

[RFC PATCH 1/3] drm: Add support for Amlogic Meson Graphic Controller

2016-11-29 Thread Neil Armstrong
Hi Daniel, On 11/29/2016 09:50 AM, Daniel Vetter wrote: > Hi Neil, > > On Mon, Nov 28, 2016 at 10:34:58AM +0100, Neil Armstrong wrote: >> On 11/28/2016 09:16 AM, Daniel Vetter wrote: >>> On Fri, Nov 25, 2016 at 05:03:09PM +0100, Neil Armstrong wrote: +static void meson_cvbs_encoder_disable(st

[PATCH V3 3/3] drm: Add new driver for MXSFB controller

2016-11-29 Thread Marek Vasut
On 11/14/2016 12:47 PM, Daniel Vetter wrote: > On Mon, Nov 14, 2016 at 11:10:36AM +0100, Marek Vasut wrote: >> Add new driver for the MXSFB controller found in i.MX23/28/6SX . >> The MXSFB controller is a simple framebuffer controller with one >> parallel LCD output. Unlike the MXSFB fbdev driver t

[Bug/RFC] drm/imx: warning: vblank wait timed out

2016-11-29 Thread Christopher Spinrath
Hi Philipp, thanks for your answer! On 11/29/2016 05:38 PM, Philipp Zabel wrote: > Hi Christopher, > > Am Dienstag, den 29.11.2016, 16:45 +0100 schrieb Christopher Spinrath: >> Hi all, >> >> I am trying to enable the second display pipeline of my imx6q based >> Utilite Pro. I appended a devicetr

[PATCH V3 2/3] dt-bindings: mxsfb: Add new bindings for the MXSFB driver

2016-11-29 Thread Marek Vasut
On 11/29/2016 04:29 PM, Rob Herring wrote: > On Fri, Nov 25, 2016 at 12:26 PM, Marek Vasut wrote: >> On 11/16/2016 01:21 PM, Marek Vasut wrote: >>> Add new DT bindings for new MXSFB driver that is using the >>> OF graph to parse the video output structure instead of >>> hard-coding the display pro

[PATCH v6 3/5] ARM: dts: sun8i-h3: add HDMI video nodes

2016-11-29 Thread Jernej Skrabec
console, but X11 will work correctly. > > -- > Ken ar c'hentañ| ** Breizh ha Linux atav! ** > Jef|http://moinejf.free.fr/ Best regards, Jernej Škrabec -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161129/a5812287/attachment-0001.html>

[PATCH 2/4] ARM64: dts: meson-gx: Add Graphic Controller nodes

2016-11-29 Thread Neil Armstrong
Add Video Processing Unit and CVBS Output nodes, and enable CVBS on selected boards. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 46 ++ .../boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts| 4 ++ arch/arm64/boot/dts/amlogic/meson-gxb

[PATCH 1/4] drm: Add support for Amlogic Meson Graphic Controller

2016-11-29 Thread Neil Armstrong
The Amlogic Meson Display controller is composed of several components : DMC|---VPU (Video Processing Unit)|--HHI--| | vd1 ___ __ | | D |---| ||| |||

[PATCH v2 2/2] ARM: dts: da850-lcdk: specify the maximum pixel clock rate for tilcdc

2016-11-29 Thread Sekhar Nori
On Monday 28 November 2016 05:45 PM, Bartosz Golaszewski wrote: > Due to memory throughput constraints any display mode for which the > pixel clock rate exceeds the recommended value of 37500 KHz must be > filtered out. I think there might be more reasons than memory throughput constraints for the

[PATCH 4/4] MAINTAINERS: add entry for Amlogic DRM drivers

2016-11-29 Thread Neil Armstrong
Add myself as maintainer for Amlogic DRM drivers. Signed-off-by: Neil Armstrong --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9cab85a..b6e80c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4085,6 +4085,15 @@ S: Supported F:

<    1   2   3   >