RPM wakelock ref not held during HW access

2016-01-13 Thread Sergey Senozhatsky
Hello, -mmots 4.4.0-mm1-dbg-00602-g776bd09 [ 5331.509087] WARNING: CPU: 0 PID: 359 at drivers/gpu/drm/i915/intel_drv.h:1446 gen6_read32+0x7b/0x253 [i915]() [ 5331.509091] RPM wakelock ref not held during HW access [ 5331.509093] Modules linked in: [ 5331.509182] CPU: 0 PID: 359 Comm: Xorg Not t

[GIT PULL 2nd] exynos-drm-next

2016-01-13 Thread inki....@samsung.com
Hi Dave, This 2nd pull request includes the following, - add configurable plane support and relevant cleanups. - fixup kernel panic issue at drm releasing. - remove unnecessary codes. This has been delayed to resolve a critical issue - which incurrs a kernel panic when driver is

[PATCH] x86: Add an explicit barrier() to clflushopt()

2016-01-13 Thread Chris Wilson
On Tue, Jan 12, 2016 at 02:07:35PM -0800, Linus Torvalds wrote: > On Tue, Jan 12, 2016 at 1:13 PM, Chris Wilson > wrote: > > Indeed. So I replaced the post-clflush_cache_range() clflush() with a > > udelay(10) instead, and the corruption vanished. Putting the udelay(10) > > before the clflush_cac

[Bug 93687] ppc64el:Gallium / clover fails to compile

2016-01-13 Thread bugzilla-dae...@freedesktop.org
to '__eq' that depend on a template parameter, so a declaration of '__eq' must be available [-fpermissive] _M_move_data(__x, __eq()); ^ /usr/include/c++/5/bits/stl_tree.h:1334:25: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/32624661/attachment-0001.html>

[Bug 93687] ppc64el:Gallium / clover fails to compile

2016-01-13 Thread bugzilla-dae...@freedesktop.org
An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/047d6316/attachment.html>

[Bug 93687] ppc64el:Gallium / clover fails to compile

2016-01-13 Thread bugzilla-dae...@freedesktop.org
sigh... -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/0443ed1d/attachment.html>

[PATCH 05/10] amdgpu: Cast pointer to uintptr_t for assignment to unsigned integer

2016-01-13 Thread Michel Dänzer
On 13.01.2016 06:23, Marek Olšák wrote: > From: Michel Dänzer > > CC amdgpu_bo.lo > ../../amdgpu/amdgpu_bo.c: In function 'amdgpu_create_bo_from_user_mem': > ../../amdgpu/amdgpu_bo.c:539:12: warning: assignment makes integer from > pointer without a cast [-Wint-conversion] > args.ad

[PATCH v7 1/2] Documentation: bridge: Add documentation for ps8640 DT properties

2016-01-13 Thread Jitao Shi
Add documentation for DT properties supported by ps8640 DSI-eDP converter. Signed-off-by: Jitao Shi Acked-by: Rob Herring Reviewed-by: Philipp Zabel --- Change since v6: - No change --- .../devicetree/bindings/display/bridge/ps8640.txt | 43 1 file changed, 43 insertio

[PATCH v7 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-01-13 Thread Jitao Shi
This patch adds drm_bridge driver for parade DSI to eDP bridge chip. Signed-off-by: Jitao Shi --- Changes since v6: - Add ps8640 firmware update function - Change i2c to i2c_transfer from i2c_master_recv/i2c_master_send - Add comments for each page client --- drivers/gpu/drm/bridge/Kconfig

[Bug 93687] ppc64el:Gallium / clover fails to compile

2016-01-13 Thread bugzilla-dae...@freedesktop.org
build, and without having to get a downstream patch into Debian / RHEL. Thanks! -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/

[PATCH v7 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-01-13 Thread Archit Taneja
Hi Jitao, On 01/13/2016 07:48 AM, Jitao Shi wrote: > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi > --- > Changes since v6: > - Add ps8640 firmware update function > - Change i2c to i2c_transfer from i2c_master_recv/i2c_master_send > - Ad

[Bug 92858] AMD Radeon GPU Acceleration Disabled Under Kernels 4.2.x and later versions

2016-01-13 Thread bugzilla-dae...@freedesktop.org
... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/efbc4b2f/attachment.html>

[PATCH] drm/rockchip: vop: fix mask when updating interrupts

2016-01-13 Thread Mark yao
On 2016年01月13日 02:05, John Keeping wrote: > Commit dbb3d94 (drm/rockchip: vop: move interrupt registers into > vop_data) introduced new macros for updating the interrupt control > registers but these always use the mask from the register definition > without refining it for the particular bit

[PATCH 1/2] drm/rockchip: Don't build rockchip_drm_vop as modules

2016-01-13 Thread Mark Yao
rockchip_drm_vop's module init had moved to rockchip_vop_reg.c so no need to build rockchip_drm_vop.ko Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/Makefile |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/rockchip/Makefile b/drivers/gpu/drm/ro

[PATCH 0/2] drm/rockchip: cleanup unnecessary modules and symbol

2016-01-13 Thread Mark Yao
Since a67719d (drm/rockchip: vop: spilt register related into rockchip_reg_vop.c), rockchip_drm_vop's module_init moved to rockchip_vop_reg.c, then no need to build rockchip_drm_vop.ko After build rockchip_drm_vop.c into rockchipdrm.ko, following export symbol is also no needed: rockchip_drm_d

[PATCH 2/2] drm/rockchip: cleanup unnecessary export symbol

2016-01-13 Thread Mark Yao
Now rockchip_drm_vop.c is build into rockchipdrm.ko, so no need to export following symbol anymore: rockchip_drm_dma_attach_device rockchip_drm_dma_detach_device rockchip_drm_dma_attach_device rockchip_drm_dma_detach_device rockchip_register_crtc_funcs rockchip_unregister_cr

[PATCH 2/5] drm: sti: add atomic get/set properties for planes

2016-01-13 Thread Benjamin Gaignard
gt; + .atomic_set_property = sti_plane_atomic_set_property, > > > > + .atomic_get_property = sti_plane_atomic_get_property, > > > > }; > > > > -- > > > > 1.9.1 > > > > > > > > ___ > > > > dri-devel mailing list > > > > dri-devel at lists.freedesktop.org > > > > http://lists.freedesktop.org/mailman/listinfo/dri-devel > > > > > > -- > > > Daniel Vetter > > > Software Engineer, Intel Corporation > > > http://blog.ffwll.ch > > > > > > > > > > > -- > > > > Benjamin Gaignard > > > > Graphic Working Group > > > > Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM > SoCs > > > > Follow *Linaro: *Facebook <http://www.facebook.com/pages/Linaro> | > Twitter > > <http://twitter.com/#!/linaroorg> | Blog > > <http://www.linaro.org/linaro-blog/> > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch > -- Benjamin Gaignard Graphic Working Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs Follow *Linaro: *Facebook <http://www.facebook.com/pages/Linaro> | Twitter <http://twitter.com/#!/linaroorg> | Blog <http://www.linaro.org/linaro-blog/> -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/d4478af8/attachment-0001.html>

[PATCH 2/5] drm: sti: add atomic get/set properties for planes

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 09:53:32AM +0100, Benjamin Gaignard wrote: > Hi, > > I have been able to implement zpos in generic way using Marek's patches (v3) > so I'm abandon this patch and wait to see Marek's patches merged to propose > a new one. Imo Marek's patch is pretty much ready. Feel like do

[PATCH v3 1/3] drm: add generic zpos property

2016-01-13 Thread Benjamin Gaignard
t drm_plane_state { > /* Plane rotation */ > unsigned int rotation; > > + /* Plane zpos */ > + unsigned int zpos; > + unsigned int normalized_zpos; > + > struct drm_atomic_state *state; > }; > > @@ -2083,6 +2092,8 @@ struct drm_mode_config { > struct drm_property *tile_property; > struct drm_property *plane_type_property; > struct drm_property *rotation_property; > + struct drm_property *zpos_property; > + struct drm_property *zpos_immutable_property; > struct drm_property *prop_src_x; > struct drm_property *prop_src_y; > struct drm_property *prop_src_w; > @@ -2484,6 +2495,9 @@ extern struct drm_property > *drm_mode_create_rotation_property(struct drm_device > extern unsigned int drm_rotation_simplify(unsigned int rotation, > unsigned int > supported_rotations); > > +extern int drm_mode_create_zpos_property(struct drm_device *dev); > +extern int drm_mode_create_zpos_immutable_property(struct drm_device > *dev); > + > /* Helpers */ > > static inline struct drm_plane *drm_plane_find(struct drm_device *dev, > -- > 1.9.2 > > -- Benjamin Gaignard Graphic Working Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs Follow *Linaro: *Facebook <http://www.facebook.com/pages/Linaro> | Twitter <http://twitter.com/#!/linaroorg> | Blog <http://www.linaro.org/linaro-blog/> -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/bbf7f5e1/attachment-0001.html>

[PATCH 00/10] libdrm amdgpu patches

2016-01-13 Thread Christian König
Am 12.01.2016 um 22:30 schrieb Alex Deucher: > On Tue, Jan 12, 2016 at 4:23 PM, Marek Olšák wrote: >> Hi, >> >> These are libdrm_amdgpu patches harvested from an internal branch. >> >> The first patch is a revert I had to make to fix the build. Yeah, >> sequence_mutex should be renamed to a mor

[PATCH 16/22] drm/omap: Nuke close hooks

2016-01-13 Thread Tomi Valkeinen
x27; local needs to be removed from omap_atomic_commit, otherwise: drivers/gpu/drm/omapdrm/omap_drv.c:145:16: error: unused variable 'flags' Tomi -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/381b7dd1/attachment.sig>

[PATCH] drm/omap: Nuke close hooks

2016-01-13 Thread Daniel Vetter
Again since the core takes care of this we can remove them. While at it also remove the postclose hook, it's empty. v2: Laurent pointed me at even more code to delete. v3: Remove unused flags (Tomi). Cc: Laurent Pinchart Cc: Tomi Valkeinen Acked-by: Daniel Stone Reviewed-by: Alex Deucher Sig

[PATCH 00/10] libdrm amdgpu patches

2016-01-13 Thread Marek Olšák
On Wed, Jan 13, 2016 at 11:43 AM, Christian König wrote: > Am 12.01.2016 um 22:30 schrieb Alex Deucher: >> >> On Tue, Jan 12, 2016 at 4:23 PM, Marek Olšák wrote: >>> >>> Hi, >>> >>> These are libdrm_amdgpu patches harvested from an internal branch. >>> >>> The first patch is a revert I had to

[PATCH 20/22] drm/tilcdc: Nuke preclose hook

2016-01-13 Thread Tomi Valkeinen
ame: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/24f365a9/attachment.sig>

[PATCH 00/10] libdrm amdgpu patches

2016-01-13 Thread Christian König
Am 13.01.2016 um 12:15 schrieb Marek Olšák: > On Wed, Jan 13, 2016 at 11:43 AM, Christian König > wrote: >> Am 12.01.2016 um 22:30 schrieb Alex Deucher: >>> On Tue, Jan 12, 2016 at 4:23 PM, Marek Olšák wrote: Hi, These are libdrm_amdgpu patches harvested from an internal branc

[PATCH v9 14/14] drm/mediatek: Add interface to allocate Mediatek GEM buffer.

2016-01-13 Thread Philipp Zabel
Am Dienstag, den 12.01.2016, 23:40 +0100 schrieb Daniel Vetter: > On Tue, Jan 12, 2016 at 11:02 PM, Rob Herring wrote: > > On Tue, Jan 12, 2016 at 9:15 AM, Philipp Zabel > > wrote: > >> From: CK Hu > >> > >> Add an interface to allocate Mediatek GEM buffers, allow the IOCTLs > >> to be used by

[PATCH] drm: Do not set connector->encoder in drivers

2016-01-13 Thread Liviu Dudau
On Tue, Nov 17, 2015 at 10:29:56AM +, Liviu Dudau wrote: > On Mon, Nov 16, 2015 at 06:19:53PM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > An encoder is associated with a connector by the DRM core as a result of > > setting up a configuration. Drivers using the atomic or lega

[patch] drm/nouveau/pci: reversed condition in nvkm_pcie_set_link()

2016-01-13 Thread Dan Carpenter
The condition is reversed so this function is a no-op. Fixes: bcc19d9bf5cd ('drm/nouveau/pci: implement generic code for pcie speed change') Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c index b32954f..

[PATCH] drm: Do not set connector->encoder in drivers

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 11:47:20AM +, Liviu Dudau wrote: > On Tue, Nov 17, 2015 at 10:29:56AM +, Liviu Dudau wrote: > > On Mon, Nov 16, 2015 at 06:19:53PM +0100, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > An encoder is associated with a connector by the DRM core as a res

[PATCH] x86: Add an explicit barrier() to clflushopt()

2016-01-13 Thread Chris Wilson
On Tue, Jan 12, 2016 at 06:06:34PM -0800, Linus Torvalds wrote: > On Tue, Jan 12, 2016 at 4:55 PM, Chris Wilson > wrote: > > > > The double clflush() remains a mystery. > > Actually, I think it's explainable. > > It's wrong to do the clflush *after* the GPU has done the write, which > seems to

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread John Keeping
As commented in drm_atomic_helper_wait_for_vblanks(), userspace relies on cursor ioctls being unsynced. Converting the rockchip driver to atomic has significantly impacted cursor performance by making every cursor update wait for vblank. By skipping the vblank sync when the framebuffer has not ch

[GIT PULL][drm-next] drm: Add support for ARM HDLCD

2016-01-13 Thread Liviu Dudau
Hi David, This is the DRM part of the ARM HDLCD driver. It has been included in linux-next for about a week and includes the Kconfig patches submitted by Arnd Bergman last week. Please pull into drm-next. Best regards, Liviu The following changes since commit 8a0d560f3e651808ae0a3d9ab9fe476e59de

[PATCH] drm: nouveau: fix nouveau_debugfs_init prototype

2016-01-13 Thread Arnd Bergmann
The new debugfs initialization code fails to build when CONFIG_DEBUG_FS is disabled: In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0: drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init': drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error:

[PATCH] drm: nouveau: fix nouveau_debugfs_init prototype

2016-01-13 Thread Arnd Bergmann
On Wednesday 13 January 2016 14:55:47 Karol Herbst wrote: > > Arnd Bergmann hat am 13. Januar 2016 um 14:48 > > geschrieben: > > > > The new debugfs initialization code fails to build when CONFIG_DEBUG_FS > > is disabled: > > > > In file included from > > /git/arm-soc/drivers/gpu/drm/nouveau/n

[PATCH 0/7] drm/exynos/hdmi: add Exynos5433 support

2016-01-13 Thread Andrzej Hajda
Hi Inki, Ping. Regards Andrzej On 11/02/2015 02:16 PM, Andrzej Hajda wrote: > Hi Inki, Krzysztof, > > This patchset adds support for Exynos 5433 HDMI. > There are also few preparation/cleanup patches. > All patches except one touch only exynos-drm. > Sixth patch adds binding properties for Exyn

[PATCH 19/22] drm/tegra: Stop cancelling page flip events

2016-01-13 Thread Thierry Reding
nature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/031530ad/attachment.sig>

[RFC] handling of alpha mode (pre-multiplied/straight) in ARGB modes

2016-01-13 Thread Marek Szyprowski
Hello, On 2016-01-11 16:22, Ville Syrjälä wrote: > On Mon, Jan 11, 2016 at 04:07:50PM +0100, Daniel Vetter wrote: >> On Mon, Jan 11, 2016 at 03:18:44PM +0100, Marek Szyprowski wrote: >>> Dear All, >>> >>> I would like to add support for configuring alpha modes: straight and >>> pre-multiplied fo

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 12:53:34PM +, John Keeping wrote: > As commented in drm_atomic_helper_wait_for_vblanks(), userspace relies > on cursor ioctls being unsynced. Converting the rockchip driver to > atomic has significantly impacted cursor performance by making every > cursor update wait fo

[RFC] handling of alpha mode (pre-multiplied/straight) in ARGB modes

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 03:13:35PM +0100, Marek Szyprowski wrote: > Hello, > > On 2016-01-11 16:22, Ville Syrjälä wrote: > >On Mon, Jan 11, 2016 at 04:07:50PM +0100, Daniel Vetter wrote: > >>On Mon, Jan 11, 2016 at 03:18:44PM +0100, Marek Szyprowski wrote: > >>>Dear All, > >>> > >>>I would like

[PATCH] drm/crtc-helper: Add caveat to disable_unused_functions doc

2016-01-13 Thread Daniel Vetter
This shouldn't be used by atomic drivers any more, it confuses the state tracking. Cc: Maxime Ripard Cc: Laurent Pinchart Acked-by: Laurent Pinchart Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc_helper.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread John Keeping
On Wed, 13 Jan 2016 15:23:20 +0100, Daniel Vetter wrote: > On Wed, Jan 13, 2016 at 12:53:34PM +, John Keeping wrote: > > As commented in drm_atomic_helper_wait_for_vblanks(), userspace > > relies on cursor ioctls being unsynced. Converting the rockchip > > driver to atomic has significantly i

[PATCH 3/5] drm/sysfs: use kobj_to_dev()

2016-01-13 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/gpu/drm/drm_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 0ca6410..d503f8e 100644 --- a/drivers/gpu/drm/drm_sysfs.c +

[PATCH 1/5] drm/i915: use hlist_for_each_entry

2016-01-13 Thread Geliang Tang
Use hlist_for_each_entry() instead of hlist_for_each() to simplify the code. Signed-off-by: Geliang Tang --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i91

[PATCH 4/5] drm/amdgpu: use kobj_to_dev()

2016-01-13 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 4386cba..7d8d84e 100644 -

[PATCH 12/22] drm/atmel: Nuke preclose

2016-01-13 Thread Boris Brezillon
On Mon, 11 Jan 2016 22:41:06 +0100 Daniel Vetter wrote: > The only thing this did was cancle pending flip events, and the core > takes care of that now. > > Cc: Boris Brezillon > Acked-by: Daniel Stone > Reviewed-by: Alex Deucher > Signed-off-by: Daniel Vetter Acked-by: Boris Brezillon >

[RFC] handling of alpha mode (pre-multiplied/straight) in ARGB modes

2016-01-13 Thread Ville Syrjälä
On Wed, Jan 13, 2016 at 03:13:35PM +0100, Marek Szyprowski wrote: > Hello, > > On 2016-01-11 16:22, Ville Syrjälä wrote: > > On Mon, Jan 11, 2016 at 04:07:50PM +0100, Daniel Vetter wrote: > >> On Mon, Jan 11, 2016 at 03:18:44PM +0100, Marek Szyprowski wrote: > >>> Dear All, > >>> > >>> I would l

[PATCH v12 0/18] Add Analogix Core Display Port Driver

2016-01-13 Thread Heiko Stuebner
Hi Yakir, Am Mittwoch, 23. Dezember 2015, 20:25:38 schrieb Yakir Yang: >The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller > share the same IP, so a lot of parts can be re-used. I split the common > code into bridge directory, then rk3288 and exynos only need to keep > some p

[PATCH 2/5] drm/i915: use kobj_to_dev()

2016-01-13 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/gpu/drm/i915/i915_sysfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index 37e3f0d..c6188dd 100644 --- a/dr

[PATCH 5/5] drm/radeon: use kobj_to_dev()

2016-01-13 Thread Geliang Tang
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/gpu/drm/radeon/radeon_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 59abebd..460c8f2 100644 --- a/drivers

[Intel-gfx] [PATCH 1/5] drm/i915: use hlist_for_each_entry

2016-01-13 Thread Chris Wilson
On Wed, Jan 13, 2016 at 10:48:39PM +0800, Geliang Tang wrote: > Use hlist_for_each_entry() instead of hlist_for_each() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > drivers/gpu/drm/i915/i915_gem_execbuffer.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) >

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 02:34:25PM +, John Keeping wrote: > On Wed, 13 Jan 2016 15:23:20 +0100, Daniel Vetter wrote: > > > On Wed, Jan 13, 2016 at 12:53:34PM +, John Keeping wrote: > > > As commented in drm_atomic_helper_wait_for_vblanks(), userspace > > > relies on cursor ioctls being uns

[Intel-gfx] [PATCH 2/5] drm/i915: use kobj_to_dev()

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 10:48:40PM +0800, Geliang Tang wrote: > Use kobj_to_dev() instead of open-coding it. > > Signed-off-by: Geliang Tang Queued for -next, thanks for the patch. -Daniel > --- > drivers/gpu/drm/i915/i915_sysfs.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH 3/5] drm/sysfs: use kobj_to_dev()

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 10:48:41PM +0800, Geliang Tang wrote: > Use kobj_to_dev() instead of open-coding it. > > Signed-off-by: Geliang Tang Merged to drm-misc, thanks. -Daniel > --- > drivers/gpu/drm/drm_sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread John Keeping
On Wed, 13 Jan 2016 16:40:05 +0100, Daniel Vetter wrote: > On Wed, Jan 13, 2016 at 02:34:25PM +, John Keeping wrote: > > On Wed, 13 Jan 2016 15:23:20 +0100, Daniel Vetter wrote: > > > > > On Wed, Jan 13, 2016 at 12:53:34PM +, John Keeping wrote: > > > > As commented in drm_atomic_help

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 03:55:29PM +, John Keeping wrote: > On Wed, 13 Jan 2016 16:40:05 +0100, Daniel Vetter wrote: > > > On Wed, Jan 13, 2016 at 02:34:25PM +, John Keeping wrote: > > > On Wed, 13 Jan 2016 15:23:20 +0100, Daniel Vetter wrote: > > > > > > > On Wed, Jan 13, 2016 at 12:53

[PATCH] uapi: use __u8 from linux/types.h

2016-01-13 Thread Michael S. Tsirkin
On Wed, Jan 13, 2016 at 07:10:15PM +0300, Gleb Fotengauer-Malinovskiy wrote: > Kernel headers should use linux/types.h based definitions. > > Signed-off-by: Gleb Fotengauer-Malinovskiy Acked-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_gpu.h | 2 +- > 1 file changed, 1 insertion(+

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread John Keeping
On Wed, 13 Jan 2016 17:21:56 +0100, Daniel Vetter wrote: > On Wed, Jan 13, 2016 at 03:55:29PM +, John Keeping wrote: > > On Wed, 13 Jan 2016 16:40:05 +0100, Daniel Vetter wrote: > > > > > On Wed, Jan 13, 2016 at 02:34:25PM +, John Keeping wrote: > > > > On Wed, 13 Jan 2016 15:23:20 +0

[PATCH v2 07/16] drm: omapdrm: gem: Remove omap_drm_private has_dmm field

2016-01-13 Thread Tomi Valkeinen
if usergart is really what they depend on. Tomi -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20160113/c56d1294/attachment.sig>

[PATCH 5/5] drm/radeon: use kobj_to_dev()

2016-01-13 Thread Alex Deucher
On Wed, Jan 13, 2016 at 9:48 AM, Geliang Tang wrote: > Use kobj_to_dev() instead of open-coding it. > > Signed-off-by: Geliang Tang Applied patches 4 and 5. thanks! Alex > --- > drivers/gpu/drm/radeon/radeon_pm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driver

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread Daniel Vetter
On Wed, Jan 13, 2016 at 04:40:38PM +, John Keeping wrote: > On Wed, 13 Jan 2016 17:21:56 +0100, Daniel Vetter wrote: > > > On Wed, Jan 13, 2016 at 03:55:29PM +, John Keeping wrote: > > > On Wed, 13 Jan 2016 16:40:05 +0100, Daniel Vetter wrote: > > > > > > > On Wed, Jan 13, 2016 at 02:34

[PATCH 5/5] drm/amdgpu: validate duplicates first

2016-01-13 Thread Alex Deucher
On Mon, Jan 11, 2016 at 9:35 AM, Christian König wrote: > From: Christian König > > Most VM BOs end up in the duplicates list, validate it > first make -ENOMEM less likely. > > Signed-off-by: Christian König > Reviewed-by: Chunming Zhou Applied the series. thanks! Alex > --- > drivers/g

[PATCH RFC 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-01-13 Thread Jean-Francois Moine
On Wed, 6 Jan 2016 21:41:30 +0100 Jens Kuske wrote: > On 05/01/16 19:40, Jean-Francois Moine wrote: > [snip] > > diff --git a/drivers/gpu/drm/sunxi/de2_hdmi_h3.c > > b/drivers/gpu/drm/sunxi/de2_hdmi_h3.c > > new file mode 100644 > > index 000..c54b090 > > --- /dev/null > > +++ b/drivers/gpu/

[PATCH] drm/nouveau/device: ensure ret is initialized to zero

2016-01-13 Thread Colin King
From: Colin Ian King nvkm_udevice_time does not initialize ret and this is used in the macro nvif_unpack(). Intializing it to zero allows the compiler to optimize out the ret == -ENOSYS check in the macro. Issue found by static analysis with cppcheck: [drivers/gpu/drm/nouveau/nvkm/engine/device/

[patch] drm/nouveau/pci: reversed condition in nvkm_pcie_set_link()

2016-01-13 Thread Karol Herbst
Hi Dan, yeah I also catched that. I assume something went wrong in the review process, because I am sure I didn't added that "pci ||" check myself ;) but who knows, maybe I was tired working with ben on that, cause it was like 4am while doing the last polishing steps. nvm, I already send a patch

[patch] drm/nouveau/pci: reversed condition in nvkm_pcie_set_link()

2016-01-13 Thread Karol Herbst
> Karol Herbst hat am 13. Januar 2016 um 13:30 > geschrieben: > > Hi Dan, > > yeah I also catched that. I assume something went wrong in the review process, > because I am sure I didn't added that "pci ||" check myself ;) but who knows, > maybe I was tired working with ben on that, cause it was

[PATCH] drm: nouveau: fix nouveau_debugfs_init prototype

2016-01-13 Thread Karol Herbst
> Arnd Bergmann hat am 13. Januar 2016 um 14:48 geschrieben: > > The new debugfs initialization code fails to build when CONFIG_DEBUG_FS > is disabled: > > In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0: > drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nou

[PATCH] uapi: use __u8 from linux/types.h

2016-01-13 Thread Gleb Fotengauer-Malinovskiy
Kernel headers should use linux/types.h based definitions. Signed-off-by: Gleb Fotengauer-Malinovskiy --- include/uapi/linux/virtio_gpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h index 7a63faa..4b04ead 1

[RFC/PATCH] drm/rockchip: don't wait for vblank if fb hasn't changed

2016-01-13 Thread John Keeping
On Wed, 13 Jan 2016 18:19:17 +0100, Daniel Vetter wrote: > On Wed, Jan 13, 2016 at 04:40:38PM +, John Keeping wrote: > > On Wed, 13 Jan 2016 17:21:56 +0100, Daniel Vetter wrote: > > > > > On Wed, Jan 13, 2016 at 03:55:29PM +, John Keeping wrote: > > > > On Wed, 13 Jan 2016 16:40:05 +0

[PATCH] x86: Add an explicit barrier() to clflushopt()

2016-01-13 Thread Linus Torvalds
On Wed, Jan 13, 2016 at 4:34 AM, Chris Wilson wrote: > > Forgive me for being dense, but if we overwrite the GPU data in the > backing struct page with the cacheline from the CPU, how do we see the > results from the GPU afterwards? Hmm. Good point. Ok, all the symptoms just say "writes from GP

[pull] radeon and amdgpu drm-next-4.5

2016-01-13 Thread Alex Deucher
Hi Dave, A few more misc things for radeon and amdgpu for 4.5: - TTM fixes for imported buffers - amdgpu fixes to avoid -ENOMEM in CS ioctl - CZ UVD and VCE clock force options for debugging video issues - A couple of ACP prerequisites - Misc fixes The following changes since commit 57b4f7e68720e

[PATCH] drm: avoid uninitialized timestamp use in wait_vblank

2016-01-13 Thread Arnd Bergmann
gcc warns about the timestamp in drm_wait_vblank being possibly used without an initialization: drivers/gpu/drm/drm_irq.c: In function 'drm_wait_vblank': drivers/gpu/drm/drm_irq.c:1755:28: warning: 'now.tv_usec' may be used uninitialized in this function [-Wmaybe-uninitialized] vblwait->reply.

[PATCH 0/4] virtio-gpu: Fixes for atomic support

2016-01-13 Thread Rob Herring
Dave, This series is the minimal changes to get virtio-gpu working with Android DRM based hwcomposer. The first 3 patches are fixes, but I assume they are only hit if using the atomic APIs which is dependent on the 4th patch. I suspect async commit support is also missing, but Android doesn't

[PATCH 1/4] drm: virtio-gpu: get the fb from the plane state for atomic updates

2016-01-13 Thread Rob Herring
When using the atomic API, plane->fb is not set when calling virtio_gpu_plane_atomic_update. Use plane->state->fb instead. Signed-off-by: Rob Herring --- drivers/gpu/drm/virtio/virtgpu_plane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_

[PATCH 2/4] drm: virtio-gpu: ensure plane is flushed to host on atomic update

2016-01-13 Thread Rob Herring
This fixes drawing updates when updating planes with atomic API. Signed-off-by: Rob Herring --- drivers/gpu/drm/virtio/virtgpu_plane.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index 6b9ad59..af121cf

[PATCH 3/4] drm: virtio-gpu: transfer dumb buffers to host on plane update

2016-01-13 Thread Rob Herring
For dumb buffers, we need to transfer them to the host when updating a plane. Signed-off-by: Rob Herring --- drivers/gpu/drm/virtio/virtgpu_plane.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index af

[PATCH 4/4] drm: virtio-gpu: set atomic flag

2016-01-13 Thread Rob Herring
Advertise atomic mode setting capability to user space. Signed-off-by: Rob Herring --- drivers/gpu/drm/virtio/virtgpu_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c index b40ed60..7f898cf 1006

[PATCH v7 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2016-01-13 Thread Daniel Kurtz
Hi Jitao, On Tue, Jan 12, 2016 at 6:18 PM, Jitao Shi wrote: > This patch adds drm_bridge driver for parade DSI to eDP bridge chip. > > Signed-off-by: Jitao Shi > --- > Changes since v6: > - Add ps8640 firmware update function > - Change i2c to i2c_transfer from i2c_master_recv/i2c_master_send

OMAPDSS: panel-sharp-ls037v7dw01: update to use gpiod

2016-01-13 Thread Tony Lindgren
Hi, * Dan Carpenter [151223 23:29]: > [ It's weird that I'm just now getting this warning from 2014... Oh > well, looks legit. -dan ] Sorry for the delay on this one, got distracted few times with other bugs to deal with. This seems like a valid warning yeah. Tomi, do we really need two copies

[RESEND,V2] drm: fsl-dcu: Fix no fb check bug

2016-01-13 Thread Stefan Agner
On 2016-01-08 01:20, Emil Velikov wrote: > Hi guys, > > Am I loosing the plot here or something feels amiss here ? > > On 6 January 2016 at 06:12, Meng Yi wrote: >> For state->fb or state->crtc may be NULL in fsl_dcu_drm_plane_atomic_check >> function, if so, return 0. >> >> Signed-off-by: Meng