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

2016-06-02 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 06:18:59PM +0200, Maxime Ripard wrote: > Hi Daniel, > > On Sun, May 29, 2016 at 08:35:16PM +0200, Daniel Vetter wrote: > > atomic_flush seems to be the right place, right after we commit the > > plane updates. Again use the fullproof version, since the pipe might > > be off

[PATCH 00/38] nonblocking atomic commits for everyone!

2016-06-02 Thread Daniel Vetter
Hi all, Now without the RFC tag, but with polish: - kerneldoc for everything! - tested on virtio, hdlcd, rockchip and i915. The big upshot is still that the helpers are really picky about drivers sending out drm events correctly, and that is the area where most of the debug work was needed in tes

[PATCH 01/38] drm/atomic-helper: use for_each_*_in_state more

2016-06-02 Thread Daniel Vetter
This avois leaking drm_atomic_state internals into the helpers. The only place where this still happens after this patch is drm_atomic_helper_swap_state(). It's unavoidable there, and maybe a good indicator we should actually move that function into drm_atomic.c. Signed-off-by: Daniel Vetter ---

[PATCH 02/38] drm/i915: Use drm_atomic_get_existing_plane_state

2016-06-02 Thread Daniel Vetter
We want to encapsulate the drm_atomic_state internals. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_atomic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index 50ff90aea721..3e6d9f

[PATCH 03/38] drm/msm: Use for_each_*_in_state

2016-06-02 Thread Daniel Vetter
We want to hide drm_atomic_state internals Cc: Rob Clark Signed-off-by: Daniel Vetter --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c| 20 +++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c| 12 +++--- drivers/gpu/drm/msm/msm_atomic.c | 35 ++

[PATCH 04/38] drm/rcar-du: Use for_each_*_in_state

2016-06-02 Thread Daniel Vetter
We want to hide drm_atomic_state internals better. Cc: Laurent Pinchart Signed-off-by: Daniel Vetter --- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 8 drivers/gpu/drm/rcar-du/rcar_du_plane.c | 20 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/dri

[PATCH 05/38] drm/vc4: Use for_each_plane_in_state

2016-06-02 Thread Daniel Vetter
We want to hide drm_atomic_stat internals a bit better. Cc: Eric Anholt Signed-off-by: Daniel Vetter --- drivers/gpu/drm/vc4/vc4_kms.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c index cb37751bc99f.

[PATCH 06/38] drm/omap: Use for_each_plane_in_state

2016-06-02 Thread Daniel Vetter
We want to hide drm_atomic_stat internals a bit better. Cc: Laurent Pinchart Cc: Tomi Valkeinen Signed-off-by: Daniel Vetter --- drivers/gpu/drm/omapdrm/omap_drv.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/

[PATCH 07/38] drm/exynos: Use for_each_crtc_in_state

2016-06-02 Thread Daniel Vetter
We want to hide drm_atomic_state internals better. Cc: Inki Dae Acked-by: Inki Dae Signed-off-by: Daniel Vetter --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exy

[PATCH 08/38] drm/atomic: Add __drm_atomic_get_current_plane_state

2016-06-02 Thread Daniel Vetter
... and use it in msm&vc4. Again just want to encapsulate drm_atomic_state internals a bit. The const threading is a bit awkward in vc4 since C sucks, but I still think it's worth to enforce this. Eventually I want to make all the obj->state pointers const too, but that's a lot more work ... Cc:

[PATCH 09/38] drm: Consolidate connector arrays in drm_atomic_state

2016-06-02 Thread Daniel Vetter
It's kinda pointless to have 2 separate mallocs for these. And when we add more per-connector state in the future it's even more pointless. Right now there's no such thing planned, but both Gustavo's per-crtc fence patches, and some nonblocking commit helpers I'm playing around with will add more

[PATCH 11/38] drm: Consolidate crtc arrays in drm_atomic_state

2016-06-02 Thread Daniel Vetter
It's silly to have 2 mallocs when we could tie these two together. Also, Gustavo adds another one in his per-crtc out-fence patches. And I want to add more stuff here for nonblocking commit helpers. In the future we can use this to store a pointer to the preceeding state, making an atomic update

[PATCH 10/38] drm: Consolidate plane arrays in drm_atomic_state

2016-06-02 Thread Daniel Vetter
It's kinda pointless to have 2 separate mallocs for these. And when we add more per-plane state in the future it's even more pointless. Right now there's no such thing planned, but both Gustavo's per-crtc fence patches, and some nonblocking commit helpers I'm playing around with will add more per-

[PATCH 12/38] drm/fence: add fence to drm_pending_event

2016-06-02 Thread Daniel Vetter
From: Gustavo Padovan Now a drm_pending_event can either send a real drm_event or signal a fence, or both. It allow us to signal via fences when the buffer is displayed on the screen. Which in turn means that the previous buffer is not in use anymore and can be freed or sent back to another drive

[PATCH 13/38] drm/atomic-helper: Massage swap_state signature somewhat

2016-06-02 Thread Daniel Vetter
- dev is redundant, we have state->atomic - add stall parameter, which must be set when swapping needs to stall for preceeding commits to stop looking at ->state pointers. Currently all drivers need this to be, just prep work for a glorious future. Signed-off-by: Daniel Vetter --- drivers/gp

[PATCH 14/38] drm/arc: Nuke event_list

2016-06-02 Thread Daniel Vetter
This is just used for cleanup in preclose, and with the reworked event handling code this is now done properly by the core. Nuke it! But it also shows that arc totally fails at sending out drm events for flips. Next patch will hack that up. Cc: Carlos Palminha Cc: Alexey Brodkin Cc: linux-snps

[PATCH 15/38] drm/arc: Actually bother with handling atomic events.

2016-06-02 Thread Daniel Vetter
The drm core has a nice ready-made helper for exactly the simple case where it should fire on the next vblank. Note that arming the vblank event in _begin is probably too early, and might easily result in the vblank firing too early, before the new set of planes are actually disabled. But that's k

[PATCH 16/38] drm/hdlcd: Clean up crtc hooks

2016-06-02 Thread Daniel Vetter
Those are all no longer needed for a pure atomic driver. Cc: Liviu Dudau Tested-by: Liviu Dudau Acked-by: Liviu Dudau Signed-off-by: Daniel Vetter --- drivers/gpu/drm/arm/hdlcd_crtc.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/dr

[PATCH 17/38] drm/hdlcd: Fix up crtc_state->event handling

2016-06-02 Thread 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. Cc: Liviu Dudau Tested-by: Liviu Dudau Acked-by: Liviu Dudau Signed-off-by: Da

[PATCH 18/38] drm/fsl-du: Implement some semblance of vblank event handling

2016-06-02 Thread Daniel Vetter
No idea how exactly fsl-du commits hw state changes, but here in flush is probably the safest place. While at it nuke the dummy functions. v2: Be more robust and either arm, when the CRTC is on, or just send the event out right away. Cc: Stefan Agner Signed-off-by: Daniel Vetter --- drivers/g

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

2016-06-02 Thread Daniel Vetter
atomic_flush seems to be the right place, but I'm not entirely sure whether this will catch them all. It could be that when disabling the crtc we'll miss the vblank. While at it nuke the dummy functions. v2: Be more robust and either arm, when the CRTC is on, or just send the event out right away

[PATCH 20/38] drm/sun4i: Implement some semblance of vblank event handling

2016-06-02 Thread Daniel Vetter
atomic_flush seems to be the right place, right after we commit the plane updates. Again use the fullproof version, since the pipe might be off. Cc: Boris Brezillon Cc: Maxime Ripard Signed-off-by: Daniel Vetter --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 12 1 file changed, 12 inser

[PATCH 21/38] drm/atomic: kerneldoc for drm_atomic_crtc_needs_modeset

2016-06-02 Thread Daniel Vetter
Just a bit of drive-by ocd. Signed-off-by: Daniel Vetter --- include/drm/drm_atomic.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d9504dfcd1cc..465a1212f4f0 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic

[PATCH 22/38] drm/atomic-helper: nonblocking commit support

2016-06-02 Thread Daniel Vetter
Design ideas: - split up the actual commit into different phases, and have completions for each of them. This will be useful for the future when we want to interleave phases much more aggressively, for e.g. queue depth > 1. For not it's just a minimal optimization compared to current commo

[PATCH 23/38] drm/hdlcd: Use helper support for nonblocking commits

2016-06-02 Thread Daniel Vetter
With the fixed up drm event handling for crtc_state->event we can just use the helper support for nonblocking commits. Cc: Liviu Dudau Tested-by: Liviu Dudau Acked-by: Liviu Dudau Signed-off-by: Daniel Vetter --- drivers/gpu/drm/arm/hdlcd_drv.c | 8 +--- 1 file changed, 1 insertion(+), 7

[PATCH 24/38] drm/arc: Implement nonblocking commit correctly

2016-06-02 Thread Daniel Vetter
Committing with block it is not. Thanks to the fixed up vblank event handling we can just use the helper support for nonblocking commits now. Cc: Carlos Palminha Cc: Alexey Brodkin Cc: linux-snps-arc at lists.infradead.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/arc/arcpgu_drv.c | 8

[PATCH 25/38] drm/i915: Signal drm events for atomic

2016-06-02 Thread Daniel Vetter
This is part of what atomic must implement. And it's also required to be able to use the helper nonblocking support. v2: Always send out the drm event, remove the planes_changed check. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 13 ++--- drivers/gpu/drm/i915

[PATCH 26/38] drm/i915: Roll out the helper nonblock tracking

2016-06-02 Thread Daniel Vetter
Right now still all blocking, no worker anywhere to be seen. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 0618

[PATCH 27/38] drm/i915: nonblocking commit

2016-06-02 Thread Daniel Vetter
Simply split intel_atomic_commit in half and place the new nonblocking commit helpers at the right spots. NOTE: There's still trouble with obj->frontbuffer bits getting mangled when pipelining atomic commits. v2: - Remove the check for nonblocking which returned -EINVAL. - Do wait for requests in

[PATCH 29/38] drm/i915: Move fb_bits updating later in atomic_commit

2016-06-02 Thread Daniel Vetter
Currently it's part of prepare_fb, still in the first phase of atomic_commit which might fail. Which means that we need to have some heuristics in cleanup_fb to figure out whether things failed, or whether we just clean up the old fbs. That's fragile, and worse, once we start pipelining commits ge

[PATCH 28/38] drm/i915: Use atomic commits for legacy page_flips

2016-06-02 Thread Daniel Vetter
Note that I didn't start garbage collecting all the legacy flip code yet, to make it easier to revert this. But there will be _lots_ of code that can be removed once this is tested on all platforms. FIXME: obj->frontbuffer_bits gets out of whack when pipelining commits too hard. Signed-off-by: Da

[PATCH 30/38] drm/rockchip: Disarm vop->is_enabled

2016-06-02 Thread Daniel Vetter
With atomic helpers there's no need to track the enabled state of a pipe any more, because atomic helpers track this accurately already. Just disable the early returns, since the debug checks might be useful. v2: Don't call drm_helper_disable_unused_functions, it blows up without this check. At l

[PATCH 31/38] drm/rockchip: Fix crtc_state->event signalling

2016-06-02 Thread Daniel Vetter
It's not permissible to look at plane->state from interrupt context, since doing that would need the irq handler to acquire the plane->mutex lock. The other problem is that if we pipeline updates using the new nonblocking atomic helpers new state gets commit before the irq handler fires, resulting

[PATCH 33/38] drm/rockchip: Nuke pending event handling in preclose

2016-06-02 Thread Daniel Vetter
This is now handled by the core, drivers can totally ignore lifetime issues of drm events. Cc: Tomeu Vizoso Cc: Mark yao Tested-by: Tomeu Vizoso Reviewed-by: Tomeu Vizoso Signed-off-by: Daniel Vetter --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 22 -- drivers/gpu/drm

[PATCH 32/38] drm/rockchip: convert to helper nonblocking atomic commit

2016-06-02 Thread Daniel Vetter
With the various bits fixed rockchip now has an atomic compliant handling/signalling of crtc_state->event, which means we can just switch over to the new nonblocking helpers and remove some code. v2: Fixes from Tomeu. v3: Send out vblank events correctly when shutting down a crtc for good. This i

[PATCH 34/38] drm/virtio: Don't reinvent a flipping wheel

2016-06-02 Thread Daniel Vetter
Now that the core helpers support nonblocking atomic commits there's no need to invent that wheel separately (instead of fixing the bug in the atomic implementation of virtio, as it should have been done!). Cc: Gerd Hoffmann Tested-by: Gerd Hoffmann Reviewed-by: Gerd Hoffmann Signed-off-by: Dan

[PATCH 35/38] drm: Replace fb_helper->atomic with mode_config->atomic_commit

2016-06-02 Thread Daniel Vetter
Drivers transitioning to atomic might not yet want to enable full DRIVER_ATOMIC support when it's not entirely working. But using atomic internally makes a lot more sense earlier. Instead of spreading such flags to more places I figured it's simpler to just check for mode_config->funcs->atomic_com

[PATCH 36/38] drm: Resurrect atomic rmfb code

2016-06-02 Thread Daniel Vetter
This was somehow lost between v3 and the merged version in Maarten's patch merged as: commit f2d580b9a8149735cbc4b59c4a8df60173658140 Author: Maarten Lankhorst Date: Wed May 4 14:38:26 2016 +0200 drm/core: Do not preserve framebuffer on rmfb, v4. Actual code copied from Maarten's patch, b

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

2016-06-02 Thread 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 changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/s

[PATCH 38/38] drm/crtc-helper: disable_unused_functions really isn't for atomic

2016-06-02 Thread Daniel Vetter
Rockchip just blew up here on testing, because I removed some "is this crtc already disabled/enabled" state tracking from callbacks (not needed with atomic). Turns out that was needed to work around rockchip still calling legacy helper code. Since me explaining on irc/mailing-list plus kerneldoc i

[PATCH] drm: Deal with rotation in drm_plane_helper_check_update()

2016-06-02 Thread Patrik Jakobsson
On Wed, May 11, 2016 at 10:05 PM, Ville Syrjälä wrote: > On Fri, Jan 15, 2016 at 08:51:06PM +0200, ville.syrjala at linux.intel.com > wrote: >> From: Ville Syrjälä >> >> drm_plane_helper_check_update() needs to account for the plane rotation >> for correct clipping/scaling calculations. Do s

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

2016-06-02 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 02:41:51PM -0700, Andrew Morton wrote: > On Wed, 1 Jun 2016 08:21:09 +0900 Minchan Kim wrote: > > > 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 fra

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

2016-06-02 Thread Daniel Vetter
On Wed, Jun 01, 2016 at 09:54:04PM +0530, Sumit Semwal wrote: > 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

[PATCH 00/12] Improve PX support in radeon and amdgpu

2016-06-02 Thread Mike Lothian
//lists.freedesktop.org/mailman/listinfo/dri-devel > -- next part -- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160602/8ce83853/attachment.html>

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

2016-06-02 Thread Minchan Kim
On Wed, Jun 01, 2016 at 02:41:51PM -0700, Andrew Morton wrote: > On Wed, 1 Jun 2016 08:21:09 +0900 Minchan Kim wrote: > > > 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 fra

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

2016-06-02 Thread Yakir Yang
On 06/01/2016 11:19 PM, Thierry Reding wrote: > On Wed, Jun 01, 2016 at 05:19:12PM +0800, 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

[PATCH 1/2] drm/rockchip: vop: Do check if an update is pending during disable

2016-06-02 Thread Tomeu Vizoso
On 25 May 2016 at 03:33, Mark yao wrote: > On 2016年05月25日 09:06, Mark yao wrote: > > On 2016年05月24日 18:11, Tomeu Vizoso wrote: > > Hi Tomeu >> >> Sorry for reply late. >> I don't agree the changes: >> >> - if (!state->enable) >> - return VOP_WIN_GET(vop_win->vop, vop_win->data, enable)

[PATCH 1/2] drm/rockchip: vop: Do check if an update is pending during disable

2016-06-02 Thread Mark yao
On 2016年06月02日 13:57, Tomeu Vizoso wrote: > On 25 May 2016 at 03:33, Mark yao wrote: >> On 2016年05月25日 09:06, Mark yao wrote: >> >> On 2016年05月24日 18:11, Tomeu Vizoso wrote: >> >> Hi Tomeu >>> Sorry for reply late. >>> I don't agree the changes: >>> >>> - if (!state->enable) >>>

[PATCH 1/2] drm/rockchip: vop: Do check if an update is pending during disable

2016-06-02 Thread Tomeu Vizoso
On 2 June 2016 at 08:25, Mark yao wrote: > On 2016年06月02日 13:57, Tomeu Vizoso wrote: >> >> On 25 May 2016 at 03:33, Mark yao wrote: >>> >>> On 2016年05月25日 09:06, Mark yao wrote: >>> >>> On 2016年05月24日 18:11, Tomeu Vizoso wrote: >>> >>> Hi Tomeu Sorry for reply late. >>

[PATCH v2 1/5] drm/rockchip: sort registers define by chip's number

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > No functional changes, sort the vop registers to make > code more readable. I might have found a typo. I guess it could be just fixed in this patch, if it's already moving the code around. Please see the comments inline. > > Signed-off-by: Mark Ya

[PATCH v2 1/5] drm/rockchip: sort registers define by chip's number

2016-06-02 Thread Mark yao
On 2016年06月02日 14:51, Tomasz Figa wrote: > Hi Mark, > > Mark Yao rock-chips.com> writes: >> No functional changes, sort the vop registers to make >> code more readable. > I might have found a typo. I guess it could be just fixed in this patch, > if it's already moving the code around. Please

[PATCH 00/12] Improve PX support in radeon and amdgpu

2016-06-02 Thread Christian König
Am 01.06.2016 um 22:53 schrieb Alex Deucher: > This patch set cleans up and attempts to make runtime pm more > reliable in radeon and amdgpu on PX systems. If you have a PX > system that requires setting the runpm=0 module parameter for > stability, please try this patch set. > > The main fix is t

[PATCH v2 3/5] drm/rockchip: vop: introduce VOP_REG_MASK

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > Some new vop register support mask, bit[16-31] is mask, > bit[0-15] is value, the mask is correspond to the value. Please see my comments inline. > > Signed-off-by: Mark Yao rock-chips.com> > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop.c |

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

2016-06-02 Thread Christian König
Am 02.06.2016 um 00:44 schrieb Daniel Vetter: > On Wed, Jun 01, 2016 at 09:54:04PM +0530, Sumit Semwal wrote: >> 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

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

2016-06-02 Thread bugzilla-dae...@freedesktop.org
: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160602/b8c5deb9/attachment.html>

[PATCH v2 4/5] drm/rockchip: vop: add rk3399 vop support

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > There are two VOP in rk3399 chip, respectively VOP_BIG and VOP_LIT. > most registers layout of this two vop is same, their framework are both > VOP_FULL, the Major differences of this two is that: Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 5/5] dt-bindings: add documentation for Rockchip rk3399 display controllers

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > Cc: Rob Herring kernel.org> > Cc: Pawel Moll arm.com> > Cc: Mark Rutland arm.com> > Cc: Ian Campbell hellion.org.uk> > Cc: Kumar Gala codeaurora.org> > > Signed-off-by: Mark Yao rock-chips.com> > --- > .../bindings/display/rockchip/rockchip-

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

2016-06-02 Thread Boris Brezillon
Hi Daniel, On Wed, 1 Jun 2016 23:56:02 +0200 Daniel Vetter wrote: > On Wed, Jun 01, 2016 at 06:03:37PM +0200, Boris Brezillon wrote: > > On Tue, 17 May 2016 08:47:11 +0200 > > Daniel Vetter wrote: > > > > > > +static struct drm_encoder *sii902x_best_encoder(struct drm_connector > > > > *con

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

2016-06-02 Thread Boris Brezillon
On Wed, 1 Jun 2016 23:56:02 +0200 Daniel Vetter wrote: > On Wed, Jun 01, 2016 at 06:03:37PM +0200, Boris Brezillon wrote: > > On Tue, 17 May 2016 08:47:11 +0200 > > Daniel Vetter wrote: > > > > > > +static struct drm_encoder *sii902x_best_encoder(struct drm_connector > > > > *connector) > >

[PATCH 1/2] drm/dsi: Implement set tear scanline

2016-06-02 Thread Vinay Simha BN
Provide a small convenience wrapper that transmits ia set_tear_scanline command as suggested by Thierry Reding. Also includes small build fixes from Sumit Semwal. Cc: Archit Taneja Cc: John Stultz Cc: Thierry Reding Cc: Sumit Semwal Signed-off-by: Vinay Simha BN --- drivers/gpu/drm/drm_mipi

[PATCH 2/2] drm/dsi: Implement dcs backlight brightness

2016-06-02 Thread Vinay Simha BN
Provide a small convenience wrapper that set/get the backlight brightness control and creates the backlight device for the panel interface Cc: John Stultz Cc: Sumit Semwal Cc: Archit Taneja Cc: Rob Clark Signed-off-by: Vinay Simha BN -- v1: *tested in nexus7 2nd gen. --- drivers/gpu/drm/dr

[RFC PATCH 3/4] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-02 Thread hl
Hi Myungloo Ham, On 2016年06月01日 18:47, MyungJoo Ham wrote: > On Wed, Jun 1, 2016 at 6:35 PM, Lin Huang wrote: >> there is dfi controller on rk3399 platform, it can monitor >> ddr load, register this controller to devfreq framework, and >> default to use simple_ondeamnd policy, and do ddr f

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

2016-06-02 Thread hl
Hi Doug&Heiko, On 2016年06月01日 23:46, Heiko Stübner wrote: > 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. >>> >

[PATCH 2/2] dt-bindings: Add jdi lt070me05000 panel bindings

2016-06-02 Thread Vinay Simha BN
Add documentation for lt070me05000 panel Cc: Archit Taneja Cc: John Stultz Cc: Thierry Reding Cc: Sumit Semwal Signed-off-by: Vinay Simha BN -- v2: * incorporated rob herring and thierry reviews gpio to gpios, gpio to regulator using fixed regulators and pwm backlight is removed, sinc

[PATCH v3] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-06-02 Thread Vinay Simha BN
Add support for the JDI lt070me05000 WUXGA DSI panel used in Nexus 7 2013 devices. Programming sequence for the panel is was originally found in the android-msm-flo-3.4-lollipop-release branch from: https://android.googlesource.com/kernel/msm.git And video mode setting is from dsi-panel-jdi-d

[RFC PATCH 3/4] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-02 Thread hl
Hi Chanwoo Choi, I just check the devfreq-event framework code, it is good, i will do more dig to see whether it can fit for rk3399 dmc, thank you. On 2016年06月01日 19:47, Chanwoo Choi wrote: > Hi Lin, > > This patch include the two features as following: > - Monitor the ddr load > - Con

[PATCH] drm/vc4: clean up error exit path on failed dpi_connector allocation

2016-06-02 Thread Colin King
From: Colin Ian King There is redundant code in the clean up exit path when dpi_connector fails to be allocated. The current code checks if connector is NULL before destroying it, in fact, connector is NULL at this point so the check is redundant and can be removed. The final clean up is that we

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

2016-06-02 Thread Nicolas Ferre
Le 01/06/2016 13:42, Boris Brezillon a écrit : > 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 Disp

[PATCH 1/2] drm/atomic: Add struct drm_crtc_commit to track async updates

2016-06-02 Thread Daniel Vetter
Split out from my big nonblocking atomic commit helper code as prep work. While add it, also add some neat asciiart to document how it's supposed to be used. Tested-by: Tomeu Vizoso Cc: Maarten Lankhorst Cc: Tomeu Vizoso Cc: Daniel Stone Tested-by: Liviu Dudau Signed-off-by: Daniel Vetter --

[PATCH 2/2] drm/atomic-helper: nonblocking commit support

2016-06-02 Thread Daniel Vetter
Design ideas: - split up the actual commit into different phases, and have completions for each of them. This will be useful for the future when we want to interleave phases much more aggressively, for e.g. queue depth > 1. For not it's just a minimal optimization compared to current commo

[Bug 114711] ubsan: "shift exponent 32 is too large" in drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c:167:16

2016-06-02 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=114711 Navin changed: What|Removed |Added CC||navinp1912 at gmail.com --- Comment #1 from Navi

[PATCH] drm/nouveau/iccsense: fix memory leak on default sensor->type case

2016-06-02 Thread Colin King
From: Colin Ian King The default sensor->type case leaks memory allocated to rail. Fix this by free'ing rail before we continue with the next loop iteration. Signed-off-by: Colin Ian King --- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 1 + 1 file changed, 1 insertion(+) diff --git

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

2016-06-02 Thread Chris Wilson
On Thu, Jun 02, 2016 at 11:38:26AM +0200, Radek Dostál wrote: > On 06/01/2016 11:50 AM, Chris Wilson wrote: > >Fixes regression from > > > >commit eaf99c749d43ae74ac7ffece5512f3c73f01dfd2 > >Author: Chris Wilson > >Date: Wed Aug 6 10:08:32 2014 +0200 > > > > drm: Perform cmdline mode parsing

[PATCH 02/38] drm/i915: Use drm_atomic_get_existing_plane_state

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > We want to encapsulate the drm_atomic_state internals. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_atomic.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_atomic.c > b/dr

[PATCH 01/38] drm/atomic-helper: use for_each_*_in_state more

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > This avois leaking drm_atomic_state internals into the helpers. The > only place where this still happens after this patch is > drm_atomic_helper_swap_state(). > It's unavoidable there, and maybe a good indicator we should actually > move that function

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

2016-06-02 Thread Ville Syrjälä
On Thu, Jun 02, 2016 at 11:52:17AM +0100, Chris Wilson wrote: > On Thu, Jun 02, 2016 at 11:38:26AM +0200, Radek Dostál wrote: > > On 06/01/2016 11:50 AM, Chris Wilson wrote: > > >Fixes regression from > > > > > >commit eaf99c749d43ae74ac7ffece5512f3c73f01dfd2 > > >Author: Chris Wilson > > >Date:

[GIT PULL] drm/hdlcd: fixes for v4.7

2016-06-02 Thread Liviu Dudau
Hi Dave, I have accumulated some cleanup patches for HDLCD, partly triggered by Daniel Vetter's work on non-blocking atomic operations, that I would like to integrate into v4.7. My first patch is important for the newly enabled hibernate option for AArch64 on Juno, the others are fixing behaviour

[PATCH] amdgpu: fix fence status query

2016-06-02 Thread Christian König
From: Christian König Not initializing the ip instance leads to sporadic fails in the tests. Signed-off-by: Christian König --- tests/amdgpu/basic_tests.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index d2086ce..f778a7e

[PATCH] amdgpu: fix fence status query

2016-06-02 Thread Michel Dänzer
On 02.06.2016 20:40, Christian König wrote: > From: Christian König > > Not initializing the ip instance leads to sporadic fails in the tests. > > Signed-off-by: Christian König Reviewed-by: Michel Dänzer P.S. Please run git config format.subjectprefix "PATCH libdrm" in your libdrm t

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

2016-06-02 Thread Tomi Valkeinen
27;t see much chance for conflict there. Tomi -- 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/20160602/164897ac/attachment.sig>

[PATCH 00/12] Improve PX support in radeon and amdgpu

2016-06-02 Thread Alex Deucher
On Wed, Jun 1, 2016 at 8:02 PM, Mike Lothian wrote: > Are these in a branch somewhere? If not I'll try apply the mbox from > patchwork.freedesktop.org > Just pushed to my drm-next-4.8-wip branch. Alex > On Wed, 1 Jun 2016 at 21:53 Alex Deucher wrote: >> >> This patch set cleans up and attempts

[PATCH 3/5] Documentation/devicetree/bindings: Add b850v3_lvds_dp

2016-06-02 Thread Philipp Zabel
Hi Peter, Am Montag, den 30.05.2016, 18:39 +0200 schrieb Peter Senna Tschudin: > Devicetree bindings documentation for the GE B850v3 LVDS/DP++ > display bridge. > > Signed-off-by: Peter Senna Tschudin > --- > .../devicetree/bindings/ge/b850v3_lvds_dp.txt | 38 > ++ > 1

[PATCH 2/5] arm/dts/imx6q-b850v3: Configure IPU assignment order

2016-06-02 Thread Philipp Zabel
Am Montag, den 30.05.2016, 18:39 +0200 schrieb Peter Senna Tschudin: > Configure the IPU assignment order to assign one IPU per external > display. A single IPU can drive multiple external displays but there are > resolution restrictions. After this patch the GPU is capalbe of driving two > Full-HD

[RFC PATCH v2 0/3]

2016-06-02 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make a lots of sense to save the power consumption. For example, when desktop haven't change the context for a long time, then we could refresh the data to the hardware

[RFC PATCH v2 1/3] drm: bridge/analogix_dp: add the PSR function support

2016-06-02 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make lots of sense to save the power consumption. This patch have export two symbols for platform driver: analogix_dp_active_psr() analogix_dp_inactive_psr() Si

[RFC PATCH v2 2/3] drm/rockchip: vop: add line flag function support

2016-06-02 Thread Yakir Yang
VOP could use line flag interrupt to detect some target timing. For example, eDP PSR is interesting in vact_end, then VOP could configure the line number to vact_end, and wait for line flag interrupt coming. Signed-off-by: Yakir Yang --- Changes in v2: - introduce in v2, split VOP line flag chang

[RFC PATCH v2 3/3] drm/rockchip: analogix_dp: add PSR support

2016-06-02 Thread Yakir Yang
Let VOP vblank status decide whether panle should enter into or exit from PSR status. Before eDP start to change PSR status, it need to wait for VOP vact_end event. In order to listen vact_end event, I create a new file about PSR notify between eDP and VOP. Signed-off-by: Yakir Yang --- Changes i

[PATCH 1/5] drm/imx-ldb: Add support to drm-bridge

2016-06-02 Thread Philipp Zabel
Am Montag, den 30.05.2016, 18:39 +0200 schrieb Peter Senna Tschudin: > Add support to attach a drm_bridge to imx-ldb in addition to > existing support to attach a LVDS panel. > > Signed-off-by: Peter Senna Tschudin > --- > drivers/gpu/drm/imx/imx-ldb.c | 75 > +++

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

2016-06-02 Thread Daniel Vetter
On Thu, Jun 02, 2016 at 02:30:40PM +0300, Ville Syrjälä wrote: > On Thu, Jun 02, 2016 at 11:52:17AM +0100, Chris Wilson wrote: > > On Thu, Jun 02, 2016 at 11:38:26AM +0200, Radek Dostál wrote: > > > On 06/01/2016 11:50 AM, Chris Wilson wrote: > > > >Fixes regression from > > > > > > > >commit ea

[PATCH 03/38] drm/msm: Use for_each_*_in_state

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > We want to hide drm_atomic_state internals > > Cc: Rob Clark > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c| 20 +++-- > drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c| 12 +++--- > drivers/gpu/drm/msm

[PATCH 04/38] drm/rcar-du: Use for_each_*_in_state

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > We want to hide drm_atomic_state internals better. > > Cc: Laurent Pinchart > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/rcar-du/rcar_du_kms.c | 8 > drivers/gpu/drm/rcar-du/rcar_du_plane.c | 20 > 2 files c

[RFC PATCH v2 3/3] drm/rockchip: analogix_dp: add PSR support

2016-06-02 Thread Daniel Vetter
On Thu, Jun 02, 2016 at 08:57:38PM +0800, Yakir Yang wrote: > Let VOP vblank status decide whether panle should enter into or > exit from PSR status. Before eDP start to change PSR status, it > need to wait for VOP vact_end event. In order to listen vact_end > event, I create a new file about PSR n

[Intel-gfx] [PATCH 06/38] drm/omap: Use for_each_plane_in_state

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > We want to hide drm_atomic_stat internals a bit better. > > Cc: Laurent Pinchart > Cc: Tomi Valkeinen > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/omapdrm/omap_drv.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > d

[PATCH 05/38] drm/vc4: Use for_each_plane_in_state

2016-06-02 Thread Maarten Lankhorst
Op 02-06-16 om 00:06 schreef Daniel Vetter: > We want to hide drm_atomic_stat internals a bit better. > > Cc: Eric Anholt > Signed-off-by: Daniel Vetter Reviewed-by: Maarten Lankhorst

[PATCH 16/38] drm/hdlcd: Clean up crtc hooks

2016-06-02 Thread Daniel Vetter
On Thu, Jun 02, 2016 at 12:06:39AM +0200, Daniel Vetter wrote: > Those are all no longer needed for a pure atomic driver. > > Cc: Liviu Dudau > Tested-by: Liviu Dudau > Acked-by: Liviu Dudau > Signed-off-by: Daniel Vetter Applied this one to drm-misc, since Liviua already acked it. The other

[PATCH 1/6] drm/amdgpu/atpx: track whether if this is a hybrid graphics platform

2016-06-02 Thread Alex Deucher
hybrid graphics in this case refers to systems which use the new platform d3 cold ACPI methods as opposed to ATPX for dGPU power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 9 - 2 fil

[PATCH 2/6] drm/amdgpu/atpx: hybrid platforms use d3cold

2016-06-02 Thread Alex Deucher
The platform d3 cold is used to power down the dGPU. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 7e49bf4..6c

[PATCH 6/6] drm/radeon: drop explicit pci D3/D0 setting for ATPX power control

2016-06-02 Thread Alex Deucher
The ATPX power control method does this for you. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_drv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index f453450..56d15e6 10064

[PATCH 3/6] drm/amdgpu: drop explicit pci D3/D0 setting for ATPX power control

2016-06-02 Thread Alex Deucher
The ATPX power control method does this for you. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 6c38901..e

[PATCH 4/6] drm/radeon/atpx: track whether if this is a hybrid graphics platform

2016-06-02 Thread Alex Deucher
hybrid graphics in this case refers to systems which use the new platform d3 cold ACPI methods as opposed to ATPX for dGPU power control. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 9 - drivers/gpu/drm/radeon/radeon_drv.c | 2 ++ 2 files chang

  1   2   3   >