[PATCH v6v3 02/12] mm: migrate: support non-lru movable page migration

2016-06-01 Thread Minchan Kim
On Tue, May 31, 2016 at 09:52:48AM +0200, Vlastimil Babka wrote: > On 05/31/2016 02:01 AM, Minchan Kim wrote: > >Per Vlastimi's review comment. > > > >Thanks for the detail review, Vlastimi! > >If you have another concern, feel free to say. > > I don't for now :) > > [...] > > >Cc: Rik van Riel

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

2016-06-01 Thread Minchan Kim
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and easy fork fail. The problem was fragmentation caused by zram and GPU driver mainly. With memory pressure, their pages were spread out all of pageblock and it cannot be migrat

[PATCH v7 02/12] mm: migrate: support non-lru movable page migration

2016-06-01 Thread Minchan Kim
We have allowed migration for only LRU pages until now and it was enough to make high-order pages. But recently, embedded system(e.g., webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory) so we have seen several reports about troubles of small high-order allocation. For fixing the

[PATCH 2/3] drm/exynos: fimd: add HW trigger support

2016-06-01 Thread Inki Dae
Hi Javier, 2016년 05월 31일 07:58에 Javier Martinez Canillas 이(가) 쓴 글: > Hello Inki, > > On 04/05/2016 04:27 AM, Inki Dae wrote: >> This patch adds HW trigger support on i80 mode. >> >> Until now, Exynos DRM only supported SW trigger which was set >> SWTRGCMD bit of TRIGCON register b

[PATCH v2 26/27] [media] omap_vout: Switch to use the video/omapfb_dss.h header file

2016-06-01 Thread Peter Ujfalusi
The omap_vout is only supported with omapfb. Switch the driver to use the correct header file. Signed-off-by: Peter Ujfalusi --- drivers/media/platform/omap/omap_vout.c| 2 +- drivers/media/platform/omap/omap_voutdef.h | 2 +- drivers/media/platform/omap/omap_voutlib.c | 2 +- 3 files change

[PATCH v2 27/27] drm/omap: Remove the video/omapdss.h and move it's content to local header file

2016-06-01 Thread Peter Ujfalusi
Move the contents of the video/omapdss.h header file to omapdrm/dss local header file and remove the original global header. The omapfb stach is using video/omapfb_dss.h so this change will complete the separation of the two driver implementation. Signed-off-by: Peter Ujfalusi --- drivers/gpu/dr

[PATCH v2 00/27] fb/drm: omapdss: Clean up the headers and separate the two stack

2016-06-01 Thread Peter Ujfalusi
Hi, Changes since v1: - patches (2) added to remove the inclusion of video/omap-panel-data.h when it is not needed - Transitional patch to create the video/omapfb_dss.h has been changed to copy the content of the omapdss.h in one step. omapfb is deprecated. It will not receive new features, o

[PATCH v2 03/27] omapfb: panel-tpo-td043mtea1: Remove legacy boot support

2016-06-01 Thread Peter Ujfalusi
The panel is not used by any legacy board files so the legacy (pdata) boot support can be dropped. Signed-off-by: Peter Ujfalusi --- .../omap2/omapfb/displays/panel-tpo-td043mtea1.c | 44 +++--- include/video/omap-panel-data.h| 16 2 files changed,

[PATCH v2 09/27] omapfb: encoder-tfp410: Remove legacy boot support

2016-06-01 Thread Peter Ujfalusi
The panel is not used by any legacy board files so the legacy (pdata) boot support can be dropped. Signed-off-by: Peter Ujfalusi --- .../fbdev/omap2/omapfb/displays/encoder-tfp410.c | 44 +++--- include/video/omap-panel-data.h| 14 --- 2 files changed, 6

[PATCH v2 10/27] omapfb: encoder-tpd12s015: No need to include video/omap-panle-data.h

2016-06-01 Thread Peter Ujfalusi
The driver does not support legacy (pdata) based probing. Signed-off-by: Peter Ujfalusi --- drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c b/drivers/video/fbdev/omap2/

[PATCH v2 13/27] drm/omap: connector-analog-tv: Support only Composite type in legacy boot

2016-06-01 Thread Peter Ujfalusi
In legacy mode (non DT mode) support only composite connector type. The only user for this is rx51, using composite type. Dropping the connector_type selection via pdata will allow cleanups in omapdss (drm vs fbdev). Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/omapdrm/displays/connector-an

[PATCH v2 16/27] omapdss: omap-panel-data.h: Remove connector_type from atv pdata

2016-06-01 Thread Peter Ujfalusi
The driver only supports composite connection when booted in legacy mode so the omap_dss_venc_type can be dropped from the pdata. At the same time the video/omapdss.h include can be removed as it is no longer needed. Signed-off-by: Peter Ujfalusi --- include/video/omap-panel-data.h | 3 --- 1 fi

[PATCH v2 17/27] ARM/video: omap2: Move omap_display_init declaration to mach-omap2/display.h

2016-06-01 Thread Peter Ujfalusi
The omap_display_init() is implemented in the mach-omap2/display.c so the declaration should have been there as well. Change the board files to include display.h to avoid build breakage at the same time. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/board-ldp.c| 1 + arch/arm/mac

[PATCH v2 23/27] omapdss: hdmi audio: Make header file independent of video/omapdss.h

2016-06-01 Thread Peter Ujfalusi
Clean up the header files regarding to hdmi audio so the omap-hdmi-audio.h file will only need to include the platform_data/omapdss.h file. Signed-off-by: Peter Ujfalusi CC: Mark Brown CC: Jyri Sarha CC: Liam Girdwood --- drivers/gpu/drm/omapdrm/dss/hdmi.h | 1 + drivers/video/fbdev/

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
There's still something very fishy going on with some of these, e.g. the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line somehow get treated as heading when just appending a :: at the end of those lines. But it seems to work everywhere else. Maybe the kernel-doc heading generation

[RFC v2 1/5] drm/mediatek: rename macros, add chip suffix

2016-06-01 Thread YT Shen
Hi Thierry, On Mon, 2016-05-30 at 12:41 +0200, Thierry Reding wrote: > On Fri, May 20, 2016 at 11:05:32PM +0800, yt.shen at mediatek.com wrote: > > From: YT Shen > > > > Add MT8173 suffix for hardware related macros. > > > > Signed-off-by: YT Shen > > --- > > drivers/gpu/drm/mediatek/mtk_drm_

[RFC v2 3/5] drm/mediatek: add *driver_data for different hardware settings

2016-06-01 Thread YT Shen
Hi Thierry, On Mon, 2016-05-30 at 12:45 +0200, Thierry Reding wrote: > On Mon, May 23, 2016 at 05:43:02PM +0800, CK Hu wrote: > > Hi, YT: > > > > One comment below. > > > > On Fri, 2016-05-20 at 23:05 +0800, yt.shen at mediatek.com wrote: > > > From: YT Shen > > > > > > There are some hardware

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Yakir Yang
There is a bug in RK3399 VOP, when bootloader/kernel only enable VOP Big or VOP Little to display, then VOP IOMMU would failed to reset at the initial time and VOP register couldn't write rightly. After do the pure reset of VOP module, then things back to right. Signed-off-by: Yakir Yang --- dr

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Chris Wilson
The intention of using video=: is primarily to select the user's preferred resolution at startup. Currently we always create a new mode irrespective of whether the monitor has a native mode at the desired resolution. This has the issue that we may then select the fake mode rather the native mode du

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Ville Syrjälä
On Wed, Jun 01, 2016 at 10:34:36AM +0100, Chris Wilson wrote: > The intention of using video=: is primarily to select > the user's preferred resolution at startup. Currently we always create a > new mode irrespective of whether the monitor has a native mode at the > desired resolution. This has the

[Intel-gfx] [PATCH v2 03/21] drm: Make drm_connector_register() safe against multiple calls

2016-06-01 Thread Daniel Vetter
On Mon, May 30, 2016 at 09:38:21AM +0100, Chris Wilson wrote: > Protect against drivers that may try to register the connector more > than once, or who try to unregister it multiple times. > > Signed-off-by: Chris Wilson > Cc: dri-devel at lists.freedesktop.org > --- > drivers/gpu/drm/drm_crtc.c

[Intel-gfx] [PATCH v2 04/21] drm: Automatically unregister the connector during cleanup

2016-06-01 Thread Daniel Vetter
On Mon, May 30, 2016 at 09:38:22AM +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. > > Signed-off-by: Chris Wilson > Cc: dri-devel at lists.freedesktop.org Reviewed-by: Daniel Vetter

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Jani Nikula
On Wed, 01 Jun 2016, Daniel Vetter wrote: > There's still something very fishy going on with some of these, e.g. > the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line > somehow get treated as heading when just appending a :: at the end of > those lines. But it seems to work every

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Chris Wilson
On Wed, Jun 01, 2016 at 12:43:53PM +0300, Ville Syrjälä wrote: > On Wed, Jun 01, 2016 at 10:34:36AM +0100, Chris Wilson wrote: > > The intention of using video=: is primarily to select > > the user's preferred resolution at startup. Currently we always create a > > new mode irrespective of whethe

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Chris Wilson
On Wed, Jun 01, 2016 at 12:43:53PM +0300, Ville Syrjälä wrote: > On Wed, Jun 01, 2016 at 10:34:36AM +0100, Chris Wilson wrote: > > The intention of using video=: is primarily to select > > the user's preferred resolution at startup. Currently we always create a > > new mode irrespective of whethe

[Intel-gfx] [PATCH v2 05/21] drm: Minimally initialise drm_dp_aux

2016-06-01 Thread Daniel Vetter
On Mon, May 30, 2016 at 09:38:23AM +0100, Chris Wilson wrote: > 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. drm_dp_aux in particular > only offers an inter

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Mark yao
On 2016年06月01日 17:19, Yakir Yang wrote: > There is a bug in RK3399 VOP, when bootloader/kernel only enable > VOP Big or VOP Little to display, then VOP IOMMU would failed to > reset at the initial time and VOP register couldn't write rightly. > > After do the pure reset of VOP module, then th

[PATCH v4] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Chris Wilson
The intention of using video=: is primarily to select the user's preferred resolution at startup. Currently we always create a new mode irrespective of whether the monitor has a native mode at the desired resolution. This has the issue that we may then select the fake mode rather the native mode du

[Intel-gfx] [PATCH v2 05/21] drm: Minimally initialise drm_dp_aux

2016-06-01 Thread Chris Wilson
On Wed, Jun 01, 2016 at 11:49:03AM +0200, Daniel Vetter wrote: > On Mon, May 30, 2016 at 09:38:23AM +0100, Chris Wilson wrote: > > 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 regis

[PATCH v3] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Ville Syrjälä
On Wed, Jun 01, 2016 at 10:47:51AM +0100, Chris Wilson wrote: > On Wed, Jun 01, 2016 at 12:43:53PM +0300, Ville Syrjälä wrote: > > On Wed, Jun 01, 2016 at 10:34:36AM +0100, Chris Wilson wrote: > > > The intention of using video=: is primarily to select > > > the user's preferred resolution at sta

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

2016-06-01 Thread Daniel Vetter
On Mon, May 30, 2016 at 09:38:20AM +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 v2 01/21] drm: Export drm_dev_init() for subclassing

2016-06-01 Thread Daniel Vetter
On Mon, May 30, 2016 at 09:38:19AM +0100, Chris Wilson wrote: > In order to allow drivers to pack their privates and drm_device into one > struct (e.g. for subclassing), export the initialisation routines for > struct drm_device. > > v2: Missed return ret. That error path had only one job to do! >

[PATCH v2 01/21] drm: Export drm_dev_init() for subclassing

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 12:01:44PM +0200, Daniel Vetter wrote: > On Mon, May 30, 2016 at 09:38:19AM +0100, Chris Wilson wrote: > > In order to allow drivers to pack their privates and drm_device into one > > struct (e.g. for subclassing), export the initialisation routines for > > struct drm_device

[PATCH v2 01/21] drm: Export drm_dev_init() for subclassing

2016-06-01 Thread Chris Wilson
On Wed, Jun 01, 2016 at 12:01:44PM +0200, Daniel Vetter wrote: > With the one bug in the error handling fixed, and the kerneldoc augmented: diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index f0553ccd4f71..4f3d3bba08f7 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/d

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

2016-06-01 Thread Chris Wilson
On Wed, Jun 01, 2016 at 11:57:09AM +0200, Daniel Vetter wrote: > On Mon, May 30, 2016 at 09:38:20AM +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 setu

[PATCH] drm: atmel-hlcdc: actually disable scaling when no scaling is required

2016-06-01 Thread Boris Brezillon
The driver is only enabling scaling, but never disabling it, thus, if you enable the scaling feature once it stays enabled forever. Signed-off-by: Boris Brezillon Reported-by: Alex Vazquez Fixes: 1a396789f65a ("drm: add Atmel HLCDC Display Controller support") Cc: --- drivers/gpu/drm/atmel-hlc

[PATCH v5 1/1] drm: sti: Add ASoC generic hdmi codec support.

2016-06-01 Thread Benjamin Gaignard
Ack-by: Benjamin Gaignard 2016-05-30 15:31 GMT+02:00 Arnaud Pouliquen : > Add the interface needed by audio hdmi-codec driver. > > Signed-off-by: Arnaud Pouliquen > --- > drivers/gpu/drm/sti/Kconfig| 1 + > drivers/gpu/drm/sti/sti_hdmi.c | 294 > ++---

[PULL] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, This pull request contains 2 trivial fixes for the atmel-hlcdc driver. The first one is making use of __drm_atomic_helper_crtc_destroy_state() instead of duplicating its logic in atmel_hlcdc_crtc_reset() and risking memory leaks if other objects are added to the common CRTC state. The s

[Nouveau] [PATCH 9/9] drm: Turn off crtc before tearing down its data structure

2016-06-01 Thread Lukas Wunner
On Wed, May 25, 2016 at 03:43:42PM +0200, Daniel Vetter wrote: > On Wed, May 25, 2016 at 12:51 PM, Lukas Wunner wrote: > > On Tue, May 24, 2016 at 11:30:42PM +0200, Daniel Vetter wrote: > >> On Tue, May 24, 2016 at 06:03:27PM +0200, Lukas Wunner wrote: > >> > When a drm_crtc structure is destroyed

Fence array patchset

2016-06-01 Thread Christian König
Hi guys, this is the next iteration of the fence array patch set. Daniel suggested that I provide an example on how this functionality might be used by a driver. So I added a few additional patches in this series to show what I want to do with this in the amdgpu driver. The main idea is that for

[PATCH 01/11] dma-buf/fence: make fence context 64 bit v2

2016-06-01 Thread Christian König
From: Christian König Fence contexts are created on the fly (for example) by the GPU scheduler used in the amdgpu driver as a result of an userspace request. Because of this userspace could in theory force a wrap around of the 32bit context number if it doesn't behave well. Avoid this by increa

[PATCH 03/11] dma-buf/fence: add signal_on_any to the fence array v2

2016-06-01 Thread Christian König
From: Christian König If @signal_on_any is true the fence array signals if any fence in the array signals, otherwise it signals when all fences in the array signal. v2: fix signaled test and add comment suggested by Chris Wilson. Signed-off-by: Christian König --- drivers/dma-buf/fence-arra

[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Christian König
From: Gustavo Padovan struct fence_collection inherits from struct fence and carries a collection of fences that needs to be waited together. It is useful to translate a sync_file to a fence to remove the complexity of dealing with sync_files on DRM drivers. So even if there are many fences in t

[PATCH 04/11] drm/amdgpu: document amdgpu_sync_get_fence

2016-06-01 Thread Christian König
From: Christian König It's not obvious what it should do. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 34a9280.

[PATCH 06/11] drm/amdgpu: remove amdgpu_sync_wait

2016-06-01 Thread Christian König
From: Christian König Stop hiding bugs, instead print a proper error when the scheduler doesn't handle all dependencies. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH 05/11] drm/amdgpu: generalize the scheduler fence

2016-06-01 Thread Christian König
From: Christian König Make it two events, one for the job being scheduled and one when it is finished. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 4 +- drivers/gpu/drm/amd/scheduler/gpu_sched_

[PATCH 07/11] drm/amdgpu: add optional ring to amdgpu_sync_is_idle

2016-06-01 Thread Christian König
From: Christian König Check if the sync object is idle depending on the ring a submission works with. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 17

[PATCH 11/11] drm/amdgpu: remove now unnecessary checks

2016-06-01 Thread Christian König
From: Christian König vm_flush() now comes directly after vm_grab_id(). Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 31 +++ 2 files changed, 11 insertions(+), 21 deletions(-) diff --gi

[PATCH 10/11] drm/amdgpu: use a fence array for VMID management

2016-06-01 Thread Christian König
From: Christian König Just wait for any fence to become available, instead of waiting for the last entry of the LRU. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_sync

[PATCH 09/11] drm/amdgpu: reuse VMIDs assigned to a VM only if there is also a free one

2016-06-01 Thread Christian König
From: Christian König This fixes a fairness problem with the GPU scheduler. VM having lot of jobs could previously starve VM with less jobs. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 113 + 1 file changed, 59 insertions(+), 54

[PATCH 08/11] drm/amdgpu: prefer VMIDs idle on the current ring

2016-06-01 Thread Christian König
From: Christian König Prefer to use a VMIDs which are idle on the ring we want to submit to. This also removes bubbling idle VMIDs up on the LRU, which is actually not beneficial. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 24 +--- 1 file

[PATCH 2/3] drm/exynos: fimd: add HW trigger support

2016-06-01 Thread Javier Martinez Canillas
Hello Inki, On 06/01/2016 01:56 AM, Inki Dae wrote: > Hi Javier, > > 2016년 05월 31일 07:58에 Javier Martinez Canillas 이(가) 쓴 글: >> Hello Inki, >> >> On 04/05/2016 04:27 AM, Inki Dae wrote: >>> This patch adds HW trigger support on i80 mode. >>> >>> Until now, Exynos DRM only supporte

[PATCH v4] drm: Only create a cmdline mode if no probed modes match

2016-06-01 Thread Alex Deucher
On Wed, Jun 1, 2016 at 5:50 AM, Chris Wilson wrote: > The intention of using video=: is primarily to select > the user's preferred resolution at startup. Currently we always create a > new mode irrespective of whether the monitor has a native mode at the > desired resolution. This has the issue t

[PATCH] drm: hdlcd: Cleanup the atomic plane operations and vsync handling

2016-06-01 Thread Liviu Dudau
Don't disable the vsync interrupt, as the hardware lacks hardware counters for vsync time stamping and that breaks the DRM assumptions. Also harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length regis

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula wrote: > On Wed, 01 Jun 2016, Daniel Vetter wrote: >> There's still something very fishy going on with some of these, e.g. >> the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line >> somehow get treated as heading when just appending a

Fence array patchset

2016-06-01 Thread Alex Deucher
On Wed, Jun 1, 2016 at 9:10 AM, Christian König wrote: > Hi guys, > > this is the next iteration of the fence array patch set. > > Daniel suggested that I provide an example on how this functionality might be > used by a driver. So I added a few additional patches in this series to show > what I

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Jani Nikula
On Wed, 01 Jun 2016, Daniel Vetter wrote: > On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula > wrote: >> On Wed, 01 Jun 2016, Daniel Vetter wrote: >>> There's still something very fishy going on with some of these, e.g. >>> the drm_modeset_lock Example: and the "Standard GTF Parameters:" Line >>> so

[PULL] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, On Wed, 1 Jun 2016 14:23:27 +0200 Boris Brezillon wrote: > Hi Dave, > > This pull request contains 2 trivial fixes for the atmel-hlcdc driver. Please ignore this PR. The __drm_atomic_helper_crtc_destroy_state() prototype has changed between my submission and the 4.7-rc1 release and it

[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Gustavo Padovan
Hi Christian, 2016-06-01 Christian König : > From: Gustavo Padovan > > struct fence_collection inherits from struct fence and carries a > collection of fences that needs to be waited together. > > It is useful to translate a sync_file to a fence to remove the complexity > of dealing with sync

[Nouveau] [PATCH 9/9] drm: Turn off crtc before tearing down its data structure

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 02:36:41PM +0200, Lukas Wunner wrote: > On Wed, May 25, 2016 at 03:43:42PM +0200, Daniel Vetter wrote: > > On Wed, May 25, 2016 at 12:51 PM, Lukas Wunner wrote: > > > On Tue, May 24, 2016 at 11:30:42PM +0200, Daniel Vetter wrote: > > >> On Tue, May 24, 2016 at 06:03:27PM +0

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

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 11:38:03AM +0100, Chris Wilson wrote: > On Wed, Jun 01, 2016 at 11:57:09AM +0200, Daniel Vetter wrote: > > On Mon, May 30, 2016 at 09:38:20AM +0100, Chris Wilson wrote: > > > If a driver wants to more precisely control its initialisation and in > > > particular, defer regist

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 04:46:10PM +0300, Jani Nikula wrote: > On Wed, 01 Jun 2016, Daniel Vetter wrote: > > On Wed, Jun 1, 2016 at 11:46 AM, Jani Nikula > > wrote: > >> On Wed, 01 Jun 2016, Daniel Vetter wrote: > >>> There's still something very fishy going on with some of these, e.g. > >>> the

[PATCH] drm/doc: Switch to sphinx/rst fixed-width quoting

2016-06-01 Thread Daniel Vetter
Just fallout from switching from asciidoc to sphinx/rst. v2: Found more. Also s/\//#/ in the vgpu ascii-art - sphinx treats those as comments and switch to variable-width, which wreaks the layout. v3: Undo some of the hacks, rebasing onto latest version of Jani's series fixed it. Signed-off-by:

[PATCH v2 1/5] drm: hdlcd: Revamp runtime power management

2016-06-01 Thread Liviu Dudau
Because the HDLCD driver acts as a component master it can end up enabling the runtime PM functionality before the encoders are initialised. This can cause crashes if the component slave never probes (missing module) or if the PM operations kick in before the probe finishes. Move the enabling of t

[PATCH v2 0/5] HDLCD cleanups for v4.7

2016-06-01 Thread Liviu Dudau
Hello, Here are a series of patches that I would like to add to v4.7. It fixes issues with suspend/resume on Juno (support for which has been added in v4.7-rc1). When doing the work I've noticed some breakage on the vsync behaviour so I've fixed that as well. In order to ease the introduction of D

[PATCH v2 3/5] drm: hdlcd: Cleanup the atomic plane operations

2016-06-01 Thread Liviu Dudau
Harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length registers that correctly reflect the plane's values. And make hdlcd_crtc_mode_set_nofb() a helper function for hdlcd_crtc_enable() rather than an e

[PATCH v2 4/5] drm: hdlcd: Don't touch vsync interrupts during vblank enable/disable.

2016-06-01 Thread Liviu Dudau
Because the HDLCD lacks a hardware counter for vsync signal, the DRM framework expects that the vsync interrupts are left running to feed the internal software counter. Currently the HDLCD is masking/unmasking the vsync interrupt on vblank enable/disable calls, which break that expectation. Fix tha

[PATCH v2 5/5] drm: hdlcd: Add information about the underlying framebuffers in debugfs

2016-06-01 Thread Liviu Dudau
drm_fb_cma code has a nice helper function to display in the debugfs information about the underlying framebuffers used by HDLCD: $ cat /sys/kernel/debug/dri/0/fb fb: 1920x1200 at XR24 0: offset=0 pitch=7680, obj: 0 ( 2) 001011ba 0xfc30 ff800a27c000 9338880 fb: 1920x1200 at XR

[PATCH v2 2/5] drm/hdlcd: Fix up crtc_state->event handling

2016-06-01 Thread Liviu Dudau
From: Daniel Vetter event_list just reimplemented what drm_crtc_arm_vblank_event does. And we also need to send out drm events when shutting down a pipe. With this it's possible to use the new nonblocking commit support in the helpers. Signed-off-by: Daniel Vetter Acked-by: Liviu Dudau --- d

[PATCH v2 4/5] drm: hdlcd: Don't touch vsync interrupts during vblank enable/disable.

2016-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 03:48:38PM +0100, Liviu Dudau wrote: > Because the HDLCD lacks a hardware counter for vsync signal, the DRM > framework expects that the vsync interrupts are left running to feed > the internal software counter. Currently the HDLCD is masking/unmasking > the vsync interrupt

[RESEND PATCH 4/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-06-01 Thread Rob Herring
On Fri, May 27, 2016 at 06:45:40PM +0800, Chris Zhong wrote: > This patch adds a binding that describes the cdn DP controller for > rk3399. > > Signed-off-by: Chris Zhong > --- > > .../bindings/display/rockchip/cdn-dp-rockchip.txt | 57 > ++ > 1 file changed, 57 insertions

[PATCH] drm/amdgpu: fix fw leak in non-powerplay dpm code

2016-06-01 Thread Alex Deucher
We need to release the firmware on driver tear down. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 3 +++ drivers/gpu/drm/amd/amdgpu/fiji_dpm.c| 5 + drivers/gpu/drm/amd/amdgpu/iceland_dpm.c | 5 + drivers/gpu/drm/amd/amdgpu/tonga_dpm.c | 5 + 4 fil

[PATCH v3 1/4] drm: hdlcd: Revamp runtime power management

2016-06-01 Thread Liviu Dudau
Because the HDLCD driver acts as a component master it can end up enabling the runtime PM functionality before the encoders are initialised. This can cause crashes if the component slave never probes (missing module) or if the PM operations kick in before the probe finishes. Move the enabling of t

[PATCH v3 0/4] HDLCD cleanups for v4.7

2016-06-01 Thread Liviu Dudau
Hello, Here are a series of patches that I would like to add to v4.7. It fixes issues with suspend/resume on Juno (support for which has been added in v4.7-rc1). When doing the work I've noticed some breakage on the vsync behaviour so I've fixed that as well. In order to ease the introduction of D

[PATCH v3 3/4] drm: hdlcd: Cleanup the atomic plane operations

2016-06-01 Thread Liviu Dudau
Harden the plane_check() code to drop attempts at scaling because that is not supported. Make hdlcd_plane_atomic_update() set the pitch and line length registers that correctly reflect the plane's values. And make hdlcd_crtc_mode_set_nofb() a helper function for hdlcd_crtc_enable() rather than an e

[PATCH v3 2/4] drm/hdlcd: Fix up crtc_state->event handling

2016-06-01 Thread Liviu Dudau
From: Daniel Vetter event_list just reimplemented what drm_crtc_arm_vblank_event does. And we also need to send out drm events when shutting down a pipe. With this it's possible to use the new nonblocking commit support in the helpers. Signed-off-by: Daniel Vetter Acked-by: Liviu Dudau --- d

[PATCH v3 4/4] drm: hdlcd: Add information about the underlying framebuffers in debugfs

2016-06-01 Thread Liviu Dudau
drm_fb_cma code has a nice helper function to display in the debugfs information about the underlying framebuffers used by HDLCD: $ cat /sys/kernel/debug/dri/0/fb fb: 1920x1200 at XR24 0: offset=0 pitch=7680, obj: 0 ( 2) 001011ba 0xfc30 ff800a27c000 9338880 fb: 1920x1200 at XR

[PATCH] drm/rockchip: vop: do axi reset in vop initial time

2016-06-01 Thread Thierry Reding
*/ > ahb_rst = devm_reset_control_get(vop->dev, "ahb"); This uses the same pattern, so you might want to consider reworking this as well, though it should be a separate patch. Thierry -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/1374c3a6/attachment.sig>

[PATCH 01/11] dma-buf/fence: make fence context 64 bit v2

2016-06-01 Thread Gustavo Padovan
2016-06-01 Christian König : > From: Christian König > > Fence contexts are created on the fly (for example) by the GPU scheduler used > in the amdgpu driver as a result of an userspace request. Because of this > userspace could in theory force a wrap around of the 32bit context number > if it

[RFC PATCH 2/4] clk: rockchip: rk3399: add ddrc clock support

2016-06-01 Thread Doug Anderson
Lin Huang, On Wed, Jun 1, 2016 at 2:35 AM, Lin Huang wrote: > add ddrc clock setting, so we can do ddr frequency > scaling on rk3399 platform in future. > > Signed-off-by: Lin Huang > --- > drivers/clk/rockchip/clk-rk3399.c | 16 > include/dt-bindings/clock/rk3399-cru.h |

[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Gustavo Padovan
2016-06-01 Christian König : > From: Gustavo Padovan > > struct fence_collection inherits from struct fence and carries a > collection of fences that needs to be waited together. > > It is useful to translate a sync_file to a fence to remove the complexity > of dealing with sync_files on DRM d

[PATCH 03/11] dma-buf/fence: add signal_on_any to the fence array v2

2016-06-01 Thread Gustavo Padovan
2016-06-01 Christian König : > From: Christian König > > If @signal_on_any is true the fence array signals if any fence in the array > signals, otherwise it signals when all fences in the array signal. > > v2: fix signaled test and add comment suggested by Chris Wilson. > > Signed-off-by: Ch

[PULL v2] drm: atmel-hlcdc: fixes for 4.7-rc2

2016-06-01 Thread Boris Brezillon
Hi Dave, Same pull request but after fixing the prototype mismatch in patch 1 (this time I tested it). This pull request contains 2 trivial fixes for the atmel-hlcdc driver. The first one is making use of __drm_atomic_helper_crtc_destroy_state() instead of duplicating its logic in atmel_hlcdc_cr

[PATCH] drm: Update obsolete information from {enable/disable}_vblank hooks.

2016-06-01 Thread Liviu Dudau
Since commit 4dfd64862ff8 ("drm: Use vblank timestamps to guesstimate how many vblanks were missed"), the DRM framework can cope with devices that don't have a hardware counter for vsync events without having to keep the vsync interrupts enabled all the time. Drivers handling such hardware should u

[RFC PATCH 2/4] clk: rockchip: rk3399: add ddrc clock support

2016-06-01 Thread Heiko Stübner
Am Mittwoch, 1. Juni 2016, 08:24:48 schrieb Doug Anderson: > Lin Huang, > > On Wed, Jun 1, 2016 at 2:35 AM, Lin Huang wrote: > > add ddrc clock setting, so we can do ddr frequency > > scaling on rk3399 platform in future. > > > > Signed-off-by: Lin Huang > > --- > > > > drivers/clk/rockchip/c

[PATCH v4 1/2] drm: bridge: Add sii902x driver

2016-06-01 Thread Boris Brezillon
On Tue, 17 May 2016 08:47:11 +0200 Daniel Vetter wrote: > > +static struct drm_encoder *sii902x_best_encoder(struct drm_connector > > *connector) > > +{ > > + struct sii902x *sii902x = connector_to_sii902x(connector); > > + > > + return sii902x->bridge.encoder; > > +} > > drm_atomic_helpe

[PATCH] drm: atomic: Handle funcs->best_encoder == NULL case

2016-06-01 Thread Boris Brezillon
Fallback drm_atomic_helper_best_encoder() is funcs->best_encoder() is NULL so that DRM drivers can leave this hook unassigned if they know they want to use drm_atomic_helper_best_encoder(). Signed-off-by: Boris Brezillon --- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3 inserti

[PATCH 19/26] drm/sun4i: Implement some semblance of vblank event handling

2016-06-01 Thread Maxime Ripard
t was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/51ed5154/attachment-0001.sig>

[PATCH 23/27] drm/sun4i: Use lockless gem BO free callback

2016-06-01 Thread Maxime Ripard
- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/aa4d3560/attachment.sig>

[PATCH 02/11] dma-buf/fence: add fence_array fences v6

2016-06-01 Thread Sumit Semwal
Hi Christian, Gustavo, Thanks for these patches. On 1 June 2016 at 20:55, Gustavo Padovan wrote: > 2016-06-01 Christian König : > >> From: Gustavo Padovan >> >> struct fence_collection inherits from struct fence and carries a >> collection of fences that needs to be waited together. >> >> It i

[GIT PULL] drm/mediatek: MT8173 DSI and DPI fixes

2016-06-01 Thread Philipp Zabel
Hi Dave, this tag contains two fixes, one each for an oversight in the DPI and DSI driver, respectively. regards Philipp The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git

[GIT PULL] imx-drm: LVDS updates and some cleanup

2016-06-01 Thread Philipp Zabel
Hi Dave, this tag contains support for pixel clock polarity configuration, LVDS panel EDID reading via DDC, video mode selection via native-mode DT property, UYVY/YUYV plane support, and some cleanups. regards Philipp The following changes since commit 1a695a905c18548062509178b98bc91e67510864:

[Nouveau] [PATCH 4/4] drm/nouveau/acpi: fix lockup with PCIe runtime PM

2016-06-01 Thread Lukas Wunner
On Wed, Jun 01, 2016 at 06:51:51PM +0200, Peter Wu wrote: > On Tue, May 31, 2016 at 02:20:26PM +0200, Lukas Wunner wrote: > > On Mon, May 30, 2016 at 06:13:51PM +0200, Peter Wu wrote: > > > Do you have any suggestions for the case where the pcieport driver > > > refuses to put the bridge in D3 (bec

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 Parker Reed changed: What|Removed |Added Kernel Version|4.6 |4.7 -- You are receiving this mail becaus

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 --- Comment #5 from Parker Reed --- Compiled git today and issue persists. Log attached. -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 117151] amdgpu: Fails to initialize R7 260x (Bonaire)

2016-06-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=117151 --- Comment #6 from Parker Reed --- Created attachment 218661 --> https://bugzilla.kernel.org/attachment.cgi?id=218661&action=edit 4.7.0-rc1 log -- You are receiving this mail because: You are watching the assignee of the bug.

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
-- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/d7f1cc00/attachment.html>

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
he assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/8aeb71b9/attachment.html>

[Bug 88458] The monitor turns off when playing starcraft 2 in wine

2016-06-01 Thread bugzilla-dae...@freedesktop.org
ideo (assuming it's done through the engine...). > > -- Oh, and Mesa is 12.0 rc1. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160601/8c26e858/attachment.html>

[PATCH] drm/panel: Remove the get_timings() function.

2016-06-01 Thread Eric Anholt
It appears to have no callers. Signed-off-by: Eric Anholt --- drivers/gpu/drm/panel/panel-simple.c | 18 -- include/drm/drm_panel.h | 4 2 files changed, 22 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c

  1   2   >