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

2016-11-30 Thread Hans de Goede
Hi, On 29-11-16 19:57, Ville Syrjälä wrote: > 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

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

2016-11-30 Thread Andrzej Hajda
On 30.11.2016 09:16, Laurent Pinchart wrote: > Hi Andrzej, > > On Wednesday 30 Nov 2016 09:11:56 Andrzej Hajda wrote: >> On 29.11.2016 22:12, Jyri Sarha wrote: >>> Store the module that provides the bridge and adjust its refcount >>> accordingly. The bridge module unload should not be allowed while

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

2016-11-30 Thread Jean-Francois Moine
On Wed, 30 Nov 2016 10:20:21 +0200 Laurent Pinchart wrote: > > Well, I don't see what this connector can be. > > May you give me a DT example? > > Sure. > > arch/arm/boot/dts/r8a7791-koelsch.dts > > /* HDMI encoder */ > > hdmi at 39 { > compatible = "adi,adv751

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

2016-11-30 Thread Laurent Pinchart
Hi Jyri, On Wednesday 30 Nov 2016 11:13:41 Jyri Sarha wrote: > On 11/30/16 11:03, Laurent Pinchart wrote: > >>> This would require combining lookup and attach in all cases. I'm not > >>> sure > >>> > > that would be very convenient for drivers. Keeping the two > > operations separate woul

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

2016-11-30 Thread Laurent Pinchart
Hi Andrzej, On Wednesday 30 Nov 2016 10:26:24 Andrzej Hajda wrote: > On 30.11.2016 09:16, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 09:11:56 Andrzej Hajda wrote: > >> On 29.11.2016 22:12, Jyri Sarha wrote: > >>> Store the module that provides the bridge and adjust its refcount > >>> acc

[PATCH] drm/ast: Fixed system may hang in booting

2016-11-30 Thread Y.C. Chen
From: "Y.C. Chen" There is another thread still access standard VGA I/O while loading drm driver. Disable standard VGA access to avoid this issue. Signed-off-by: Y.C. Chen --- drivers/gpu/drm/ast/ast_main.c | 6 ++ drivers/gpu/drm/ast/ast_post.c | 6 +- 2 files changed, 7 insertions(+)

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

2016-11-30 Thread Philipp Zabel
Am Dienstag, den 29.11.2016, 18:37 +0100 schrieb 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

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

2016-11-30 Thread Philipp Zabel
Am Dienstag, den 29.11.2016, 22:56 +0200 schrieb 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 co

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

2016-11-30 Thread Laurent Pinchart
Hi Jean-François, On Wednesday 30 Nov 2016 10:27:57 Jean-Francois Moine wrote: > On Wed, 30 Nov 2016 10:20:21 +0200 Laurent Pinchart wrote: > >> Well, I don't see what this connector can be. > >> May you give me a DT example? > > > > Sure. > > > > arch/arm/boot/dts/r8a7791-koelsch.dts > > > >

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

2016-11-30 Thread Laurent Pinchart
Hi Daniel, On Wednesday 30 Nov 2016 10:12:01 Daniel Vetter wrote: > On Wed, Nov 30, 2016 at 10:25:57AM +0200, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 09:13:00 Daniel Vetter wrote: > >> On Wed, Nov 30, 2016 at 12:06:25AM +0200, Laurent Pinchart wrote: > >>> On Tuesday 29 Nov 2016 23:12

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

2016-11-30 Thread Laurent Pinchart
Hi Jean-François, On Wednesday 30 Nov 2016 10:05:45 Jean-Francois Moine wrote: > On Tue, 29 Nov 2016 22:36:50 +0100 Maxime Ripard wrote: > > On Tue, Nov 29, 2016 at 11:18:35AM +0100, Jean-Francois Moine wrote: > > > This patchset series adds HDMI video support to the Allwinner > > > sun8i SoCs wh

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

2016-11-30 Thread Laurent Pinchart
Hi Archit, On Wednesday 30 Nov 2016 10:35:02 Archit Taneja wrote: > On 11/29/2016 11:27 PM, Laurent Pinchart wrote: > > 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 getti

[PATCH] drm/omap: fix primary-plane's possible_crtcs

2016-11-30 Thread Tomi Valkeinen
We set the possible_crtc for all planes to "(1 << priv->num_crtcs) - 1", which is fine as the HW planes can be used fro all crtcs. However, when we're doing that, we are still incrementing 'num_crtcs', and we'll end up with bad possible_crtcs, preventing the use of the primary planes. We should ha

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

2016-11-30 Thread Jean-Francois Moine
On Wed, 30 Nov 2016 11:52:25 +0200 Laurent Pinchart wrote: > Hi Jean-François, > > On Wednesday 30 Nov 2016 10:27:57 Jean-Francois Moine wrote: > > On Wed, 30 Nov 2016 10:20:21 +0200 Laurent Pinchart wrote: > > >> Well, I don't see what this connector can be. > > >> May you give me a DT example

[PATCH v10 11/13] drm/mediatek: add dsi rxtx control

2016-11-30 Thread CK Hu
Hi, YT: On Fri, 2016-11-25 at 18:34 +0800, YT Shen wrote: > add non-continuous clock mode and EOT packet control for dsi > I think commit title should be 'drm/mediatek: add non-continuous clock mode and EOT packet control for dsi', and commit message should describe more information about this m

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

2016-11-30 Thread Daniel Vetter
On Wed, Nov 30, 2016 at 11:56:25AM +0200, Laurent Pinchart wrote: > Hi Daniel, > > On Wednesday 30 Nov 2016 10:12:01 Daniel Vetter wrote: > > On Wed, Nov 30, 2016 at 10:25:57AM +0200, Laurent Pinchart wrote: > > > On Wednesday 30 Nov 2016 09:13:00 Daniel Vetter wrote: > > >> On Wed, Nov 30, 2016 a

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

2016-11-30 Thread Archit Taneja
On 11/30/2016 03:53 PM, Laurent Pinchart wrote: > Hi Archit, > > On Wednesday 30 Nov 2016 10:35:02 Archit Taneja wrote: >> On 11/29/2016 11:27 PM, Laurent Pinchart wrote: >>> On Tuesday 29 Nov 2016 15:57:06 Archit Taneja wrote: On 11/29/2016 02:34 PM, Laurent Pinchart wrote: > Instead of

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

2016-11-30 Thread Laurent Pinchart
Hi Daniel, On Wednesday 30 Nov 2016 11:55:20 Daniel Vetter wrote: > On Wed, Nov 30, 2016 at 11:56:25AM +0200, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 10:12:01 Daniel Vetter wrote: > >> On Wed, Nov 30, 2016 at 10:25:57AM +0200, Laurent Pinchart wrote: > >>> On Wednesday 30 Nov 2016 09:

[PATCH v10 09/13] drm/mediatek: add mipi_tx data rate check

2016-11-30 Thread CK Hu
Hi, YT: On Fri, 2016-11-25 at 18:34 +0800, YT Shen wrote: > modify data rate limitation (>lGbps/lane) for mipitx > I think MT2701 DRM can work correctly without this patch. Why do you put this patch in MT2701 series? Maybe you can send this patch independently. Regards, CK > Signed-off-by: sh

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

2016-11-30 Thread Laurent Pinchart
Hi Archit, On Wednesday 30 Nov 2016 16:30:53 Archit Taneja wrote: > On 11/30/2016 03:53 PM, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 10:35:02 Archit Taneja wrote: > >> On 11/29/2016 11:27 PM, Laurent Pinchart wrote: > >>> On Tuesday 29 Nov 2016 15:57:06 Archit Taneja wrote: > On 1

[PATCH 01/36] drm/omap: work-around for errata i886

2016-11-30 Thread Tomi Valkeinen
DRA7 errata i886 (FPDLink PLL Unlocks With Certain SoC PLL M/N Values) says that FPDLink is sensitive to jitter on the vout clock, and that low PLL M and N values result in more jitter than high M and N values. This patch implements a workaround for the problem by changing the PLL setup to search

[PATCH 00/36] drm/omap: miscallaneous improvements

2016-11-30 Thread Tomi Valkeinen
Hi, Here's a series containing miscallaneous improvements for omapdrm from TI's kernel. The main things here are probably IRQ based HDMI hotplug and the refactoring of dispc to expose dispc_ops. The dispc_ops are needed for DSS6 work, which I have not yet sent. Tomi Hemant Hariyani (1): drm/

[PATCH 04/36] drm/omap: remove divider constraint from hsdiv

2016-11-30 Thread Tomi Valkeinen
The driver only uses even dividers for hsdiv when pclk >= 100MHz, as odd dividers can create uneven duty cycle. However, while this holds true for some dividers like DISPC's LCK and PCK dividers, it is not actually true for hsdiv. hsdiv always produces even duty cycle, so the constraint can be rem

[PATCH 06/36] drm/omap: improve DPI clock selection on DRA7xx

2016-11-30 Thread Tomi Valkeinen
The clock source selection for the LCD outputs is too hardcoded at the moment. For example, LCD3 is set to use PLL2_1, and PLL2 doesn't exist on DRA72x SoCs. There are quite many ways to configure the clocks, even using HDMI PLL for LCD outputs, but enabling full configuration of the clocks is rat

[PATCH 27/36] drm/omap: display: Add displays in sorted order to the panel_list

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi Keep the panel_list ordered according to aliases. The DRM connectors will be created following the panel_list. By keeping the list ordered the DRM connectors will be created in the same order regardless of the driver probe order. Signed-off-by: Peter Ujfalusi Signed-off-by:

[PATCH 22/36] drm/omap: fix replication logic

2016-11-30 Thread Tomi Valkeinen
DSS uses "replication logic" to convert color components from smaller bit widths to bigger bit widths. Without replication logic, the color component would be shifted and the least significant bits would be left at 0, whereas with replication logic, the least significat bits will be filled with the

[PATCH 16/36] drm/omap: move dispc related dss-feat funcs to dispc

2016-11-30 Thread Tomi Valkeinen
omapdrm still uses a few non-dispc functions: dss_feat_get_num_mgrs(), dss_feat_get_num_ovls() and dss_feat_get_supported_color_modes(). We want to provide omapdrm a single dispc_ops function pointer struct so that omapdrm will use either the current omapdss or the new omapdss6 driver depending on

[PATCH 11/36] drm/omap: add omapdss-base.ko

2016-11-30 Thread Tomi Valkeinen
We are working towards enabling omapdss6, which will consists of a new dss, dispc and dpi drivers. omapdss6 will be a new module. The panel, encoder and omapdrm will need to use either the current omapdss driver or the new omapdss6 driver, depending on the platform. This will be implemented with a

[PATCH 31/36] drm/omap: Support for HDMI hot plug detection

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi The HPD signal can be used for detecting HDMI cable plug and unplug event without the need for polling the status of the line. This will speed up detecting such event because we do not need to wait for the next poll event to notice the state change. Signed-off-by: Peter Ujfa

[PATCH 35/36] drm/omap: dispc: improve debug print of display flags

2016-11-30 Thread Tomi Valkeinen
Instead of printing 0/1 for display flags like vsync high/low, use a tri-state print (-1/0/1) to indicate the "undefined" state. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 13/36] drm/omap: output: use dev_err instead of DSSERR

2016-11-30 Thread Tomi Valkeinen
We don't have omapdss's custom error printing functions in the common omapdss-base module, to which we want to move output.c. This patch changes output.c to use dev_err instead of DSSERR so that it doesn't depend on DSSERR. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/output.c

[PATCH 14/36] drm/omap: display: don't use dsi_get_pixel_size()

2016-11-30 Thread Tomi Valkeinen
display.c uses dsi_get_pixel_size() which is implemented in the DSI driver, and we won't have that in the omapdss-base module, to which we want to move display.c This patch changes display.c not to use dsi_get_pixel_size(). The call can be replaced with a simple check for OMAP_DSS_DSI_FMT_RGB565.

[PATCH 24/36] drm/omap: dss: Support for detecting display stack readiness

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi When omapdss is loaded (all core components are in place) create a list of devices used in the display graph. This list later can be used by omapdrm via the omapdss_stack_is_ready() function to check that these components are loaded. Based on this information, omapdrm can def

[PATCH 18/36] drm/omap: fill dispc_ops

2016-11-30 Thread Tomi Valkeinen
This patch changes the current omapdss driver to fill a dispc_ops struct and set it to omapdss-base. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 40 + 1 file changed, 40 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.

[PATCH 20/36] drm/omap: remove all EXPORT_SYMBOLs from dispc.c

2016-11-30 Thread Tomi Valkeinen
omapdrm now uses dispc_ops instead of direct function calls so we can remove all EXPORT_SYMBOLs from dispc. Most of the functions can also be made static, but a few are used outside dispc.c. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 87 +---

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Tomi Valkeinen
Add DRM property for crtc background color property. Background color is shown on areas where there are no planes. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_crtc.c | 60 ++--- drivers/gpu/drm/omapdrm/omap_drv.c | 9 ++ drivers/gpu/drm/om

[PATCH 09/36] drm/omap: fix HDMI sync polarities

2016-11-30 Thread Tomi Valkeinen
While implementing writeback support, odd behavior of WBDELAYCOUNT was observed with the combination of WB capture and HDMI. The result of the debugging was that the HDMI sync polarities are not set correctly. The current code sets the sync polarities going from HDMI WP to DISPC according to the v

[PATCH 10/36] drm/omap: add omapdss_of_get_endpoint() helper

2016-11-30 Thread Tomi Valkeinen
Add omapdss_of_get_endpoint() helper function to get the endpoint node for the given port index and endpoint index. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dss-of.c | 61 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 3 ++ 2 files changed, 64

[PATCH 21/36] drm/omap: remove unused dispc_wb_enable & dispc_wb_is_enabled

2016-11-30 Thread Tomi Valkeinen
Remove two unused WB functions. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 10 -- drivers/gpu/drm/omapdrm/dss/dss.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index cfc6

[PATCH 15/36] drm/omap: move display, dss-of, output to omapdss-base

2016-11-30 Thread Tomi Valkeinen
This patch moves the common parts of omapdss to omapdss-base so that both the current omapdss driver and the new omapdss6 driver can use them. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/Makefile | 6 +++--- drivers/gpu/drm/omapdrm/dss/display.c | 2 -- drivers/gpu/drm/omapdrm

[PATCH 28/36] drm/omap: Create fbdev emulation only for the first DRM connector

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi Add fbdev emulation only for the first DRM connector. When the fbdev emulation was created for all connectors with different resolution, the lower res display would only be able to show part of the framebuffer. By creating the fbdev emulation only for the first connector we c

[PATCH 17/36] drm/omap: add dispc_ops

2016-11-30 Thread Tomi Valkeinen
We want to change the dispc API from plain functions to a struct with functions pointers, so that omapdrm can call either omapdss or omapdss6 depending on the platform. This patch adds 'struct dispc_ops' and adds functions to omapdss-base to set and get the ops. Signed-off-by: Tomi Valkeinen ---

[PATCH 23/36] drm/omap: dss: Functions to check components in the display/output list

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi The functions can be used to check a component (by it's of_node) if it is part of the omapdss display or output list. If the component is found, it means that the driver is loaded. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss

[PATCH 25/36] drm/omap: Use omapdss_stack_is_ready() to check that the display stack is up

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi Instead of 'guessing' based on aliases of the status of the DSS drivers, use the new interface to check that all needed drivers are loaded. In this way we can be sure that all needed drivers are loaded so it is safe to continue the probing of omapdrm. This method will allow t

[PATCH 34/36] drm/omap: displays: panel-dpi: Support for handling backlight devices

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi The associated backlight device can be configured via DT by providing the phandle to the device. If the backlight device is configured, the driver can manage the backligt along with the panel's power state, iow it can turn on the backlight when the panel is enabled and turn

[PATCH 08/36] drm/omap: Add support for render nodes

2016-11-30 Thread Tomi Valkeinen
From: Hemant Hariyani Add support for render nodes in omap driver and allow required ioctls to be accessible via render nodes. This enables unprivileged clients to allocate resources like GEM buffers for rendering their content into. Mode setting (KMS ioctls) is not allowed using render nodes. T

[PATCH 07/36] drm/omap: Init fbdev emulation only when we have displays

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi Do not try to init the fbdev if either num_crtcs or num_connectors is 0. In this case we do not have display so the fbdev init would fail anyways. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 +++ 1 file changed,

[PATCH 19/36] drm/omap: use dispc_ops

2016-11-30 Thread Tomi Valkeinen
Change omapdrm to get dispc_ops and use that to call the dispc functions instead or direct function calls. The change is very straightforward. The only problem was in omap_crtc_init() which calls pipe2vbl(crtc), and at that point of time the crtc->dev link, which is used to get the dispc_ops, has

[PATCH 02/36] drm/omap: subclass drm_crtc_state

2016-11-30 Thread Tomi Valkeinen
We need to extend drm_crtc_state to be able to handle omap specific crtc properties. This patch adds the necessary code to do the subclassing, without adding any properties. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_crtc.c | 54 ++--- 1 file c

[PATCH 05/36] drm/omap: decrease min width & height

2016-11-30 Thread Tomi Valkeinen
mode_config's min_width and min_height are both set to 32, which is overly restrictive. The real limits depend on whether we're configuring a crtc or a plane, but a limit of 8x2 is safe for both cases. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/omap_drv.c | 4 ++-- 1 file changed

[PATCH 29/36] drm/omap: fix max fb width

2016-11-30 Thread Tomi Valkeinen
Maximum framebuffer width on OMAP5+ DSS is 4096, instead of 2048. This patch makes omapdrm ask the respective dispc for the limits. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dispc.c | 9 + drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 + drivers/gpu/drm/omapdrm/omap_d

[PATCH 30/36] drm/omap: poll only connectors where the connect/disconnect can be checked

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi When the connector associated detect callback is not provided, we can not detect if the display is connected or disconnected. These displays does not support hot plug, they are always connected. Let DRM know that connectors w/o detect callback should not be polled. Signed-of

[PATCH 33/36] drm/omap: displays: encoder-tpd12s015: Support for hot plug detection

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi Use interrupt handler for hpd GPIO to react to HPD changes. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- .../gpu/drm/omapdrm/displays/encoder-tpd12s015.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/gpu/drm/omapd

[PATCH 26/36] drm/omap: fix plane update warning when crtc is disabled

2016-11-30 Thread Tomi Valkeinen
If omap_plane_atomic_update() is called when the crtc is disabled, and the timings are zero, we'll see the following warning: omapdss DISPC error: cannot calculate scaling settings: pclk is zero omapdrm omapdrm.0: Failed to setup plane vid2 It shouldn't cause any issues, as the crtc is disabled s

[PATCH 36/36] drm/omap: fix display SYNC/DE flags

2016-11-30 Thread Tomi Valkeinen
At the moment VSYNC/HSYNC/DE high/low flags set by the panel/encoder drivers get lost when the videotimings are translated to DRM's videomode, as DRM's mode does not have corresponding flags. DRM has bus-flags for this purpose, and while it lacks a few flags at the moment, it should be used here.

[RFC 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Benjamin Gaignard
Some platforms without MMU have display drivers where a drm/kms driver could be implemented. Before doing such kind of thing drm/kms must allow to use mmuless devices. This patch proposes to remove MMU configuration flag and add some cma helpers functions to help implementing mmuless display driver

[RFC 0/1] DRM: allow to use mmuless devices

2016-11-30 Thread Benjamin Gaignard
Hello, The purpose of this RFC is to understand what is needed to allow to write drm/kms drivers for devices without MMU. There are some MCU platforms, like stm32f4, which don't have MMU but have hardware display IP where is it possible to implement a drm/kms driver. Obviously that start by remo

[PATCH 32/36] drm/omap: displays: connector-hdmi: Support for hot plug detection

2016-11-30 Thread Tomi Valkeinen
From: Peter Ujfalusi If the hpd_gpio is valid, use interrupt handler to react to HPD changes. In case the hpd_gpio is not valid, try to enable hpd detection on the encoder if it supports it. Signed-off-by: Peter Ujfalusi Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/displays/conne

[PATCH 12/36] drm/omap: move dss_initialized to omapdss-base

2016-11-30 Thread Tomi Valkeinen
omapdss_is_initialized() is used to find out if omapdss has been probed successfully. This patch moves the related code to the common omapdss-base module, so that the same support will be there for both omapdss and omapdss6. Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/base.c

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Wednesday 30 Nov 2016 13:17:05 Tomi Valkeinen wrote: > Add DRM property for crtc background color property. Background > color is shown on areas where there are no planes. The background property is useful for the rcar-du driver as well, and I assume for a b

[RFC 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Laurent Pinchart
Hi Benjamin, Thank you for the patch. On Wednesday 30 Nov 2016 12:21:24 Benjamin Gaignard wrote: > Some platforms without MMU have display drivers where a drm/kms driver > could be implemented. > Before doing such kind of thing drm/kms must allow to use mmuless > devices. > This patch proposes to

[PATCH] drm/bridge: tc358767: don't warn if display side ASSR enable fails

2016-11-30 Thread Lucas Stach
ASSR is an optional feature, so it's a valid operating condition for the display to reject ASSR enable. Demote the warning to the debug level. Signed-off-by: Lucas Stach --- drivers/gpu/drm/bridge/tc358767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/brid

[PATCH v2] usb: core:hub.c: do not print error log on -enomem

2016-11-30 Thread gre...@linuxfoundation.org
On Wed, Nov 30, 2016 at 11:40:28AM +, Atul Raj wrote: > changes in v2 > - added braces as suggested. Why is this here? > > drivers/usb/core/hub.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) No signed off? You didn't cc: linux-usb at vger? Come on, please step back

[PATCH] usb:hub: readibility and consistency in coding style

2016-11-30 Thread gre...@linuxfoundation.org
On Wed, Nov 30, 2016 at 11:51:39AM +, Atul Raj wrote: > It is suggested to keep braces if there is a comment in if case as > comment also takes a line. > --- > drivers/usb/core/hub.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Ok, this is getting to be a joke. Take a few days

[Bug 98897] Macbook pro 11,5 screen flicker when AC adapter plugged in

2016-11-30 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161130/3dfdb342/attachment.html>

[RFC 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Benjamin Gaignard
2016-11-30 12:35 GMT+01:00 Laurent Pinchart : > Hi Benjamin, > > Thank you for the patch. > > On Wednesday 30 Nov 2016 12:21:24 Benjamin Gaignard wrote: >> Some platforms without MMU have display drivers where a drm/kms driver >> could be implemented. >> Before doing such kind of thing drm/kms must

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Tomi Valkeinen
-- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161130/3c052de8/attachment.sig>

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

2016-11-30 Thread Daniel Vetter
On Wed, Nov 30, 2016 at 01:03:20PM +0200, Laurent Pinchart wrote: > On Wednesday 30 Nov 2016 11:55:20 Daniel Vetter wrote: > > Why exactly do you want to hotplug encoders? Or bridges fwiw ... since at > > least only making those hotpluggable will make the uabi story easier since > > they're not exp

[PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01

2016-11-30 Thread Lucas Stach
Convert from a single mode to display timings, which allow to describe the minimum/maximium blanking and clock rates, add enable/disable delays and provide the bus format. Signed-off-by: Lucas Stach --- drivers/gpu/drm/panel/panel-simple.c | 30 +- 1 file changed, 17

[PATCH 3/3] drm/panel: simple: add support for AUO G185HAN01

2016-11-30 Thread Lucas Stach
This adds support for the AU Optronics G185HAN01 18.5" LVDS FullHD TFT LCD panel, which can be supported by the simple panel driver. Signed-off-by: Lucas Stach --- .../bindings/display/panel/auo,g185han01.txt | 7 + drivers/gpu/drm/panel/panel-simple.c | 32 +

[PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01

2016-11-30 Thread Lucas Stach
This adds support for the AU Optronics G133HAN01 13.3" LVDS FullHD TFT LCD panel, which can be supported by the simple panel driver. Signed-off-by: Lucas Stach --- .../bindings/display/panel/auo,g133han01.txt | 7 + drivers/gpu/drm/panel/panel-simple.c | 32 +

[PATCH] drm/omap: fix primary-plane's possible_crtcs

2016-11-30 Thread Ville Syrjälä
On Wed, Nov 30, 2016 at 12:38:51PM +0200, Tomi Valkeinen wrote: > We set the possible_crtc for all planes to "(1 << priv->num_crtcs) - 1", > which is fine as the HW planes can be used fro all crtcs. However, when > we're doing that, we are still incrementing 'num_crtcs', and we'll end > up with bad

[RFC v2 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Benjamin Gaignard
Some SoC without MMU have display driver where a drm/kms driver could be implemented. Before doing such kind of thing drm/kms must allow to use mmuless devices. This patch propose to remove MMU configuration flag and add some cma helpers functions to help implementing mmuless display driver versio

[PATCH]i915: use WARN_ON_ONCE in intel_dp_aux_transfer

2016-11-30 Thread Ville Syrjälä
On Thu, Nov 24, 2016 at 05:03:20PM +0800, Dave Young wrote: > On 11/24/16 at 10:53am, Jani Nikula wrote: > > On Thu, 24 Nov 2016, Dave Young wrote: > > > I see a lot of below warning: > > > > No, we must not hide this under the carpet. There's a bug at fdo about > > this, and we need to fix it. >

[RFC v2 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Laurent Pinchart
Hi Benjamin, Thank you for the patch. On Wednesday 30 Nov 2016 14:19:18 Benjamin Gaignard wrote: > Some SoC without MMU have display driver where a drm/kms driver > could be implemented. > Before doing such kind of thing drm/kms must allow to use mmuless > devices. > This patch propose to remove

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

2016-11-30 Thread Archit Taneja
On 11/30/2016 4:35 PM, Laurent Pinchart wrote: > Hi Archit, > > On Wednesday 30 Nov 2016 16:30:53 Archit Taneja wrote: >> On 11/30/2016 03:53 PM, Laurent Pinchart wrote: >>> On Wednesday 30 Nov 2016 10:35:02 Archit Taneja wrote: On 11/29/2016 11:27 PM, Laurent Pinchart wrote: > On Tuesda

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Daniel Vetter
On Wed, Nov 30, 2016 at 01:17:05PM +0200, Tomi Valkeinen wrote: > Add DRM property for crtc background color property. Background > color is shown on areas where there are no planes. > > Signed-off-by: Tomi Valkeinen Where is the userspace for this? Why is this not part of the general blending e

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Laurent Pinchart
On Wednesday 30 Nov 2016 14:51:26 Tomi Valkeinen wrote: > On 30/11/16 13:25, Laurent Pinchart wrote: > > Hi Tomi, > > > > Thank you for the patch. > > > > On Wednesday 30 Nov 2016 13:17:05 Tomi Valkeinen wrote: > >> Add DRM property for crtc background color property. Background > >> color is sho

[Bug 91880] Radeonsi on Grenada cards (r9 390) exceptionally unstable and poorly performing

2016-11-30 Thread bugzilla-dae...@freedesktop.org
ct values? Has anyone checked to see if the driver is properly setting the clock? -- 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/at

[PATCH 07/36] drm/omap: Init fbdev emulation only when we have displays

2016-11-30 Thread Daniel Vetter
On Wed, Nov 30, 2016 at 01:17:09PM +0200, Tomi Valkeinen wrote: > From: Peter Ujfalusi > > Do not try to init the fbdev if either num_crtcs or num_connectors is 0. > In this case we do not have display so the fbdev init would fail anyways. > > Signed-off-by: Peter Ujfalusi > Signed-off-by: Tomi

[PATCH] usb:hub: readibility and consistency in coding style

2016-11-30 Thread gre...@linuxfoundation.org
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I inclu

[RFC 1/1] drm: allow to use mmuless SoC

2016-11-30 Thread Daniel Vetter
On Wed, Nov 30, 2016 at 12:21:24PM +0100, Benjamin Gaignard wrote: > Some platforms without MMU have display drivers where a drm/kms driver > could be implemented. > Before doing such kind of thing drm/kms must allow to use mmuless > devices. > This patch proposes to remove MMU configuration flag a

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Ville Syrjälä
On Wed, Nov 30, 2016 at 03:34:58PM +0200, Laurent Pinchart wrote: > On Wednesday 30 Nov 2016 14:51:26 Tomi Valkeinen wrote: > > On 30/11/16 13:25, Laurent Pinchart wrote: > > > Hi Tomi, > > > > > > Thank you for the patch. > > > > > > On Wednesday 30 Nov 2016 13:17:05 Tomi Valkeinen wrote: > > >>

[PATCH] usb: host: replace symbolic permission with octal

2016-11-30 Thread gre...@linuxfoundation.org
On Wed, Nov 30, 2016 at 01:49:02PM +, Amit Kumar Kushwaha wrote: > This patch handles warning message for preferring octal > permissions over Symbolic permission for module parameter That makes no sense at all. What warning message? Build time? Run time? Please do cleanup patches on driver

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Laurent Pinchart
Hi Ville, On Wednesday 30 Nov 2016 15:53:53 Ville Syrjälä wrote: > On Wed, Nov 30, 2016 at 03:34:58PM +0200, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 14:51:26 Tomi Valkeinen wrote: > >> On 30/11/16 13:25, Laurent Pinchart wrote: > >>> On Wednesday 30 Nov 2016 13:17:05 Tomi Valkeinen

[PATCH 05/11] locking/ww_mutex: Add waiters in stamp order

2016-11-30 Thread Chris Wilson
On Mon, Nov 28, 2016 at 01:20:06PM +0100, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Add regular waiters in stamp order. Keep adding waiters that have no > context in FIFO order and take care not to starve them. > > While adding our task as a waiter, back off if we detect that there is a

[Bug 91880] Radeonsi on Grenada cards (r9 390) exceptionally unstable and poorly performing

2016-11-30 Thread bugzilla-dae...@freedesktop.org
bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161130/6d4cdbf4/attachment.html>

[GIT PULL] tilcdc changes for 4.10

2016-11-30 Thread Jyri Sarha
Hi Dave, Please pull these collected fixes and improvements for v4.10. The tag has been rebased on top of relatively recent drm-next. Thanks, Jyri The following changes since commit 7625e05286cf3f37c8a5e633379a4d014ddbe555: Merge branch 'drm-tda998x-devel' of git://git.armlinux.org.uk/~rmk/lin

[PATCH] drm/omap: fix primary-plane's possible_crtcs

2016-11-30 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Wednesday 30 Nov 2016 12:38:51 Tomi Valkeinen wrote: > We set the possible_crtc for all planes to "(1 << priv->num_crtcs) - 1", > which is fine as the HW planes can be used fro all crtcs. However, when > we're doing that, we are still incrementing 'num_crtcs',

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Ville Syrjälä
On Wed, Nov 30, 2016 at 03:56:38PM +0200, Laurent Pinchart wrote: > Hi Ville, > > On Wednesday 30 Nov 2016 15:53:53 Ville Syrjälä wrote: > > On Wed, Nov 30, 2016 at 03:34:58PM +0200, Laurent Pinchart wrote: > > > On Wednesday 30 Nov 2016 14:51:26 Tomi Valkeinen wrote: > > >> On 30/11/16 13:25, L

[Intel-gfx] [PATCH 01/37] drm/i915: Add local 'fb' variables

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:37PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > While at it switch over to

[PATCH 04/37] drm/mgag200: Add local 'fb' variable

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:40PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > Cc: Dave Airlie > Signed-

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Laurent Pinchart
Hi Ville, On Wednesday 30 Nov 2016 16:40:30 Ville Syrjälä wrote: > On Wed, Nov 30, 2016 at 03:56:38PM +0200, Laurent Pinchart wrote: > > On Wednesday 30 Nov 2016 15:53:53 Ville Syrjälä wrote: > >> On Wed, Nov 30, 2016 at 03:34:58PM +0200, Laurent Pinchart wrote: > >>> On Wednesday 30 Nov 2016

[Bug 97634] [amdgpu SI] multigpu setup crashes during boot when dpm=1

2016-11-30 Thread bugzilla-dae...@freedesktop.org
assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161130/0ca88c19/attachment.html>

[PATCH 05/37] drm/ast: Add local 'fb' variables

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:41PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > Cc: Dave Airlie > Signed-

[PATCH 06/37] drm/gma500: Add some local 'fb' variables

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:42PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > Cc: Patrik Jakobsson > Si

[PATCH 03/36] drm/omap: add crtc background property

2016-11-30 Thread Ville Syrjälä
On Wed, Nov 30, 2016 at 04:46:36PM +0200, Laurent Pinchart wrote: > Hi Ville, > > On Wednesday 30 Nov 2016 16:40:30 Ville Syrjälä wrote: > > On Wed, Nov 30, 2016 at 03:56:38PM +0200, Laurent Pinchart wrote: > > > On Wednesday 30 Nov 2016 15:53:53 Ville Syrjälä wrote: > > >> On Wed, Nov 30, 201

[PATCH 07/37] drm/cirrus: Add some local 'fb' variables

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:43PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > Cc: Dave Airlie > Signed-

[PATCH 10/37] drm/nouveau: Fix crtc->primary->fb vs. drm_fb fail

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:46PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > So it looks like the code is trying to pick between the passed in fb and > crtc->primary->fb based on that funky 'bool atomic'. But later it will > mix uses of both drm_fb (which was pic

[PATCH 11/37] drm/nouveau: Add local 'fb' variables

2016-11-30 Thread Daniel Vetter
On Fri, Nov 18, 2016 at 09:52:47PM +0200, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Add a local 'fb' variable to a few places to get rid of the > 'crtc->primary->fb' stuff. Looks neater and helps me with my poor > coccinelle skills later. > > Cc: Ben Skeggs > Signed-o

  1   2   3   >