[Bug 85667] GPU lockup when playing H264 video with vlc on Radeon 3850HD and R600_uvd.bin loaded

2014-10-31 Thread bugzilla-dae...@freedesktop.org
nstable for playback, this time with the full dmesg output. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/2014103

[PATCH 00/72] staging imx-drm new features and fixes

2014-10-31 Thread Fabio Estevam
Hi Steve, On Fri, Oct 31, 2014 at 8:53 PM, Steve Longerbeam wrote: > Hi, this affects only Freescale imx IPU and imx-drm staging drivers, > except for two patches that affect drm core (patch 53 and 63, see below). > > New features for imx-drm staging driver: > > - Support for multi-display (HDMI

[Bug 82889] [drm:si_dpm_set_power_state] *ERROR* si_disable_ulv failed

2014-10-31 Thread bugzilla-dae...@freedesktop.org
veri. It's specifically related Southern Islands GPUs. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141031/f0ed9f3e/attachment.html>

[PATCH 1/3] drm: Add a note to drm_property_create() about property lifetime

2014-10-31 Thread Daniel Vetter
On Fri, Oct 31, 2014 at 02:39:11PM +, Damien Lespiau wrote: > Cc: Chandra Konduru > Cc: Daniel Vetter > Signed-off-by: Damien Lespiau On the entire series: Reviewed-by: Daniel Vetter Merged into topic/core-stuff for shepherding until it lands in drm-next. -Daniel > --- > drivers/gpu/dr

[PATCH] drm/vmwgfx: fix lock breakage

2014-10-31 Thread Daniel Vetter
On Thu, Oct 30, 2014 at 01:39:04PM -0400, Rob Clark wrote: > After: > > commit d059f652e73c35678d28d4cd09ab2cec89696af9 > Author: Daniel Vetter > AuthorDate: Fri Jul 25 18:07:40 2014 +0200 > > drm: Handle legacy per-crtc locking with full acquire ctx > > drm_mode_cursor_common() was swi

Modesetting lock changes breaks vmwgfx since 3.18-rc1

2014-10-31 Thread Daniel Vetter
On Thu, Oct 30, 2014 at 03:41:31PM +0100, Thomas Hellstrom wrote: > Hi! > > Details in > > https://bugzilla.redhat.com/show_bug.cgi?id=1155825 > > Can whoever broke the driver please make an effort to fix it up? > > Daniel, You've been named as a suspect. I'm not sure if that is true. Yeah the

[Bug 82889] [drm:si_dpm_set_power_state] *ERROR* si_disable_ulv failed

2014-10-31 Thread bugzilla-dae...@freedesktop.org
part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141031/42d0207c/attachment.html>

[PATCH 1/3] drm: Pull drm_crtc.h into the kerneldoc template

2014-10-31 Thread Daniel Vetter
On Fri, Oct 31, 2014 at 07:25:08AM -0400, Sean Paul wrote: > On Wed, Oct 29, 2014 at 5:12 AM, Daniel Vetter > wrote: > > While writing atomic docs I've noticed that I don't get any errors > > for my screw-ups in drm_crtc.h. Fix this immediately. > > > > This just does the bare minimum to get star

[PATCH 3/5] drm/ttm: Use only DRM_MM_SEARCH_BELOW for TTM_PL_FLAG_TOPDOWN

2014-10-31 Thread Daniel Vetter
On Thu, Oct 30, 2014 at 04:07:05PM +0100, Thomas Hellstrom wrote: > On 10/28/2014 12:10 PM, Daniel Vetter wrote: > > On Tue, Oct 28, 2014 at 06:35:04PM +0900, Michel Dänzer wrote: > >> From: Michel Dänzer > >> > >> DRM_MM_SEARCH_BEST gets the smallest hole which can fit the BO. That seems > >> a

[PATCH 00/72] staging imx-drm new features and fixes

2014-10-31 Thread Steve Longerbeam
On 10/31/2014 05:09 PM, Fabio Estevam wrote: > Hi Steve, > > On Fri, Oct 31, 2014 at 8:53 PM, Steve Longerbeam > wrote: >> Hi, this affects only Freescale imx IPU and imx-drm staging drivers, >> except for two patches that affect drm core (patch 53 and 63, see below). >> >> New features for imx-d

[PATCH v3 0/9] Renesas R-Car DU HDMI support

2014-10-31 Thread Simon Horman
On Thu, Oct 30, 2014 at 01:40:34PM +0200, Laurent Pinchart wrote: > Hi Simon, > > On Thursday 30 October 2014 20:29:22 Simon Horman wrote: > > 2014/10/30 20:05 "Laurent Pinchart" : > > > On Tuesday 28 October 2014 15:30:05 Dave Airlie wrote: > > >>> The last patch instantiates the HDMI encoder in

[RFC] drm: Add utility function to check for edp1.4

2014-10-31 Thread Daniel Vetter
On Wed, Oct 29, 2014 at 02:42:29PM +0100, Thierry Reding wrote: > On Wed, Oct 22, 2014 at 11:45:23AM +0530, sonika.jindal at intel.com wrote: > > From: Sonika Jindal > > > > v2: Reading DP_EDP_REV, only when DISPLAY_CONTROL_CAPABLE field is set > > (Satheesh) > > > > v3: Moving the utility func

[PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-31 Thread Daniel Vetter
On Wed, Oct 29, 2014 at 10:09:04AM +0100, Andrzej Hajda wrote: > On 10/29/2014 08:58 AM, Daniel Vetter wrote: > > On Tue, Oct 28, 2014 at 04:05:34PM +0100, Thierry Reding wrote: > >> On Tue, Oct 28, 2014 at 08:16:44PM +0530, Ajay kumar wrote: > >>> On Tue, Oct 28, 2014 at 8:11 PM, Thierry Reding >

[PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-31 Thread Daniel Vetter
On Wed, Oct 29, 2014 at 10:16:49AM +0100, Thierry Reding wrote: > On Wed, Oct 29, 2014 at 08:51:27AM +0100, Daniel Vetter wrote: > > On Tue, Oct 28, 2014 at 03:29:47PM +0100, Thierry Reding wrote: > > > On Mon, Oct 27, 2014 at 11:20:31PM +0100, Daniel Vetter wrote: > > > > On Mon, Oct 27, 2014 at 8

[PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-31 Thread Daniel Vetter
On Thu, Oct 30, 2014 at 10:09:28AM +, Russell King - ARM Linux wrote: > On Thu, Oct 30, 2014 at 11:01:02AM +0100, Andrzej Hajda wrote: > > On 10/29/2014 10:14 AM, Thierry Reding wrote: > > > On Wed, Oct 29, 2014 at 09:57:02AM +0100, Daniel Vetter wrote: > > >> I think we nee try_get_module for

[Bugzilla] Your account dri-devel@lists.freedesktop.org is being impersonated

2014-10-31 Thread bugzilla-dae...@freedesktop.org
ajax at nwnk dot net has used the 'sudo' feature to access Bugzilla using your account. ajax at nwnk dot net provided the following reason for doing this: seeing if i can set email prefs (mareko wants the New: gone from bz emails) If you feel that this action was inappropriate, p

[Bug 85696] [regression] r600g+nine: Bioshock shader failure after 7b1c0cbc90d456384b0950ad21faa3c61a6b43ff

2014-10-31 Thread bugzilla-dae...@freedesktop.org
because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141031/04b800e6/attachment.html>

[PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-31 Thread Daniel Vetter
On Wed, Oct 29, 2014 at 10:14:37AM +0100, Thierry Reding wrote: > On Wed, Oct 29, 2014 at 09:57:02AM +0100, Daniel Vetter wrote: > > That makes the entire thing a bit non-trivial, which is why I think it > > would be better as some generic helper. Which then gets embedded or > > instantiated for sp

[PATCH 72/72] imx-drm: ipuv3-plane: Enable 8 burst locking

2014-10-31 Thread Steve Longerbeam
Enable 8 burst locking in the primary and overlay plane idmac channels. This seems to improve some cases of data starvation errors to the DI. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/imx-drm/i

[PATCH 71/72] imx-drm: ipuv3-crtc: Disable overlay plane during crtc disable

2014-10-31 Thread Steve Longerbeam
If the overlay exists and is enabled, it must be disabled before stopping the DI, otherwise DI synchronous display errors are the result. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-crtc.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/imx-dr

[PATCH 70/72] imx-drm: Cancel pending page flip events at preclose

2014-10-31 Thread Steve Longerbeam
At preclose, destroy page flip events that are pending on every plane. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-drm-core.c | 15 +-- drivers/staging/imx-drm/imx-drm.h |2 ++ drivers/staging/imx-drm/ipuv3-crtc.c | 13 + drivers/staging

[PATCH 69/72] imx-drm: ipuv3-crtc: Implement mode_set_base

2014-10-31 Thread Steve Longerbeam
Implement the mode_set_base drm_crtc_helper callback. DRM core calls this method when there is a SetCrtc request but only the framebuffer and/or the x/y scanout position in the framebuffer has changed and no other video mode parameters have changed. So mode_set_base is similar to a page flip excep

[PATCH 68/72] imx-drm: imx-ldb: Use DDC probe as connection detect

2014-10-31 Thread Steve Longerbeam
If a ddc node was specified in the device tree, use it in imx_ldb_connector_detect() to probe the ddc with drm_probe_ddc(), if the result is success, we know there is a display connected so return connected status. Otherwise (no ddc specified in DT) we just have to assume connected status. Signed-

[PATCH 67/72] imx-drm: ipuv3-crtc: Disable fb on crtc unbind

2014-10-31 Thread Steve Longerbeam
Call ipu_fb_disable() in the crtc unbind method, in case the crtc has been left enabled. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-crtc.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/imx-drm/ipuv3-crtc.c b/drivers/staging/imx-drm/ipuv3-crtc.c

[PATCH 66/72] imx-drm: parallel-display: Add all defined of video modes

2014-10-31 Thread Steve Longerbeam
Instead of assuming only a single defined display-timing node in the device tree, assume there can be multiple modes and register all of them in imx_pd_connector_get_modes(). Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/parallel-display.c | 48 +++- 1 fil

[PATCH 65/72] imx-drm: imx-ldb: Add all defined of video modes

2014-10-31 Thread Steve Longerbeam
Instead of assuming only a single defined display-timing node in the device tree, assume there can be multiple modes and register all of them in imx_ldb_connector_get_modes(). Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-ldb.c | 46 ++--- 1 fi

[PATCH 64/72] imx-drm: ipuv3-crtc: Use DRM mode flags to configure pixel clock polarity

2014-10-31 Thread Steve Longerbeam
Previously, pixel clock polarity was hardcoded and wasn't configurable. This patch adds support to configure the pixel clock polarity from the DRM mode flags. Signed-off-by: Mohsin Kazmi Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-crtc.c |3 ++- 1 file changed, 2 inser

[PATCH 63/72] drm_modes: videomode: add pos/neg pixel clock polarity flag

2014-10-31 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam --- drivers/gpu/drm/drm_modes.c |4 include/uapi/drm/drm_mode.h |4 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index d1b7d20..5016099 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/driv

[PATCH 62/72] imx-drm: ipuv3-plane: Assign correct dmfc burst size

2014-10-31 Thread Steve Longerbeam
According to the imx6 reference manual, the DMFC channel's burstsize must match the corresponding IDMAC channel's burstsize, so make sure to pass the IDMAC channel burstsize to ipu_dmfc_alloc_bandwidth(). We need to move ipu_dmfc_alloc_bandwidth() to after the channel is setup, in order to first in

[PATCH 61/72] imx-drm: hdmi: Save ipu/di mux for later iomux setup

2014-10-31 Thread Steve Longerbeam
Store the ipu/di mux in struct imx_hdmi during imx_hdmi_encoder_prepare(). imx_hdmi_encoder_commit() can then use the mux when setting the iomux instead of looking it up again via imx_drm_encoder_get_mux_id(). Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-hdmi.c |9 +---

[PATCH 60/72] imx-drm: ipuv3-crtc: Set the crtc device name

2014-10-31 Thread Steve Longerbeam
Set the i.mx crtc device name to a more meaningful crtc[0-3], which matches the device tree phandle names. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-crtc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/imx-drm/ipuv3-crtc.

[PATCH 59/72] imx-drm: hdmi: set DI clock source to DI pre clock

2014-10-31 Thread Steve Longerbeam
If DI is firstly bound to ldb and then re-bound to HDMI, DI clock source will still be routed to LDB clock by ldb driver. In HDMI driver's encoder_prepare, we have to set DI clock source to the parent di_pre clock mux to ensure we are having correct clock chain to drive HDMI display. Signed-off-by

[PATCH 58/72] imx-drm: parallel-display: Add interface-pix-map DT property

2014-10-31 Thread Steve Longerbeam
Define a new devicetree property "interface-pix-map" for use by i.MX DRM display drivers. This property defines a DI interface pixel bus mapping. Implement the parsing of this property in the parallel display driver, and pass on the mapping to imx_drm_panel_format(). See Documentation/devicetree/b

[PATCH 57/72] imx-drm: Add support for interface pixel maps

2014-10-31 Thread Steve Longerbeam
Adds the framework that allows encoder/connector drivers to create a new interface pixel mapping passed to imx_drm_panel_format(). The crtc driver will then pass this pointer on to ipu_dc_init_sync() which sets up the new mapping in the DC. Signed-off-by: Steve Longerbeam --- drivers/staging/imx

[PATCH 56/72] imx-drm: Implement custom ioctl to set gamma

2014-10-31 Thread Steve Longerbeam
Implement i.MX specific ioctl to set gamma directly using slope and y-intercept values that define the piecewise linear gamma correction curve. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-drm-core.c | 40 +++- drivers/staging/imx-drm/imx-drm.h

[PATCH 55/72] imx-drm: Implement DRM gamma set

2014-10-31 Thread Steve Longerbeam
Implement the DRM gamma set API. This API expects that the adapter will use a gamma-corrected CLUT, but the CLUT on i.MX6 is insufficient for that purpose. But the i.MX6 does support gamma correction via a set of registers that define a piecewise linear approximation to a luminance gamma correctio

[PATCH 54/72] imx-drm: ipuv3-plane: Assign page_flip method to drm_plane_funcs

2014-10-31 Thread Steve Longerbeam
Assign ipu_plane_page_flip to new drm_plane_funcs->page_flip method. This allows page flip operation in both the primary and overlay planes. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/imx-drm/ip

[PATCH 53/72] drm: implement page flipping support for planes

2014-10-31 Thread Steve Longerbeam
Planes like crtcs would benefit from having page flip event support. With planes page flip it is now possible to synchronize changing a framebuffer used by an overlay (or even cursor) plane with vertical sync events. A page flip in the primary plane is equivalent to a crtc page flip, which suggest

[PATCH 52/72] imx-drm: Reset ipu unit pointers to NULL on errors

2014-10-31 Thread Steve Longerbeam
In the crtc and plane drivers it is possible the ipu unit pointers could be left at error pointer values. Reset them to NULL on errors to prevent this. Also ipu_put_resources() should reset the units to NULL after releasing them. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-

[PATCH 51/72] imx-drm: Move page flip handling to plane driver

2014-10-31 Thread Steve Longerbeam
Move page flip handling and associated vblank handling to the plane driver. This paves the way to allow page flipping in not just the primary plane but the overlay plane as well. To do this the primary and overlay planes are assigned a pipe value suitable for passing to the drm core vblank methods

[PATCH 50/72] imx-drm: Fix separate primary plane objects

2014-10-31 Thread Steve Longerbeam
drm_crtc_init() will create a primary plane object, while imx-drm also creates its own, thus two primary planes are separately created, and can cause difficult bugs to track down in the future. Fix by using drm_crtc_init_with_planes() instead of drm_crtc_init(), so that we can hand drm our own pri

[PATCH 49/72] imx-drm: imx-ldb: Add DDC support

2014-10-31 Thread Steve Longerbeam
Add support for reading EDID over Display Data Channel. If no DDC adapter is available, falls back to hardcoded EDID or display-timings node as before. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-ldb.c | 39 + 1 file changed, 31 insertion

[PATCH 48/72] imx-drm: hdmi: rework irq request/free

2014-10-31 Thread Steve Longerbeam
Rearrange how HDMI driver requests and frees irq. Currently the driver has two problems: 1) if imx_hdmi_register() fails, irq still can trigger and cause oops 2) irq is enabled too early, before all fields are initialized, so triggered irq can cause oops. Fix by moving irq request and activation

[PATCH 47/72] imx-drm: ipuv3-plane: Implement global alpha and colorkey properties

2014-10-31 Thread Steve Longerbeam
Add support for setting global alpha and colorkey in foreground planes using plane properties. Background planes can also support these properties if the background plane is initialized as not private. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c | 144 +

[PATCH 46/72] imx-drm: ipuv3-plane: Add more supported pixel formats

2014-10-31 Thread Steve Longerbeam
Report more supported formats to drm core via ipu_plane_formats[]. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/imx-drm/ipuv3-plane.c b/drivers/staging/imx-drm/ipuv3-plane.c index cbd300b

[PATCH 45/72] imx-drm: ipuv3-plane: Allow YUV space for background plane

2014-10-31 Thread Steve Longerbeam
A background plane was assuming the framebuffer pixel format was RGB by passing IPUV3_COLORSPACE_RGB to ipu_dp_setup_channel(). Fix by passing the actual colorspace of the framebuffer's pixel format. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c |2 +- 1 file chan

[PATCH 44/72] imx-drm: ipuv3-plane: Fix planar formats

2014-10-31 Thread Steve Longerbeam
During a mode set the U/V plane strides and buffer offsets for planar pixel formats were not being configured in cpmem. Fix by calling ipu_cpmem_set_yuv_planar() for planar formats. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipuv3-plane.c |4 1 file changed, 4 insertion

[PATCH 43/72] imx-drm: parallel-display: Fix typo when setting mode type

2014-10-31 Thread Steve Longerbeam
Comma expression is used to set mode type "mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED," which is a typo, replace it with ";". Signed-off-by: Jiada Wang Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/parallel-display.c |4 ++-- 1 file changed, 2 insertions(+),

[PATCH 42/72] imx-drm: imx-ldb: Implement imx_ldb_encoder_dpms()

2014-10-31 Thread Steve Longerbeam
Implement imx_ldb_encoder_dpms(). Two new functions are created to share poweroff and poweron code. imx_ldb_poweroff() is called by encoder dpms, prepare, and disable. imx_ldb_poweron() is called by encoder dpms and commit. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-ldb.c |

[PATCH 41/72] imx-drm: imx-ldb: Add debug to connector/encoder entry points

2014-10-31 Thread Steve Longerbeam
Add some debug macros for the important encoder and connector callbacks. Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-ldb.c | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/

[PATCH 40/72] imx-drm: parallel-display: Support RGB666 pixel fmt

2014-10-31 Thread Steve Longerbeam
Add a clause to imx-pd driver to use 18-bit output if driver is told so. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/parallel-display.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/imx-drm/parallel-display.c

[PATCH 39/72] imx-drm: hdmi: optimize i2c write wait

2014-10-31 Thread Steve Longerbeam
A wait of around 50 ~ 100 micro seconds seems to be enough to allow I2C Master PHY done, so instead of wait 1000 usec at each time of register check, wait 100 usec is more appropriate. Signed-off-by: Jiada Wang Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/imx-hdmi.c |6 +++---

[PATCH 38/72] imx-drm: Crtcs moved to device tree

2014-10-31 Thread Steve Longerbeam
The crtcs are now nodes in the device tree, and the encoder endpoints fall under the crtc port. ipu_client_platformdata is no longer needed and is gone. The crtc retrieves the following required parameters from its node: - ipu phandle. - di number. - the port endpoints. Optionally, "dual-plane"

[PATCH 37/72] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()

2014-10-31 Thread Steve Longerbeam
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-cpmem.c |6 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index b05a5e8..7afea0a 100644

[PATCH 36/72] gpu: ipu-cpmem: Support YVU422

2014-10-31 Thread Steve Longerbeam
Add simple hooks to support YVU422 in cpmem. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-cpmem.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index a53b242..b05a5e8 100644 --- a/drivers/gpu/ipu-v3/ipu-cpm

[PATCH 35/72] gpu: ipu-v3: Add IDMA channel linking support

2014-10-31 Thread Steve Longerbeam
Adds functions to link and unlink IDMAC source channels to sink channels. So far the following links are supported: IPUV3_CHANNEL_IC_PRP_ENC_MEM -> IPUV3_CHANNEL_MEM_ROT_ENC PUV3_CHANNEL_IC_PRP_VF_MEM -> IPUV3_CHANNEL_MEM_ROT_VF IPUV3_CHANNEL_IC_PP_MEM -> IPUV3_CHANNEL_MEM_ROT_PP More lin

[PATCH 34/72] gpu: ipu-v3: Add ipu_drm_fourcc_is_planar()

2014-10-31 Thread Steve Longerbeam
Adds ipu_drm_fourcc_is_planar(), which is equivalent to ipu_pixelformat_is_planar() but accepts a drm fourcc format. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 18 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 19 insertions(+) diff --

[PATCH 33/72] gpu: ipu-cpmem: Pass drm fourcc to ipu_cpmem_set_yuv_*

2014-10-31 Thread Steve Longerbeam
Pass a drm pixel format fourcc to ipu_cpmem_set_yuv_interleaved(), ipu_cpmem_set_yuv_planar_full(), and ipu_cpmem_set_yuv_planar(), instead of a v4l2 pixel format. The remaining cpmem API that still accepts a v4l2 format is now only ipu_cpmem_set_image(), since this function is called by v4l2 drive

[PATCH 32/72] gpu: ipu-v3: Add RGB666 interface pixel map

2014-10-31 Thread Steve Longerbeam
Adds RGB666 to the pre-loaded interface pixel maps. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dc.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-dc.c b/drivers/gpu/ipu-v3/ipu-dc.c index 23b6e2c..955adab 100644 --- a/drivers/gpu/ipu-v3/ipu-dc.c

[PATCH 31/72] gpu: ipu-di: Set rate of DI pre clock

2014-10-31 Thread Steve Longerbeam
This patch sets the rate of the DI pre clock to support a much wider range of pixel clock frequencies. It does this by calculating two values for the pre-clk rate: a rate that is a whole integer multiple of the pixel clock, and a rate that is a half-integer multiple. It then programs whichever rat

[PATCH 30/72] gpu: ipu-v3: Remove IPU client registration

2014-10-31 Thread Steve Longerbeam
The IPU client devices have been moved to the device tree, so remove platform registration of those devices. As a result, platform data (struct ipu_client_platformdata) is no longer needed, the client data is retrieved from the device nodes. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3

[PATCH 29/72] gpu: ipu-v3: Change signal names in struct ipu_di_signal_cfg

2014-10-31 Thread Steve Longerbeam
This patch changes signal names in struct ipu_di_signal_cfg as per the industry standard names, and renames fields that were using CamelCase. Signed-off-by: Deepak Das Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c | 68 +- drivers/sta

[PATCH 28/72] gpu: ipu-di: Add and improve debug/error messages

2014-10-31 Thread Steve Longerbeam
Add a couple error messages to ipu_di_init() for better IPU load/unload debug. Add more debug messages. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-di

[PATCH 27/72] gpu: ipu-di: Move ipu pointer init

2014-10-31 Thread Steve Longerbeam
Move the init of di->ipu pointer to near top of ipu_di_init(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ipu-v3/ipu-di.c index 5686969..70bf594 100644 --- a/driv

[PATCH 26/72] gpu: ipu-v3: Enumerate the DC channel names

2014-10-31 Thread Steve Longerbeam
Define the names of the DC channels, and reference them in ipu-dc. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dc.c |6 ++ include/video/imx-ipu-v3.h |7 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-dc.c b/drivers/gpu/i

[PATCH 25/72] gpu: ipu-v3: Consolidate mutex lock in ipu_dmfc_alloc_bandwidth()

2014-10-31 Thread Steve Longerbeam
The dmfc mutex was being acquired in ipu_dmfc_free_bandwidth(), freed, then immediately re-acquired in ipu_dmfc_alloc_bandwidth(). Acquire the lock once at the beginning of ipu_dmfc_alloc_bandwidth(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dmfc.c | 19 --- 1

[PATCH 24/72] gpu: ipu-v3: Remove ipu_dmfc_init_channel()

2014-10-31 Thread Steve Longerbeam
The function ipu_dmfc_init_channel() sets the "WAIT4EOT" mode according to the line width and the DMFC channel's FIFO size (the slots parameter). But this can only happen after slots has been calculated in ipu_dmfc_alloc_bandwidth(). Fix by renaming ipu_dmfc_init_channel() to a static dmfc_set_wai

[PATCH 23/72] gpu: ipu-v3: Allow burstsize of 20 in ipu_dmfc_setup_channel()

2014-10-31 Thread Steve Longerbeam
IDMAC channels can have a burtsize of 20 pixels, so allow for that in ipu_dmfc_setup_channel(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dmfc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/ipu-v3/ipu-dmfc.c b/drivers/gpu/ipu-v3/ipu-dmfc.c index 307020e..37

[PATCH 22/72] gpu: ipu-v3: Fix indent/ws in ipu-dmfc

2014-10-31 Thread Steve Longerbeam
Cleanup indentation and whitespace in ipu-dmfc.c. No functional changes. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dmfc.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-dmfc.c b/drivers/gpu/ipu-v3/ipu

[PATCH 21/72] gpu: ipu-v3: Update DP sync SRM always in ipu_dp_enable_channel()

2014-10-31 Thread Steve Longerbeam
In Freescale kernels, when a DP channel is enabled, the DP sync SRM is updated for both background and foreground DP channels. Do the same. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dp.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gp

[PATCH 20/72] gpu: ipu-v3: Move DI waveform counter enable/disable to ipu-di

2014-10-31 Thread Steve Longerbeam
Move the DI waveform counter enable/disable out of ipu_module_enable()/disable(). This should be carried out when enabling/disabling the DI pixel clock. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 37 +++-- drivers/gpu/ipu-v3/ipu-di.c

[PATCH 19/72] gpu: ipu-v3: Protect more CM reg access with IPU lock

2014-10-31 Thread Steve Longerbeam
Some cm_reg accesses were not being protected by the IPU spin lock. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-common.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c

[PATCH 18/72] gpu: ipu-v3: Split out DI clock enable/disable

2014-10-31 Thread Steve Longerbeam
DI clock enable/disable is moved out of ipu_di_enable() and ipu_di_disable() and into (new) ipu_di_enable_clock() and ipu_di_disable_clock(). So ipu_di_enable() and ipu_di_disable() are now pure module enable/disable. The purpose of this change is to more closely emulate the display mode setting s

[PATCH 17/72] gpu: ipu-v3: Add ipu_di_uninit_sync_panel()

2014-10-31 Thread Steve Longerbeam
Adds ipu_di_uninit_sync_panel() which tears down ipu_di_init_sync_panel(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c | 18 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ip

[PATCH 16/72] gpu: ipu-v3: Add DMFC/DP/DC/DI module enable/disable debug

2014-10-31 Thread Steve Longerbeam
Add debug messages when these modules are globally disabled or enabled in the IPU_CONF register. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dc.c |8 ++-- drivers/gpu/ipu-v3/ipu-di.c |2 ++ drivers/gpu/ipu-v3/ipu-dmfc.c |5 - drivers/gpu/ipu-v3/ipu-dp.c |

[PATCH 15/72] gpu: ipu-v3: fix HDMI timing issues

2014-10-31 Thread Steve Longerbeam
From: Jiada Wang On some monitors, with high resolution(1920x1080), HDMI is not working, some resolution have pixel column truncation problem (shows 1280x1022 instead of 1280x1024), which will result in really strange picture on some monitors. This Patch aims to fix these HDMI timing issues. Si

[PATCH 14/72] gpu: ipu-v3: Implement use counter for ipu_dc_enable(), ipu_dc_disable()

2014-10-31 Thread Steve Longerbeam
The functions ipu_dc_enable() and ipu_dc_disable() enable/disable the DC globally in the IPU_CONF register, but the DC is used by multiple clients on different DC channels. So make sure to only disable/enable the DC globally based on a use counter. Signed-off-by: Steve Longerbeam --- drivers/gpu

[PATCH 13/72] gpu: ipu-v3: Pass struct ipu_dp to enable/disable

2014-10-31 Thread Steve Longerbeam
Pass the pointer to DP channel to ipu_dp_enable() and ipu_dp_disable(), to be more consistent with the other ipu-dp APIs. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dp.c | 10 ++ drivers/staging/imx-drm/ipuv3-plane.c |4 ++-- include/video/imx-ipu-v3.h

[PATCH 12/72] gpu: ipu-v3: Add ipu_dp_uninit_channel()

2014-10-31 Thread Steve Longerbeam
Adds the function ipu_dp_uninit_channel() which tears down ipu_dp_setup_channel(). Signed-off-by: Steve Longerbeam Signed-off-by: Muzaffar Mahmood --- drivers/gpu/ipu-v3/ipu-dp.c | 18 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 19 insertions(+) diff --git a/dri

[PATCH 11/72] gpu: ipu-v3: Pass struct ipu_dc to enable/disable

2014-10-31 Thread Steve Longerbeam
Pass the pointer to DC channel to ipu_dc_enable() and ipu_dc_disable(), to be more consistent with the other ipu-dc APIs. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dc.c | 12 drivers/staging/imx-drm/ipuv3-crtc.c |8 ++-- include/video/imx-ipu-v3.h

[PATCH 10/72] gpu: ipu-v3: Add ipu_dc_uninit_sync()

2014-10-31 Thread Steve Longerbeam
Adds the function ipu_dc_uninit_sync() which tears down ipu_dc_init_sync(). Signed-off-by: Steve Longerbeam Signed-off-by: Muzaffar Mahmood --- drivers/gpu/ipu-v3/ipu-dc.c | 14 ++ include/video/imx-ipu-v3.h |1 + 2 files changed, 15 insertions(+) diff --git a/drivers/gpu/ip

[PATCH 09/72] gpu: ipu-v3: Add support for dynamic DC interface pixel maps

2014-10-31 Thread Steve Longerbeam
Adds support to ipu-dc to dynamically create new display interface pixel mappings. The mappings are formally defined by a struct ipu_dc_if_map, which is passed to ipu_dc_init_sync(). The ipu-dc maintains a list of the currently programmed mappings. Some mappings are pre-loaded at probe time (RGB2

[PATCH 08/72] gpu: ipu-v3: Add ipu_dp_set_gamma_correction()

2014-10-31 Thread Steve Longerbeam
Adds the function ipu_dp_set_gamma_correction(), which programs the piecewise linear curve that approximates a gamma correction curve. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-dp.c | 46 +++ include/video/imx-ipu-v3.h |2 ++ 2 file

[PATCH 07/72] gpu: ipu-v3: Add ipu_dp_set_chroma_key()

2014-10-31 Thread Steve Longerbeam
Adds the function ipu_dp_set_chroma_key(), which sets up a color key value for a DP foreground plane. ipu_dp_set_chroma_key() accepts a color key value in RGB24 format. If the combiner unit colorspace is YUV, the key must be converted to YUV444, using the same CSC coefficients as programmed in the

[PATCH 06/72] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2014-10-31 Thread Steve Longerbeam
Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-cpmem.c |7 +++ include/video/imx-ipu-v3.h |1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c in

[PATCH 05/72] ARM: i.MX6: select pll3_usb_otg for ldb_di for rev 1.0 chip

2014-10-31 Thread Steve Longerbeam
Select pll3_usb_otg for ldb_di clock for rev 1.0 chips. Signed-off-by: Jiada Wang Signed-off-by: Steve Longerbeam --- arch/arm/mach-imx/clk-imx6q.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index 86b58fc..68064a6 1006

[PATCH 04/72] ARM: i.MX6: use pll2_pfd0_352m as clock root of ipu_di

2014-10-31 Thread Steve Longerbeam
AS pll5_video_div has already been used as clock root for ldb_di, so use pll2_pfd0_352m as clock root of ipu_di for HDMI. Signed-off-by: Jiada Wang Signed-off-by: Steve Longerbeam --- arch/arm/mach-imx/clk-imx6q.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ar

[PATCH 03/72] ARM: dts: imx6qdl: Create imx-drm crtc nodes

2014-10-31 Thread Steve Longerbeam
Create imx-drm crtc device nodes. Each crtc node requires the following parameters: - parent ipu phandle. - di number. - port endpoints. Optionally the node can specify a "dual-plane" boolean parameter to configure the crtc device with a foreground plane. If not given, the crtc will have only a s

[PATCH 02/72] ARM: dts: imx6qdl-sabreauto: Add HDMI device

2014-10-31 Thread Steve Longerbeam
From: "George G. Davis" Signed-off-by: George G. Davis --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 009abd6..1bb3ead 100644 --- a/arch/arm/boot/

[PATCH 01/72] ARM: dts: imx6qdl-sabrelite: Add HDMI device

2014-10-31 Thread Steve Longerbeam
Adds hdmi with DDC on i2c2. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index 0a36129..577e4fd 100644 -

[PATCH 00/72] staging imx-drm new features and fixes

2014-10-31 Thread Steve Longerbeam
Hi, this affects only Freescale imx IPU and imx-drm staging drivers, except for two patches that affect drm core (patch 53 and 63, see below). New features for imx-drm staging driver: - Support for multi-display (HDMI and LVDS). - Support for global alpha and color-key properties for overlay plan

[PATCH 15/15] drm/panel: Add Sharp LQ101R1SX01 support

2014-10-31 Thread Thierry Reding
hat > everything can crash if someone unbind driver from LINK2 and then try to > enable the panel. I don't think so. Since we're not doing anything with the DSI-LINK2 device anymore it's irrelevant whether it is bound to the driver or not. > > + return 0; > > + } > > + > > + err = sharp_panel_disable(&sharp->base); > > + if (err < 0) > > + dev_err(&dsi->dev, "failed to disable panel: %d\n", err); > > IMHO calling mipi_dsi_detach below should cause connector to call panel > disable and unprepare so the call above seems to me unnecessary. I don't think the connector has any business doing anything with the panel on mipi_dsi_detach(). I suppose we could implement something like that as part of drm_panel_detach(), but that's not the case today, so this simply follows what every other panel has done so far. > > + > > + err = mipi_dsi_detach(dsi); > > + if (err < 0) > > + dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); > > + > > + drm_panel_detach(&sharp->base); > > drm_panel_attach is called from tegra_dsi_host_attach, > wouldn't be more 'symmetrical' to call drm_panel_detach from > tegra_dsi_host_detach :) No, it's not called from tegra_dsi_host_attach(), it's called as part of the DSI output initialization at DRM load time. drm_panel_detach() really needs to be called from two places: when the panel driver is unloaded and when the connector is unloaded. It seems like this is another area where we may have to put more thought into how to handle it more uniformly across drivers. Thierry -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141031/a8398dbe/attachment.sig>

[PATCH 3/3] drm/gma500: Don't destroy DRM properties in the driver

2014-10-31 Thread Damien Lespiau
When drm properties are created, they are added to mode_config.property_list which is then used in drm_mode_config_cleanup() to destroy every single property created by the driver. Cc: Patrik Jakobsson Signed-off-by: Damien Lespiau --- drivers/gpu/drm/gma500/psb_intel_sdvo.c | 49 --

[PATCH 2/3] drm/i915: Don't destroy DRM properties in the driver

2014-10-31 Thread Damien Lespiau
When drm properties are created, they are added to mode_config.property_list, which is then used in drm_mode_config_cleanup() to destroy every single property created by the driver. Cc: Chandra Konduru Cc: Daniel Vetter Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_sdvo.c | 47 -

[PATCH 1/3] drm: Add a note to drm_property_create() about property lifetime

2014-10-31 Thread Damien Lespiau
Cc: Chandra Konduru Cc: Daniel Vetter Signed-off-by: Damien Lespiau --- drivers/gpu/drm/drm_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 4081d7a..0f3c24c 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm

[PATCH 9/9] drm/exynos: remove leftover hdmi function declarations

2014-10-31 Thread Gustavo Padovan
From: Gustavo Padovan They are not implemented anywhere, so wipe them out. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv

[PATCH 8/9] drm/exynos: update documentation to reflect code changes

2014-10-31 Thread Gustavo Padovan
From: Gustavo Padovan Description of the @create_connector callback was missing, and the @manager was no longer needed. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos

[PATCH 7/9] drm/exynos: Save up space using bool var as bitfields

2014-10-31 Thread Gustavo Padovan
From: Gustavo Padovan Save a few bytes by compiling them all in the same byte. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/

[PATCH 6/9] drm/exynos: remove unused wait_for macro

2014-10-31 Thread Gustavo Padovan
From: Gustavo Padovan This is a leftover, all code using this macro have been removed/ changed already. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drive

[PATCH 5/9] drm/exynos: Replace repeated declarations by #include "exynos_drm_drv.h"

2014-10-31 Thread Gustavo Padovan
From: Gustavo Padovan Re-declare struct is not a good practice, let's use the original drm and exynos declarations. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_crtc.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_

  1   2   >