[Intel-gfx] [PATCH] drm/i915/vlv: Enable polling when we shut off all power domains

2016-06-17 Thread Daniel Vetter
On Thu, Apr 21, 2016 at 11:44:48AM -0400, Lyude wrote: > Unfortunately HPD isn't functional once we shut off all of the power > domains. Unfortunately we can end up shutting off all of the power > domains in any situation where we don't have any monitors connected, > essentially breaking hpd for th

[PATCH v2 0/2] drm/mediatek: MT8173 gamma & dither support

2016-06-17 Thread Bibby Hsieh
This is MT8173 gamma & dither support PATCH v2, based on 4.7-rc1. Changes since v1: -According to the suggestion from Daniel, we used the new atomic color management. -Applied gamma function at GAMMA engine (path 2). -Made dithering function support hardware mirroring well. -Removed the bpc

[PATCH v2 2/2] drm/mediatek: set mt8173 dithering function

2016-06-17 Thread Bibby Hsieh
Some panels only accept bpc (bit per color) 6-bit. But, the default bpc in mt8173 display data path is 8-bit. If we didn't enable dithering function to convert bpc, display cannot show the smooth grayscale image. In mt8173, the dithering function in OD (OverDrive) and GAMMA module, we have to conf

[PATCH v2 1/2] drm/mediatek: Add gamma correction

2016-06-17 Thread Bibby Hsieh
Apply gamma function to correct brightness values. It applies arbitrary mapping curve to compensate the incorrect transfer function of the panel. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |8 +++ drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 + drivers/g

[PATCH 19/38] drm/hisilicon: Implement some semblance of vblank event handling

2016-06-17 Thread Xinliang Liu
Hi Daniel, I have tested your David's drm-next branch[1] which including this patch. In most time it is ok. But when switching modes or disable/re-enable mode, it will encounter bellow error msg: -- [ 357.940728] [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:24:crtc-0] flip_done timed

of_reserved_mem_device_init_by_idx() returns -EINVAL if "memory-region" is missing

2016-06-17 Thread Marek Szyprowski
Hi Alexey On 2016-06-16 18:47, Alexey Brodkin wrote: > Hi Marek, > > We used to use of_reserved_mem_device_init() in such a context in GPU drivers: > >8--- > /* Get the optional framebuffer memory resource */ > ret = of_reserved_mem_device_init(drm-

[Bug 93475] Saints Row IV causes GPU lockup on Linux

2016-06-17 Thread bugzilla-dae...@freedesktop.org
because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160617/bd5a8b61/attachment.html>

[Bug 93475] Saints Row IV causes GPU lockup on Linux

2016-06-17 Thread bugzilla-dae...@freedesktop.org
or the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160617/d3e22752/attachment-0001.html>

[Bug 93475] Saints Row IV causes GPU lockup on Linux

2016-06-17 Thread bugzilla-dae...@freedesktop.org
for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160617/4d628d09/attachment.html>

[Bug 92974] Fiji Nano long boot up and long X startup with amdgpu-powerplay enabled

2016-06-17 Thread bugzilla-dae...@freedesktop.org
ists.freedesktop.org/archives/dri-devel/attachments/20160617/03e04169/attachment.html>

[PATCH 19/38] drm/hisilicon: Implement some semblance of vblank event handling

2016-06-17 Thread Daniel Vetter
On Fri, Jun 17, 2016 at 10:09:50AM +0800, Xinliang Liu wrote: > Hi Daniel, > > I have tested your David's drm-next branch[1] which including this patch. > In most time it is ok. But when switching modes or disable/re-enable > mode, it will encounter bellow error msg: > -- > [ 357.940728] [drm:drm

[Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-06-17 Thread Daniel Vetter
On Thu, Jun 16, 2016 at 03:42:12PM -0700, James Bottomley wrote: > On Thu, 2016-06-16 at 14:29 -0700, James Bottomley wrote: > > On Thu, 2016-06-16 at 23:24 +0200, Daniel Vetter wrote: > > > I guess we'll need the bisect on this one to make progress. > > > > Sigh, I was afraid that might be the ne

[PATCHv16 07/13] cec.txt: add CEC framework documentation

2016-06-17 Thread Hans Verkuil
On 06/16/2016 10:12 PM, Mauro Carvalho Chehab wrote: > Em Fri, 29 Apr 2016 15:52:22 +0200 > Hans Verkuil escreveu: > >> From: Hans Verkuil >> >> Document the new HDMI CEC framework. > > As we'll be moving documentation to Sphinx/Rst, it would be good if > you could make it work fine with sphinx

[PATCH 00/16] More drm master and SET_UNIQUE cleanups

2016-06-17 Thread Daniel Vetter
Hi all, This resends the remaining bits of my drm master cleanup. The simple bugfix for patch 1 for the leak that Chris spotted resulted in cascading rebase conflicts. On top of that: - SET_UNIQUE cleanup, including big documentation section to explain all the lessons learned. - drm master and a

[PATCH 01/16] drm: Only do the hw.lock cleanup in master_relase for !MODESET

2016-06-17 Thread Daniel Vetter
Another place gone where modern drivers could have hit dev->struct_mutex. To avoid too deeply nesting control flow rework it a bit. v2: Review from Chris: - remove spurious newline. - fix file_priv->master like for the !file_priv->is_master case. Cc: Chris Wilson Reviewed-by: Chris Wilson Sign

[PATCH 02/16] drm: Move authmagic cleanup into drm_master_release

2016-06-17 Thread Daniel Vetter
It's related, and soon authmagic will also use the master_mutex. There is an ever-so-slightly semantic change here: - authmagic will only be cleaned up for primary_client drm_minors. But it's impossible to create authmagic on render/control nodes, so this is fine. - The cleanup is moved down a

[PATCH 03/16] drm: Protect authmagic with master_mutex

2016-06-17 Thread Daniel Vetter
Simplifies cleanup, and there's no reason drivers should ever care about authmagic at all - it's all handled in the core. And with that, Ladies and Gentlemen, it's time to pop the champagen and celebrate: dev->struct_mutex is now officially gone from modern drivers, and if a driver is using gem_fr

[PATCH 04/16] drm: Mark authmagic ioctls as unlocked

2016-06-17 Thread Daniel Vetter
All protected by dev->master_mutex. And there's no driver callbacks, which means no need to sync with old dri1 horror show drivers at all. Hence safe to drop the drm legacy BKL from these paths. Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_ioc

[PATCH 05/16] drm: Mark set/drop master ioctl as unlocked.

2016-06-17 Thread Daniel Vetter
Again this is neatly protected by the dev->master_mutex now. There is a driver callback both for set and drop, but it's only used by vmwgfx. And vmwgfx has it's own solid locking for shared resources (besides dev->master_mutex), hence is all safe. Let's drop another place where the drm legacy bkl i

[PATCH 06/16] drm: Move master pointer from drm_minor to drm_device

2016-06-17 Thread Daniel Vetter
There can only be one current master, and it's for the overall device. Render/control minors don't support master-based auth at all. This simplifies the master logic a lot, at least in my eyes: All these additional pointer chases are just confusing. While doing the conversion I spotted some locki

[PATCH 07/16] drm: Clean up drm_crtc.h

2016-06-17 Thread Daniel Vetter
- Group declarations for separate files (drm_bridge.c, drm_edid.c) - Move declarations only used within drm.ko to drm_crtc_internal.h - drm_property_type_valid to drm_crtc.c, its only callsite Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc.c | 7 ++ drivers/gpu/drm/drm_crtc

[PATCH 08/16] drm: Use dev->name as fallback for dev->unique

2016-06-17 Thread Daniel Vetter
Lots of arm drivers get this wrong and for most arm boards this is the right thing actually. And anyway with most loaders you want to chase sysfs links anyway to figure out which dri device you want. This will fix dmesg noise for rockchip and sti. Also add a fallback to driver->name for entirely

[PATCH 09/16] drm/vgem: Stop calling drm_drv_set_unique

2016-06-17 Thread Daniel Vetter
With the previous patch this is now redudant, the core always sets a reasonable dev->unique string. Cc: Sean Paul Signed-off-by: Daniel Vetter --- drivers/gpu/drm/vgem/vgem_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv

[PATCH 10/16] drm: Don't call drm_dev_set_unique from platform drivers

2016-06-17 Thread Daniel Vetter
Since commit e112e593b215c394c0303dbf0534db0928e87967 Author: Nicolas Iooss Date: Fri Dec 11 11:20:28 2015 +0100 drm: use dev_name as default unique name in drm_dev_alloc() we're using a reasonable default which should work for everyone. Only mtk, rcar-du and sun4i are affected, and as km

[PATCH 11/16] drm: Nuke SET_UNIQUE ioctl

2016-06-17 Thread Daniel Vetter
Ever since commit 2e1868b560315a8b20d688e646c489a5ad93eeae Author: Eric Anholt Date: Wed Jun 16 09:25:21 2004 + DRI trunk-20040613 import the X server supports drm 1.1, and doesn't even call this ioctl any more. When reviewing this note that for hilarity both the kernel-internal funct

[PATCH 12/16] drm: Lobotomize set_busid nonsense for !pci drivers

2016-06-17 Thread Daniel Vetter
We already have a fallback in place to fill out the unique from dev->unique, which is set to something reasonable in drm_dev_alloc. Which means we only need to have a special set_busid for pci devices, to be able to care the backwards compat code for drm 1.1 around, which libdrm still needs. Whil

[PATCH 13/16] drm: Refactor drop/set master code a bit

2016-06-17 Thread Daniel Vetter
File open/set_maseter ioctl and file close/drop_master ioctl share the same master handling code. Extract it. Note that vmwgfx's master_set callback needs to know whether the master is a new one or has been used already, so thread this through. On the close/drop side a similar parameter existed, b

[PATCH 14/16] drm: Extract drm_is_current_master

2016-06-17 Thread Daniel Vetter
Just rolling out a bit of abstraction to be able to clean up the master logic in the next step. Cc: Chris Wilson Cc: Thomas Hellstrom Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_auth.c | 12 +--- drivers/gpu/drm/drm_crtc.c | 2 +- drivers/gpu/d

[PATCH 15/16] drm: Clear up master tracking booleans

2016-06-17 Thread Daniel Vetter
- is_master can be removed, we can compute this by checking allowed_master (which really just tracks whether a master struct has been allocated for this fpriv in either open or set_master), and whether the fpriv is the current master on the device. - that frees up is_master as a good replace

[PATCH 16/16] drm: document drm_auth.c

2016-06-17 Thread Daniel Vetter
Also extract drm_auth.h for nicer grouping. v2: Nuke the other comments since they don't really explain a lot, and within the drm core we generally only document functions exported to drivers: The main audience for these docs are driver writers. v3: Limit the exposure of drm_master internals by o

[PATCH 02/44] drm: Add a callback from connector registering

2016-06-17 Thread Daniel Vetter
On Wed, Jun 15, 2016 at 01:17:47PM +0100, Chris Wilson wrote: > If a driver wants to more precisely control its initialisation and in > particular, defer registering its interfaces with userspace until after > everything is setup, it also needs to defer registering the connectors. > As some devices

[PATCH 04/44] drm: Automatically unregister the connector during cleanup

2016-06-17 Thread Daniel Vetter
On Wed, Jun 15, 2016 at 01:17:49PM +0100, Chris Wilson wrote: > As we now can call drm_connector_unregister() multiple times, provide a > failsafe unregister for a connector when cleaning it up. > > v2: Add a WARN to catch any connectors that are still visible to > userspace when we come to destoy

[PATCH 06/16] drm: Move master pointer from drm_minor to drm_device

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:24AM +0200, Daniel Vetter wrote: > There can only be one current master, and it's for the overall device. > Render/control minors don't support master-based auth at all. > > This simplifies the master logic a lot, at least in my eyes: All these > additional pointer ch

[Intel-gfx] [PATCH 07/16] drm: Clean up drm_crtc.h

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:25AM +0200, Daniel Vetter wrote: > - Group declarations for separate files (drm_bridge.c, drm_edid.c) > - Move declarations only used within drm.ko to drm_crtc_internal.h > - drm_property_type_valid to drm_crtc.c, its only callsite > > Signed-off-by: Daniel Vetter Re

[PATCH v6 0/8] drm/i2c: adv7511: ADV7533 support

2016-06-17 Thread Archit Taneja
ADV7533 is a DSI to HDMI encoder chip. It's like ADV7511, but with an additional DSI RX block that takes in DSI video mode output. This revision is quite similar to the previous version with some issues fixed. Changes in v6: - v5 changed the adv7511 module name to adv75xx.ko, it was previously

[PATCH v6 4/8] drm/bridge: adv7533: Initial support for ADV7533

2016-06-17 Thread Archit Taneja
ADV7533 is a DSI to HDMI encoder chip. It is a derivative of ADV7511, with additional blocks to translate input DSI data to parallel RGB data. Besides the ADV7511 I2C register map, it has additional registers that require to be configured to activate the DSI Rx block. Create a new config that enab

[PATCH v6 2/8] drm/i2c: adv7511: Move to bridge folder

2016-06-17 Thread Archit Taneja
The driver has been converted to use drm_bridge instead of drm_i2c_slave_encoder. We can now move it to the bridge folder. Create a separate folder since we already have a couple of files and expect more when we support audio and ADV7533. Rename the driver to adv7511_drv.c. This will come in hand

[PATCH v6 5/8] drm/bridge: adv7533: Create a MIPI DSI device

2016-06-17 Thread Archit Taneja
In order to pass DSI specific parameters to the DSI host, we need the driver to create a mipi_dsi_device DSI device that attaches to the host. Use of_graph helpers to get the DSI host DT node. Create a MIPI DSI device using this host. Finally, attach this device to the DSI host. Populate DT param

[PATCH v6 6/8] drm/bridge: adv7533: Use internal timing generator

2016-06-17 Thread Archit Taneja
ADV7533 provides an internal timing generator for certain modes that it can't use the DSI clock directly. We've observed that HDMI is more stable with the internal timing generator, especially if there are instabilities in the DSI clock source. The data spec also seems to recommend the usage of th

[PATCH v6 1/8] drm/i2c: adv7511: Convert to drm_bridge

2016-06-17 Thread Archit Taneja
We don't want to use the old i2c slave encoder interface anymore. Remove that and make the i2c driver create a drm_bridge entity instead. Converting to bridges helps because the kms drivers don't need to exract encoder slave ops from this driver and use it within their own encoder/connector ops.

[PATCH v6 3/8] drm/bridge: adv7511: Fix mutex deadlock when interrupts are disabled

2016-06-17 Thread Archit Taneja
When the adv7511 i2c client doesn't have an interrupt line, we observe a deadlock on caused by trying to lock drm device's mode_config.mutex twice in the same context. Here is the sequence that causes it: ioctl DRM_IOCTL_MODE_GETCONNECTOR from userspace drm_mode_getconnector (acquires mode_conf

[PATCH v6 7/8] drm/bridge: adv7533: Change number of DSI lanes dynamically

2016-06-17 Thread Archit Taneja
Lower modes on ADV7533 require lower number of DSI lanes for correct operation. If ADV7533 is being used with 4 DSI lanes, then switch the lanes to 3 when the target mode's pixel clock is less than 80 Mhz. Based on patch by Andy Green Signed-off-by: Archit Taneja --- drivers/gpu/drm/bridge/adv

[PATCH v6 8/8] dt-bindings: drm/bridge: Update bindings for ADV7533

2016-06-17 Thread Archit Taneja
Add description of ADV7533. Add the required and optional properties that are specific to it. Cc: devicetree at vger.kernel.org Acked-by: Rob Herring Signed-off-by: Archit Taneja --- .../bindings/display/bridge/adi,adv7511.txt| 26 +- 1 file changed, 21 insertions(

[PATCH v2 2/5] drm/exynos: iommu: add a check if all sub-devices have iommu controller

2016-06-17 Thread Marek Szyprowski
This patch adds a check if all devices belonging to Exynos DRM have the same dma_map_ops set. This is required to enable operation with IOMMU enabled. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_iommu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gp

[PATCH v2 0/5] Exynos DRM: add support for ARM 64bit arch with IOMMU

2016-06-17 Thread Marek Szyprowski
Hello, This patch series reworks IOMMU integration code to add support for ARM 64bit architecture with DMA-IOMMU glue code. Current inplementation uses conditional code (hidden in the exynos_drm_iommu.h file) because ARM 32bit and 64bit are not compatible in the area of DMA-mapping and IOMMU glue

[PATCH v2 3/5] drm/exynos: iommu: remove unused entries from exynos_drm_private strcuture

2016-06-17 Thread Marek Szyprowski
This patch removes unused entries from exynos_drm_private strcuture. da_start/da_space_size were only used in drm_create_iommu_mapping() function and never set to other value than the defaults. Instead use default values directly in arm_iommu_create_mapping() call. Signed-off-by: Marek Szyprowski

[PATCH v2 1/5] drm/exynos: iommu: move dma_params configuration code to separate functions

2016-06-17 Thread Marek Szyprowski
Move code for managing DMA max segment size parameter to separate functions. This patch also replaces devm_kzalloc() with kzalloc() and adds proper kfree call. devm_kzalloc() cannot be used for dma_params structure, because it will be freed on driver remove not on device release. This means in case

[PATCH v2 4/5] drm/exynos: iommu: move ARM specific code to exynos_drm_iommu.h

2016-06-17 Thread Marek Szyprowski
This patch moves all ARM 32bit DMA-mapping/IOMMU dependant code from exynos_drm_iommu.c to .h, to let it compile conditionally and prepare for adding support for other architectures/IOMMU glue code (like ARM 64bit with IOMMU-DMA glue). Later, when ARM 32bit and 64bit will be unified, this code can

[PATCH v2 5/5] drm/exynos: iommu: add support for ARM64 specific code for IOMMU glue

2016-06-17 Thread Marek Szyprowski
This patch adds support for ARM 64bit architecture with IOMMU-DMA glue code, so Exynos DRM can be now used on Exynos 5433 with IOMMU enabled. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/Kconfig| 2 +- drivers/gpu/drm/exynos/exynos_drm_drv.c | 7 +--- drivers/gpu/dr

[PATCH 13/16] drm: Refactor drop/set master code a bit

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:31AM +0200, Daniel Vetter wrote: > File open/set_maseter ioctl and file close/drop_master ioctl share the > same master handling code. Extract it. > > Note that vmwgfx's master_set callback needs to know whether the > master is a new one or has been used already, so t

[PATCH 14/16] drm: Extract drm_is_current_master

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:32AM +0200, Daniel Vetter wrote: > Just rolling out a bit of abstraction to be able to clean > up the master logic in the next step. > > Cc: Chris Wilson > Cc: Thomas Hellstrom > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson > --- > diff --git a/drivers/

[PATCH 15/16] drm: Clear up master tracking booleans

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:33AM +0200, Daniel Vetter wrote: > - is_master can be removed, we can compute this by checking allowed_master > (which really just tracks whether a master struct has been allocated > for this fpriv in either open or set_master), and whether the fpriv is > the cur

[PATCHv16 08/13] DocBook/media: add CEC documentation

2016-06-17 Thread Hans Verkuil
On 06/16/2016 11:09 PM, Mauro Carvalho Chehab wrote: > Em Fri, 29 Apr 2016 15:52:23 +0200 > Hans Verkuil escreveu: > >> From: Hans Verkuil >> >> Add DocBook documentation for the CEC API. > > Please always send the documentation patch *before* the code, > in order to make easier to do the code

[PATCH v4 0/7] drm/tilcdc Fixes and cleanups

2016-06-17 Thread Jyri Sarha
Some fixes and cleanups that should get merged to tilcdc even if my atomic changes are still a work in progress. Changes since v3: - "drm/tilcdc: Write to LCDC_END_OF_INT_IND_REG at the end of IRQ" - Do not bail out in the middle of irq routine, use full "if (rev == 2)"-statement in stead C

[PATCH v4 1/7] drm/tilcdc: Restore old dpms state in pm_resume()

2016-06-17 Thread Jyri Sarha
Restore old dpms state in pm_resume(). The dpms is turned off in pm_suspend() and it should be restored to its original state in pm_resume(). Without this patch the display is left blanked after a suspend/resume cycle. Fixes commit 614b3cfeb8d2 ("drm/tilcdc: disable the lcd controller/dma engine w

[PATCH v4 2/7] drm/tilcdc: Write to LCDC_END_OF_INT_IND_REG at the end of IRQ function

2016-06-17 Thread Jyri Sarha
Reorder the IRQ function so that the write to LCDC_END_OF_INT_IND_REG is done last. The write to LCDC_END_OF_INT_IND_REG indicates to LCDC that the interrupt service routine has completed (see section 13.3.6.1.6 in AM335x TRM). This is needed if LCDC's ipgvmodirq module is configured for pulse inte

[PATCH v4 3/7] drm/tilcdc: Move waiting of LCDC_FRAME_DONE IRQ into stop()

2016-06-17 Thread Jyri Sarha
Move wait queue waiting of LCDC_FRAME_DONE IRQ from tilcdc_crtc_dpms() into stop() function. This is just a cleanup and enables independent use of stop() function. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 31 --- 1 file changed, 16 insertio

[PATCH v4 4/7] drm/tilcdc: Increase time out for waiting frame done interrupt

2016-06-17 Thread Jyri Sarha
Increase time out for waiting frame done interrupt. 50ms is long enough for the usual display modes (50 Hz or higher refresh rate), but it may be a bit tight for some unusual mode. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v4 5/7] drm/tilcdc: Call drm_crtc_vblank_on() and *_off() in start() and stop()

2016-06-17 Thread Jyri Sarha
Add drm_crtc_vblank_on() and *_off() calls to start() and stop() functions, to make sure any vblank waits etc. gets properly cleaned up. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c

[PATCH v4 6/7] drm/tilcdc: Refer to panel.txt and tfp410.txt bindings in tilcdc.txt

2016-06-17 Thread Jyri Sarha
The legacy panel.txt and tfp410.txt bindings are still the only supported way to connect lcd panel and tfp410 DVI encoder to tilcdc. Signed-off-by: Jyri Sarha --- Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/dev

[PATCH v4 7/7] drm/tilcdc: Avoid error print by of_graph_get_next_endpoint()

2016-06-17 Thread Jyri Sarha
Avoid error print by of_graph_get_next_endpoint() if there is no ports present. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_external.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/ti

[PATCH 16/16] drm: document drm_auth.c

2016-06-17 Thread Chris Wilson
On Fri, Jun 17, 2016 at 09:33:34AM +0200, Daniel Vetter wrote: > Also extract drm_auth.h for nicer grouping. > > v2: Nuke the other comments since they don't really explain a lot, and > within the drm core we generally only document functions exported to > drivers: The main audience for these docs

[Mesa-dev] [RFC] New dma_buf -> EGLImage EGL extension - Final spec published!

2016-06-17 Thread Pekka Paalanen
ype: application/pgp-signature Size: 811 bytes Desc: OpenPGP digital signature URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160617/b682eabc/attachment-0001.sig>

[PATCHv16 09/13] cec: adv7604: add cec support.

2016-06-17 Thread Hans Verkuil
On 06/16/2016 11:17 PM, Mauro Carvalho Chehab wrote: > Em Fri, 29 Apr 2016 15:52:24 +0200 > Hans Verkuil escreveu: > >> From: Hans Verkuil >> >> Add CEC support to the adv7604 driver. >> >> Signed-off-by: Hans Verkuil >> [k.debski at samsung.com: Merged changes from CEC Updates commit by Hans

[PATCHv16 10/13] cec: adv7842: add cec support

2016-06-17 Thread Hans Verkuil
On 06/16/2016 11:22 PM, Mauro Carvalho Chehab wrote: > Em Fri, 29 Apr 2016 15:52:25 +0200 > Hans Verkuil escreveu: > >> From: Hans Verkuil >> >> Add CEC support to the adv7842 driver. >> >> Signed-off-by: Hans Verkuil > > Won't review patches 10-13, as the same reviews I made for patch 9 > ver

[Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-06-17 Thread Chris Wilson
On Thu, Jun 16, 2016 at 02:29:07PM -0700, James Bottomley wrote: > On Thu, 2016-06-16 at 23:24 +0200, Daniel Vetter wrote: > > On Thu, Jun 16, 2016 at 11:15 PM, James Bottomley > > wrote: > > > On Mon, 2016-06-13 at 13:14 +0300, Jani Nikula wrote: > > > > On Tue, 31 May 2016, James Bottomley < > >

Make connector registration automatic

2016-06-17 Thread Chris Wilson
The current recommendation is for new drivers to call: drm_dev_register(); drm_connector_register_all(); because of a limitation in the API for old drivers using driver->load() and being unable to call drm_connector_register() multiple times. Now that drm_connector_register() is saf

[PATCH 1/7] drm: Automatically register/unregister all connectors

2016-06-17 Thread Chris Wilson
As the drm_connector is now safe for multiple calls to register/unregister, automatically perform a registration on all known connectors drm drv_register (and unregister from drm_drv_unregister). Drivers can still call drm_connector_register() and drm_connector_unregister() individually, or defer a

[PATCH 2/7] drm/arc: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH 3/7] drm/atmel-hlcdc: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH 4/7] drm/hisilicon: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH 5/7] drm/mediatek: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH 6/7] drm/msm: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH 7/7] drm/rcar-du: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Chris Wilson
Up to now, the recommendation was for drivers to call drm_dev_register() followed by drm_connector_register_all(). Now that drm_connector_register() is safe against multiple invocations, we can move drm_connector_register_all() to drm_dev_register() and not suffer from any backwards compatibility i

[PATCH v7 00/12] Support non-lru page migration

2016-06-17 Thread Joonsoo Kim
On Thu, Jun 16, 2016 at 07:09:32PM +0900, Minchan Kim wrote: > On Thu, Jun 16, 2016 at 05:42:11PM +0900, Sergey Senozhatsky wrote: > > On (06/16/16 15:47), Minchan Kim wrote: > > > > [..] > > > > > > this is what I'm getting with the [zsmalloc: keep first object > > > > > > offset in struct page]

Early init drm_dp_aux for internal use before i2c-core is ready

2016-06-17 Thread Chris Wilson
In order to break a chicken-and-egg problem in wanting to use i2c_transfer on the drm_dp_aux before it is registered with userspace (which is a requirement for i2c_add_adapter() sadly), we need to prepare enough state internally so that drm_dp_aux->algo->master_xfer() is operation. A trio of patche

[PATCH 1/2] drm: Pass the drm_dp_aux->hw_mutex to i2c for its locking

2016-06-17 Thread Chris Wilson
Rather than have both drm_dp_aux lock within its transfer, and i2c to lock around the transfer, use the same lock by filling in the locking callbacks that i2c wants to use. We require our own hw_mutex as we bypass i2c_transfer for drm_dp_dpcd_access(). Signed-off-by: Chris Wilson Cc: Dave Airlie

[PATCH 2/2] drm: Minimally initialise drm_dp_aux

2016-06-17 Thread Chris Wilson
When trying to split up the initialisation phase and the registration phase, one immediate problem encountered is trying to use our own i2c devices before registration with userspace (to read EDID during device discovery). drm_dp_aux in particular only offers an interface for setting up the device

[PATCH v2] drm/fsl-dcu: Exchange fail_encoder and fail_connector

2016-06-17 Thread Meng Yi
The lable fail_connector should placed before fail_encoder since encoder was initialized before connector. which should also be called after connector initialization failed. Hi Stefan, What do you think? > --- > Change in V2: > -add prefix "drm/fsl-dcu" to subject > --- > drivers/gpu/drm/fsl-d

of_reserved_mem_device_init_by_idx() returns -EINVAL if "memory-region" is missing

2016-06-17 Thread Alexey Brodkin
Hi Marek, On Fri, 2016-06-17 at 07:28 +0200, Marek Szyprowski wrote: > Hi Alexey > > > On 2016-06-16 18:47, Alexey Brodkin wrote: > > > > Hi Marek, > > > > We used to use of_reserved_mem_device_init() in such a context in GPU > > drivers: > > >8--- > >

[PATCH 19/38] drm/hisilicon: Implement some semblance of vblank event handling

2016-06-17 Thread Xinliang Liu
Hi, On 17 June 2016 at 15:23, Daniel Vetter wrote: > On Fri, Jun 17, 2016 at 10:09:50AM +0800, Xinliang Liu wrote: >> Hi Daniel, >> >> I have tested your David's drm-next branch[1] which including this patch. >> In most time it is ok. But when switching modes or disable/re-enable >> mode, it will

RS780 UVD cause hpet_readl() very slow

2016-06-17 Thread Huacai Chen
Hi, Christian We found that if we use RS780 UVD decoding, hpet_readl() will need as long as 1ms. But, if attach a U-disk on south bridge (SB700) and read some data from it, hpet_readl() has no problem. Could you please give me some suggestions or fix it? How to reproduce: 1, apply the patch on to

[PATCH 6/7] drm/msm: Remove redundant calls to drm_connector_register_all()

2016-06-17 Thread Archit Taneja
On 06/17/2016 01:55 PM, Chris Wilson wrote: > Up to now, the recommendation was for drivers to call drm_dev_register() > followed by drm_connector_register_all(). Now that > drm_connector_register() is safe against multiple invocations, we can > move drm_connector_register_all() to drm_dev_regist

[PATCH v5 0/8] drm/tilcdc Fixes and cleanups

2016-06-17 Thread Jyri Sarha
Some fixes and cleanups that should get merged to tilcdc even if my atomic changes are still a work in progress. Yet one more round, sorry for spamming. Changes since v4: - Split "drm/tilcdc: Move LCDC_SYNC_LOST handling inside if (ver == 2) statement" out of "drm/tilcdc: Write to LCDC_EN

[PATCH v5 1/8] drm/tilcdc: Restore old dpms state in pm_resume()

2016-06-17 Thread Jyri Sarha
Restore old dpms state in pm_resume(). The dpms is turned off in pm_suspend() and it should be restored to its original state in pm_resume(). Without this patch the display is left blanked after a suspend/resume cycle. Fixes commit 614b3cfeb8d2 ("drm/tilcdc: disable the lcd controller/dma engine w

[PATCH v5 2/8] drm/tilcdc: Move LCDC_SYNC_LOST handling inside if (ver == 2) statement

2016-06-17 Thread Jyri Sarha
Move LCDC_SYNC_LOST handling inside if (ver == 2) statement. LCDC_SYNC_LOST interrupt status bit is only defined for version 2 silicon. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/d

[PATCH v5 4/8] drm/tilcdc: Move waiting of LCDC_FRAME_DONE IRQ into stop()

2016-06-17 Thread Jyri Sarha
Move wait queue waiting of LCDC_FRAME_DONE IRQ from tilcdc_crtc_dpms() into stop() function. This is just a cleanup and enables independent use of stop() function. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 31 --- 1 file changed, 16 insertio

[PATCH v5 7/8] drm/tilcdc: Refer to panel.txt and tfp410.txt bindings in tilcdc.txt

2016-06-17 Thread Jyri Sarha
The legacy panel.txt and tfp410.txt bindings are still the only supported way to connect lcd panel and tfp410 DVI encoder to tilcdc. Signed-off-by: Jyri Sarha --- Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/dev

[PATCH v5 8/8] drm/tilcdc: Avoid error print by of_graph_get_next_endpoint()

2016-06-17 Thread Jyri Sarha
Avoid error print by of_graph_get_next_endpoint() if there is no ports present. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_external.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/ti

[PATCH v5 2/8] drm/tilcdc: Move LCDC_SYNC_LOST handling in side if (ver == 2) statement

2016-06-17 Thread Jyri Sarha
Move LCDC_SYNC_LOST handling in side if (ver == 2) statement. LCDC_SYNC_LOST interrupt status bit is only defined for version 2 silicon. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/

[PATCH v5 3/8] drm/tilcdc: Write to LCDC_END_OF_INT_IND_REG at the end of IRQ function

2016-06-17 Thread Jyri Sarha
Reorder the IRQ function so that the write to LCDC_END_OF_INT_IND_REG is done last. The write to LCDC_END_OF_INT_IND_REG indicates to LCDC that the interrupt service routine has completed (see section 13.3.6.1.6 in AM335x TRM). This is needed if LCDC's ipgvmodirq module is configured for pulse inte

[PATCH v5 5/8] drm/tilcdc: Increase time out for waiting frame done interrupt

2016-06-17 Thread Jyri Sarha
Increase time out for waiting frame done interrupt. 50ms is long enough for the usual display modes (50 Hz or higher refresh rate), but it may be a bit tight for some unusual mode. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v5 6/8] drm/tilcdc: Call drm_crtc_vblank_on() and *_off() in start() and stop()

2016-06-17 Thread Jyri Sarha
Add drm_crtc_vblank_on() and *_off() calls to start() and stop() functions, to make sure any vblank waits etc. gets properly cleaned up. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c

RS780 UVD cause hpet_readl() very slow

2016-06-17 Thread Koenig, Christian
/ipfootball/video_bench/1920x1080_25fps_h264_ac3.mkv 4, ffmpeg -hwaccel vdpau -i 1920x1080_25fps_h264_acc.mkv -f rawvideo -an -y /dev/null 5, dmesg will complain "So big..." Huacai -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/arc

[PATCH v5 0/8] drm/tilcdc Fixes and cleanups

2016-06-17 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/20160617/056ff96d/attachment.sig>

[PATCH 37/38] drm/sti: Don't call drm_helper_disable_unused_functions

2016-06-17 Thread Benjamin Gaignard
Acked-by: Benjamin Gaignard 2016-06-02 0:07 GMT+02:00 Daniel Vetter : > Atomic drivers are supposed to do hw/sw state reset with the > drm_mode_config_reset() call right above it. > > Cc: Benjamin Gaignard > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/sti/sti_drv.c | 1 - > 1 file cha

[PATCH 2/5] drm/imx: imx-ldb: check return code on panel attach

2016-06-17 Thread Lucas Stach
Check the return code on panel attach. Avoids a kernel crash later on if the attach failed. Signed-off-by: Lucas Stach --- drivers/gpu/drm/imx/imx-ldb.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index

[PATCH 3/5] drm/imx: imx-ldb: detach panel on unbind

2016-06-17 Thread Lucas Stach
Make sure to leave a clean panel state behind and allow to properly attach to the panel again on a rebind. Signed-off-by: Lucas Stach --- drivers/gpu/drm/imx/imx-ldb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index 48166

[PATCH 1/5] drm/imx: disable outputs in lastclose when framebuffer emulation is disabled

2016-06-17 Thread Lucas Stach
If there is no framebuffer mode that can be restored, all outputs should be disabled in order to avoid information leaks. Signed-off-by: Lucas Stach --- drivers/gpu/drm/imx/imx-drm-core.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-d

[PATCH 4/5] drm/imx: drop deprecated load/unload drm_driver ops

2016-06-17 Thread Lucas Stach
Drop the load/unload driver ops, as they are deprecated because of their inherent races, with devices being visible to userspace before they are fully initialized. Move this code into the driver bind/unbind routines bracketed by the proper drm_dev_alloc/register and drm_dev_unregister/unref calls.

  1   2   >