[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Inki Dae
2014-04-04 22:55 GMT+09:00 Tomasz Figa : > Hi Inki, > > > On 01.04.2014 14:37, Inki Dae wrote: >> >> This patch adds super device support to bind sub drivers >> using device tree. >> >> For this, you should add a super device node to each machine dt files >> like belows, >> >> In case of using MIPI

[PATCH 0/8] various exynos cleanups

2014-04-05 Thread Daniel Kurtz
On Fri, Mar 14, 2014 at 9:34 AM, Daniel Kurtz wrote: > On Wed, Mar 5, 2014 at 1:15 PM, Inki Dae wrote: >> Hi, >> >> Thanks you for cleanups. >> >> 2014-03-05 14:01 GMT+09:00 Daniel Kurtz : >>> Just some clean up patches, mostly for libdrm_exynos. >>> >>> Daniel Kurtz (8): >>> eyxnos: install ex

screen goes blank when loading gma500_gfx (atom D2500)

2014-04-05 Thread Michael Tokarev
Hello again It's been about 2 months since I sent the original debugging output. Today I tried out 3.14 kernel. And this one behaves quite similarly, screen goes blank right when loading gma500_gfx module. Here's the dmesg from a freshly booted system after doing modprobe drm debug=6 modp

[PATCH 1/4] drm/radeon/dp: handle zero sized i2c over aux transactions

2014-04-05 Thread Christian König
Am 04.04.2014 21:58, schrieb Alex Deucher: > Needed for proper i2c over aux handling for certain > monitors and configurations (e.g., dp bridges or > adapters). > > Signed-off-by: Alex Deucher My planning was that yesterdays pull request is the last one with new features. I can't judge how invas

[PATCH 00/13] coverity

2014-04-05 Thread Daniel Vetter
Hi all, Rainy w/e here and I got a bit bored, so looked at coverity again. I've closed all outstanding issues in drivers/gpu now either as false positives or fixed in this series expect for vmwgfx/ttm stuff (not enough clue) and one insane savage init issue (no desire to wake dragons today). Chee

[PATCH 00/13] coverity

2014-04-05 Thread Daniel Vetter
Hi all, Rainy w/e here and I got a bit bored, so looked at coverity again. I've closed all outstanding issues in drivers/gpu now either as false positives or fixed in this series expect for vmwgfx/ttm stuff (not enough clue) and one insane savage init issue (no desire to wake dragons today). Chee

[PATCH 01/13] drm/mgag200: Remove unnecessary NULL check in bo_unref

2014-04-05 Thread Daniel Vetter
ttm_bo_unref unconditionally calls kref_put on it's argument, so the thing can't be NULL without already causing Oopses. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/mgag200/mgag200_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gp

[PATCH 02/13] drm/mgag200: Remove unecessary NULL check in gem_free

2014-04-05 Thread Daniel Vetter
The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/mgag200/mgag200_main.c | 2 -- 1 file changed, 2 deletions(-) diff --gi

[PATCH 03/13] drm/cirrus: Remove unnecessary NULL check in bo_unref

2014-04-05 Thread Daniel Vetter
ttm_bo_unref unconditionally calls kref_put on it's argument, so the thing can't be NULL without already causing Oopses. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/cirrus/cirrus_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/

[PATCH 04/13] drm/cirrus: Remove unecessary NULL check in gem_free

2014-04-05 Thread Daniel Vetter
The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/cirrus/cirrus_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH 05/13] drm/ast: Remove unnecessary NULL check in bo_unref

2014-04-05 Thread Daniel Vetter
ttm_bo_unref unconditionally calls kref_put on it's argument, so the thing can't be NULL without already causing Oopses. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/ast/ast_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 06/13] drm/mgag200: Remove unecessary NULL check in gem_free

2014-04-05 Thread Daniel Vetter
The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/ast/ast_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/driv

[PATCH 07/13] drm/via: Remove unecessary NULL check

2014-04-05 Thread Daniel Vetter
The context_dtor callback is only called once we've successfully loaded the driver, which means dev->dev_private is set up. The check is hence pointless. Also dev->dev_private is deref already above, so compilers are free to elide it anyway. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/via/

[PATCH 08/13] drm/ast: Remove dead code from cbr_scan2

2014-04-05 Thread Daniel Vetter
The outer if already checks for data != 0, so it can't really be 0. Hence remove it. Now I don't have specs or anything for this beast, so I have no idea whether this was actually intended or whether the logic should be different. At least the code still seems to be doing something useful. Spotte

[PATCH 09/13] drm/udl: Initialize ret in udl_driver_load

2014-04-05 Thread Daniel Vetter
We need to set it to -ENODEV when we don't recognize the device. Otherwise we return/print stack garbage. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/udl/udl_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl

[PATCH 10/13] drm/bochs: Remove unnecessary NULL check in bo_unref

2014-04-05 Thread Daniel Vetter
ttm_bo_unref unconditionally calls kref_put on it's argument, so the thing can't be NULL without already causing Oopses. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/bochs/bochs_mm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 11/13] drm/bochs: Remove unecessary NULL check in gem_free

2014-04-05 Thread Daniel Vetter
The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Noticed while chasing coverity reports, somehow this one here was not flagged. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/bochs/bochs_mm

[PATCH 12/13] drm/i2c/tda998x: Fix signed overflow issue

2014-04-05 Thread Daniel Vetter
This is C standard hair-splitting, but afaict - sum will be promoted to signed int in computation since uint8_t fits - signed overflow is undefined. No we need to add up an awful lot of bytes to actually make it overflow. But I guess the real risk is gcc spotting this and going bananas. Fix this

[PATCH 13/13] drm: Fix error handling in drm_master_create

2014-04-05 Thread Daniel Vetter
We need to check whether drm_ht_create succeed and clean up if not. Spotted by coverity. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_stub.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index dc2c6095d850

[PATCH 12/13] drm/i2c/tda998x: Fix signed overflow issue

2014-04-05 Thread Jean-Francois Moine
On Sat Apr 5 02:45:01 PDT 2014, Daniel Vetter wrote: > This is C standard hair-splitting, but afaict > - sum will be promoted to signed int in computation since > uint8_t fits > - signed overflow is undefined. [snip] > drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- > 1 file changed, 1 inser

[PATCH 1/4] drm/radeon/dp: handle zero sized i2c over aux transactions

2014-04-05 Thread Daniel Vetter
On Sat, Apr 05, 2014 at 11:25:01AM +0200, Christian K?nig wrote: > Am 04.04.2014 21:58, schrieb Alex Deucher: > >Needed for proper i2c over aux handling for certain > >monitors and configurations (e.g., dp bridges or > >adapters). > > > >Signed-off-by: Alex Deucher > > My planning was that yester

[PATCH] drm/ast: Remove unecessary NULL check in gem_free

2014-04-05 Thread Daniel Vetter
The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Spotted by coverity. v2: Fix patch subject. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/ast/ast_main.c | 2 -- 1 file changed, 2 deletio

[PATCH] acpi: allow non-optimus setups to load vbios from acpi

2014-04-05 Thread Ilia Mirkin
On Sat, Apr 5, 2014 at 7:53 AM, Claas Lorenz wrote: > Hi, same for me. The screen does not freeze anymore and the boot Great! And that's without the nouveau.config=NvBios= stuff that you added as a workaround, right? > succeeds. But now I have this kernel message during boot (for the second > ca

[PATCH] drm/i2c/tda998x: Fix signed overflow issue

2014-04-05 Thread Daniel Vetter
This is C standard hair-splitting, but afaict - sum will be promoted to signed int in computation since uint8_t fits - signed overflow is undefined. No we need to add up an awful lot of bytes to actually make it overflow. But I guess the real risk is gcc spotting this and going bananas. Fix this

[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Tomasz Figa
[adding more people and MLs on Cc for further discussion] On 04.04.2014 17:44, Inki Dae wrote: > 2014-04-04 22:55 GMT+09:00 Tomasz Figa : >> Hi Inki, >> >> >> On 01.04.2014 14:37, Inki Dae wrote: >>> >>> This patch adds super device support to bind sub drivers >>> using device tree. >>> >>> For th

[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Russell King - ARM Linux
On Sat, Apr 05, 2014 at 07:32:50PM +0200, Tomasz Figa wrote: > Not exactly. The approach we found does mostly the same as componentized > subsystem framework but without _any_ extra data in Device Tree. Just > based on the list of subsystem sub-drivers that is already available to > the maste

[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Tomasz Figa
On 05.04.2014 20:24, Russell King - ARM Linux wrote: > On Sat, Apr 05, 2014 at 07:32:50PM +0200, Tomasz Figa wrote: >> Not exactly. The approach we found does mostly the same as componentized >> subsystem framework but without _any_ extra data in Device Tree. Just >> based on the list of subsyste

[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Russell King - ARM Linux
On Sat, Apr 05, 2014 at 08:31:15PM +0200, Tomasz Figa wrote: > Maybe my words have been misinterpreted, but all I'm suggesting here is > that there is no need to add any new data to DT to solve the same issue > to the same extent as componentized subsystem framework, at least in > Exynos case

[PATCH v2 1/7] drm/exynos: add super device support

2014-04-05 Thread Tomasz Figa
On 05.04.2014 20:52, Russell King - ARM Linux wrote: > On Sat, Apr 05, 2014 at 08:31:15PM +0200, Tomasz Figa wrote: >> Maybe my words have been misinterpreted, but all I'm suggesting here is >> that there is no need to add any new data to DT to solve the same issue >> to the same extent as componen

[Bug 77002] problems with kernel 3.14

2014-04-05 Thread bugzilla-dae...@freedesktop.org
attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140405/b108b333/attachment.html>

[PATCH] drm/omap: fix plane rotation

2014-04-05 Thread Rob Clark
On Sat, Apr 5, 2014 at 2:33 PM, Grazvydas Ignotas wrote: > Plane rotation with omapdrm is currently broken. > It seems omap_plane_mode_set() expects width and height in screen > coordinates, so pass it like that. > > Cc: Rob Clark > Signed-off-by: Grazvydas Ignotas > --- > drivers/gpu/drm/omapd

[Bug 75234] UVD initialization fails while dGPU is powered on by DRI_PRIME

2014-04-05 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20140405/a38c849e/attachment.html>

[Bug 77009] 24P playback video signal loss with latest DRI patches

2014-04-05 Thread bugzilla-dae...@freedesktop.org
e assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140405/a264766e/attachment.html>

[Bug 77009] 24P playback video signal loss with latest DRI patches

2014-04-05 Thread bugzilla-dae...@freedesktop.org
cause: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140405/ba485cd1/attachment.html>

[PATCH] acpi: allow non-optimus setups to load vbios from acpi

2014-04-05 Thread Claas Lorenz
Hi, same for me. The screen does not freeze anymore and the boot succeeds. But now I have this kernel message during boot (for the second card): [ 24.382045] pci_pm_runtime_suspend(): nouveau_pmops_runtime_suspend+0x0/0xe0 [nouveau] returns -22 Do you want to have the complete dmesg log? I thin

[PATCH] drm/omap: fix plane rotation

2014-04-05 Thread Grazvydas Ignotas
Plane rotation with omapdrm is currently broken. It seems omap_plane_mode_set() expects width and height in screen coordinates, so pass it like that. Cc: Rob Clark Signed-off-by: Grazvydas Ignotas --- drivers/gpu/drm/omapdrm/omap_plane.c |8 1 file changed, 8 insertions(+) diff --