Re: [PATCH 1/7] drm/rockchip/dsi: correct Feedback divider setting

2017-09-22 Thread Matthias Kaehlcke
Hi Nickey, El Mon, Sep 18, 2017 at 05:05:33PM +0800 Nickey Yang ha dit: > This patch correct Feedback divider setting: > 1、Set Feedback divider [8:5] when HIGH_PROGRAM_EN > 2、Due to the use of a "by 2 pre-scaler," the range of the > feedback multiplication Feedback divider is limited to even >

[bug report] drm/pl111: Replace custom connector with panel bridge

2017-09-22 Thread Dan Carpenter
Hello Linus Walleij, This is a semi-automatic email about new static checker warnings. The patch 001485d5255c: "drm/pl111: Replace custom connector with panel bridge" from Sep 8, 2017, leads to the following Smatch complaint: drivers/gpu/drm/pl111/pl111_drv.c:130 pl111_modeset_init()

[PATCH hwc] drm_hwcomposer: move library to /vendor

2017-09-22 Thread Rob Herring
As part of Treble project in Android O, all the device specific files have to be located in a separate vendor partition. This is done by setting LOCAL_PROPRIETARY_MODULE (the name is misleading). This change will not break existing platforms without a vendor partition as it will just move files to

Re: [Outreachy kernel] [PATCH] drm/tinydrm: Move backlight helpers to a separate file

2017-09-22 Thread Greg KH
On Fri, Sep 22, 2017 at 04:27:28PM +0530, Meghana Madhyastha wrote: > Move backlight helpers from tinydrm-helpers.c to > tinydrm-backlight.c That says _what_ you did, but not _why_ you are doing it, which really is the more important part. thanks, greg k-h

Re: [PATCH][drm-next] drm/i915/gvt: ensure -ve return value is handled correctly

2017-09-22 Thread Joonas Lahtinen
On Thu, 2017-09-21 at 16:17 +, Wang, Zhi A wrote: > Hi Joonas: > > Thanks for the introduction. I have been thinking about the > possibility of introducing GEM_BUG_ON into GVT-g recently and > investigating on it. I'm just a bit confused about the usage between > GEM_BUG_ON and WARN_ON.

Re: drm_hwcomposer moving to fd.o

2017-09-22 Thread Jani Nikula
On Fri, 22 Sep 2017, Robert Foss wrote: > After talking to Liviu Dudau at LPC and Sean Paul & Kaveh Nasri at XDC > it seems that we all could benefit from community maintainership of > drm_hwcomposer. Sounds good! > Regarding contributions, they are accepted on the

[GIT PULL] etnaviv-fixes for 4.14

2017-09-22 Thread Lucas Stach
Hi Dave, just two small etnaviv fixes, one fixing a list corruption, the other fixing a NULL ptr deref in an error path. Regards, Lucas The following changes since commit 569dbb88e80deb68974ef6fdd6a13edb9d686261: Linux 4.13 (2017-09-03 13:56:17 -0700) are available in the git repository at:

[PATCH] drm/tinydrm: Move backlight helpers to a separate file

2017-09-22 Thread Meghana Madhyastha
Move backlight helpers from tinydrm-helpers.c to tinydrm-backlight.c Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/Makefile| 2 +- drivers/gpu/drm/tinydrm/core/tinydrm-backlight.c | 103 +++

[Bug 44995] Missing support for MGA G200eW WPCM450 [102b:0532]

2017-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44995 --- Comment #7 from weizoujian --- This card is "video memory" = 0,framebuffer can't used! Why! -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH 01/10] drm/panel: Keep track of enabled/prepared

2017-09-22 Thread Andrzej Hajda
On 21.09.2017 19:06, Sean Paul wrote: > This patch adds state tracking to the drm_panel functions which keep > track of enabled and prepared. If the calls are unbalanced, a WARNING is > issued. > > The motivation for this change is that a number of panel drivers > (including panel-simple) all do

Re: [PATCH 01/10] drm/panel: Keep track of enabled/prepared

2017-09-22 Thread Andrzej Hajda
On 22.09.2017 09:13, Andrzej Hajda wrote: > On 21.09.2017 19:06, Sean Paul wrote: >> This patch adds state tracking to the drm_panel functions which keep >> track of enabled and prepared. If the calls are unbalanced, a WARNING is >> issued. >> >> The motivation for this change is that a number of

[PATCH 1/2] drm: introduce drm_dev_{get/put} functions

2017-09-22 Thread Aishwarya Pant
Reference counting functions in the kernel typically use get/put suffixes. For maintaining coding style consistency, introduce drm_dev_{get/put} functions and let the old APIs (with ref/unref suffixes) remain for compatibility. Signed-off-by: Aishwarya Pant ---

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-22 Thread Jonathan Cameron
On Thu, 21 Sep 2017 16:15:28 +0200 Wolfram Sang wrote: > > > > +/** > > > > + * i2c_release_dma_safe_msg_buf - release DMA safe buffer and sync > > > > with i2c_msg > > > > + * @msg: the message to be synced with > > > > + * @buf: the buffer obtained from

Re: [PATCH 00/11] drm/sun4i: add CEC support

2017-09-22 Thread Maxime Ripard
On Thu, Sep 21, 2017 at 09:19:43PM +, Hans Verkuil wrote: > On 21/09/17 22:37, Maxime Ripard wrote: > > Hi Hans, > > > > On Fri, Sep 08, 2017 at 10:59:44AM +, Hans Verkuil wrote: > >> Hi Maxime, > >> > >> On 07/18/17 18:29, Maxime Ripard wrote: > >>> Hi, > >>> > >>> On Tue, Jul 11, 2017

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-22 Thread Jonathan Cameron
On Wed, 20 Sep 2017 20:59:52 +0200 Wolfram Sang wrote: > One helper checks if DMA is suitable and optionally creates a bounce > buffer, if not. The other function returns the bounce buffer and makes > sure the data is properly copied back to the message. > >

Re: [RFC PATCH v5 6/6] i2c: dev: mark RDWR buffers as DMA_SAFE

2017-09-22 Thread Jonathan Cameron
On Wed, 20 Sep 2017 20:59:56 +0200 Wolfram Sang wrote: > Signed-off-by: Wolfram Sang Makes sense as do the other drivers. Feel free to add Reviewed-by: Jonathan Cameron to all of them (though

[PATCH 2/2] drm/tilcdc: replace reference/unreference() with get/put

2017-09-22 Thread Aishwarya Pant
For maintaining consistency with kernel coding style replace reference/unreference in ref counting functions with get/put. The following cocci script was used to generate the tilcdc patch: @@ expression ex; @@ ( -drm_framebuffer_unreference(ex); +drm_framebuffer_put(ex); | -drm_dev_unref(ex);

Re: [Outreachy kernel] [RESEND PATCH] drm: Remove obsolete "This is gross" comment

2017-09-22 Thread Haneen Mohammed
On Thu, Sep 21, 2017 at 11:16:44PM +0200, Julia Lawall wrote: > > > On Thu, 21 Sep 2017, Haneen Mohammed wrote: > > > Remove obsolete comment which was initially added in 2008 to annotate > > that idr_find() was used before idr_remove() since idr_remove() didn't > > use to return feedback. The

[PATCH v2] drm: Remove obsolete "This is gross" comment

2017-09-22 Thread Haneen Mohammed
Remove obsolete comment which was initially added in 2008 to annotate that idr_find() was used before idr_remove() since idr_remove() didn't use to return feedback. The comment now is irrelevant with commit f6cd7daecff5 ("drm: Release driver references to handle before making it available again").

Re: [RFC PATCH v5 3/6] i2c: add docs to clarify DMA handling

2017-09-22 Thread Jonathan Cameron
On Wed, 20 Sep 2017 16:56:48 -0300 Mauro Carvalho Chehab wrote: > Em Wed, 20 Sep 2017 20:59:53 +0200 > Wolfram Sang escreveu: > > > Signed-off-by: Wolfram Sang > > Documentation looks OK on my

[PATCH 7/7] drm/rockchip: Cocci spatch "vma_pages"

2017-09-22 Thread Thomas Meyer
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer --- diff -u -p a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c ---

Re: [RFC PATCH v5 2/6] i2c: add helpers to ease DMA handling

2017-09-22 Thread Jonathan Cameron
On Thu, 21 Sep 2017 14:59:22 +0100 Jonathan Cameron wrote: > On Wed, 20 Sep 2017 20:59:52 +0200 > Wolfram Sang wrote: > > > One helper checks if DMA is suitable and optionally creates a bounce > > buffer, if not. The other function

[PATCH 0/2] drm/tilcdc: replace reference/unreference with get/put

2017-09-22 Thread Aishwarya Pant
This patchset introduces drm_dev_get() and drm_dev_put() functions that are intented to be replacements for drm_dev_{ref/unref}. Then all usages of ref/reference and unref/unreference suffixes are replaced by get/put reference count functions in tilcdc. The following cocci script was used to make

Re: [PATCH v4] drm/bridge/sii8620: add remote control support

2017-09-22 Thread Sean Young
On Mon, Sep 18, 2017 at 04:37:52PM +0200, Hans Verkuil wrote: > On 09/18/2017 04:15 PM, Maciej Purski wrote: > > Hi Hans, > > some time ago in reply to your email I described what messages does > > the MHL driver receive and at what time intervals. > > Regarding that information, do you think that

[PATCH 1/4] drm/amd/powerplay: Cocci spatch "alloc_cast"

2017-09-22 Thread Thomas Meyer
Remove casting the values returned by memory allocation functions like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." Found by coccinelle spatch "api/alloc/alloc_cast.cocci" Signed-off-by: Thomas Meyer --- diff -u -p

[RESEND PATCH] drm: Remove obsolete "This is gross" comment

2017-09-22 Thread Haneen Mohammed
Remove obsolete comment which was initially added in 2008 to annotate that idr_find() was used before idr_remove() since idr_remove() didn't use to return feedback. The comment now is irrelevant with commit f6cd7daecff5 ("drm: Release driver references to handle before making it available again").

Re: [PATCH 2/2] drm/i915/psr: Set frames before SU entry for psr2

2017-09-22 Thread Rodrigo Vivi
On Fri, Sep 22, 2017 at 03:58:36PM +, vathsala nagaraju wrote: > Set frames before SU entry value for max resync frame count of > dpcd register 2009, bit field 0:3. > > v2 : > - add macro EDP_PSR2_FRAME_BEFORE_SU (Rodrigo) > - remove EDP_FRAMES_BEFORE_SU_ENTRY (Rodrigo) > - add check ==1

[PATCH 2/2] drm/i915/psr: Set frames before SU entry for psr2

2017-09-22 Thread vathsala nagaraju
Set frames before SU entry value for max resync frame count of dpcd register 2009, bit field 0:3. v2 : - add macro EDP_PSR2_FRAME_BEFORE_SU (Rodrigo) - remove EDP_FRAMES_BEFORE_SU_ENTRY (Rodrigo) - add check ==1 for dpcd_read call (ville) v3 : (Rodrigo) - move macro EDP_PSR2_FRAME_BEFORE_SU

[PATCH 1/2] drm/dp: Add defines for latency in sink

2017-09-22 Thread vathsala nagaraju
Add defines for dpcd register 2009 (synchronization latency in sink). Cc: Rodrigo Vivi CC: Puthikorn Voravootivat Reviewed-by: Rodrigo Vivi Signed-off-by: Vathsala Nagaraju ---

[Bug 99191] Weird blocky green stuff rendered in High Fidelity

2017-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99191 Christoph Haag changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: [PATCH 1/9] drm/ttm: remove unsued options from ttm_mem_global_alloc_page

2017-09-22 Thread Felix Kuehling
Nice patch series. I wasn't expecting that so quickly. Patches 4-7 change the ttm_page_alloc allocator, which isn't used by amdgpu (as far as I can tell). Did you test those changes with a different driver? I didn't review them in as much detail as the rest. Someone with a stake in them should

[PATCH 1/9] drm/ttm: remove unsued options from ttm_mem_global_alloc_page

2017-09-22 Thread Christian König
From: Christian König Nobody is actually using that, remove it. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_memory.c | 6 ++ drivers/gpu/drm/ttm/ttm_page_alloc.c | 3 +--

[PATCH 8/9] drm/amdgpu: minor coding style fix

2017-09-22 Thread Christian König
From: Christian König Fix two minor 80 char issues. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

[PATCH 5/9] drm/ttm: DMA map/unmap compound pages as a whole

2017-09-22 Thread Christian König
From: Christian König Instead of mapping them bit by bit map/unmap the whole compound pages as in one call. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 31 +++ 1 file changed, 23

[PATCH 7/9] drm/ttm: move more logic into ttm_page_pool_get_pages

2017-09-22 Thread Christian König
From: Christian König Make it easier to add huge page pool. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 98 +++- 1 file changed, 52 insertions(+), 46 deletions(-) diff --git

[PATCH 3/9] drm/ttm: add transparent huge page support for DMA allocations v2

2017-09-22 Thread Christian König
From: Christian König Try to allocate huge pages when it makes sense. v2: fix comment and use ifdef Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 217 --- 1 file changed, 169

[PATCH 2/9] drm/ttm: add support for different pool sizes

2017-09-22 Thread Christian König
From: Christian König Correctly handle different page sizes in the memory accounting. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_memory.c | 10 +- drivers/gpu/drm/ttm/ttm_page_alloc.c | 5 +++--

[PATCH 6/9] drm/ttm: add transparent huge page support for cached allocations

2017-09-22 Thread Christian König
From: Christian König Try to allocate huge pages when it makes sense. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 49 ++-- 1 file changed, 41 insertions(+), 8 deletions(-) diff

[PATCH 9/9] drm/amdgpu: add VM support for huge pages

2017-09-22 Thread Christian König
From: Christian König Convert GTT mappings into linear ones for huge page handling. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-)

[PATCH 4/9] drm/ttm: allocate/free multiple pages in a single call

2017-09-22 Thread Christian König
From: Christian König Totally surprisingly this is more efficient than doing it page by page. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 29 ++--- 1 file changed, 14 insertions(+), 15

Re: [Outreachy kernel] [RESEND PATCH] drm: Remove obsolete "This is gross" comment

2017-09-22 Thread Julia Lawall
On Thu, 21 Sep 2017, Haneen Mohammed wrote: > On Thu, Sep 21, 2017 at 11:16:44PM +0200, Julia Lawall wrote: > > > > > > On Thu, 21 Sep 2017, Haneen Mohammed wrote: > > > > > Remove obsolete comment which was initially added in 2008 to annotate > > > that idr_find() was used before idr_remove()

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-22 Thread Gerd Hoffmann
On Fri, 2017-09-22 at 02:03 -0300, Gabriel Krisman Bertazi wrote: > Gerd Hoffmann writes: > > >   Hi, > > > > > > "removing the device"?  qxl can't be hotplugged ... > > > > Or do you mean "rmmod qxl"? > > > > > > rmmod qxl > > > > rmmod: ERROR: Module qxl is in use. > > >

[PATCH] drm/amdgpu: Replace ref/unref with get/put

2017-09-22 Thread Meghana Madhyastha
Replace functions with reference/unreference suffix with get/put suffix. Get/put is shorter and more consistent with the kernel function suffixes. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c| 4 ++--

[Bug 99553] Tracker bug for runnning OpenCL applications on Clover

2017-09-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99553 --- Comment #17 from darkbasic --- Hi, any news on the OpenCL image support? I really miss darktable support. -- You are receiving this mail because: You are the assignee for the

Re: [PATCH v2 1/6] gpu: host1x: Enable Tegra186 syncpoint protection

2017-09-22 Thread Mikko Perttunen
On 09/05/2017 04:33 PM, Dmitry Osipenko wrote: On 05.09.2017 11:10, Mikko Perttunen wrote: ... >> diff --git a/drivers/gpu/host1x/hw/channel_hw.c b/drivers/gpu/host1x/hw/channel_hw.c index 8447a56c41ca..0161da331702 100644 --- a/drivers/gpu/host1x/hw/channel_hw.c +++

Re: drm_hwcomposer moving to fd.o

2017-09-22 Thread Robert Foss
Hey Jani, On Fri, 2017-09-22 at 14:21 +0300, Jani Nikula wrote: > On Fri, 22 Sep 2017, Robert Foss wrote: > > After talking to Liviu Dudau at LPC and Sean Paul & Kaveh Nasri at > > XDC > > it seems that we all could benefit from community maintainership of > >

[PATCH v2] drm/tinydrm: Move backlight helpers to a separate file

2017-09-22 Thread Meghana Madhyastha
Move backlight helpers from tinydrm-helpers.c to tinydrm-backlight.c. This is because it is organizationally simpler to understand and advantageous to group functions performing a similar function to a separate file as opposed to having one helper file with heteregenous helper functions.

Re: drm_hwcomposer moving to fd.o

2017-09-22 Thread Robert Foss
Hey Chih-Wei, On Fri, 2017-09-22 at 10:40 +0800, Chih-Wei Huang wrote: > Great news! > Thanks a lot to make it happen. > > I hope I am wrong. > From my understanding most x86 GPUs still > cannot work with drm_hwcomposer since > they lack of atomic mode-setting API support > required by

[PATCH v3] drm/gem-fb-helper: Improve documentation

2017-09-22 Thread Noralf Trønnes
Make the docs read a little better. Cc: Laurent Pinchart Cc: Daniel Vetter Signed-off-by: Noralf Trønnes --- Changes since version 2: - Capitalized start of sentences/descriptions - Made sure all functions have

[PATCH 2/2] drm/i915/psr: Set frames before SU entry for psr2

2017-09-22 Thread vathsala nagaraju
Set frames before SU entry value for max resync frame count of dpcd register 2009, bit field 0:3. v2 : - add macro EDP_PSR2_FRAME_BEFORE_SU (Rodrigo) - remove EDP_FRAMES_BEFORE_SU_ENTRY (Rodrigo) - add check ==1 for dpcd_read call (ville) Cc: Rodrigo Vivi CC:

Re: [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder

2017-09-22 Thread Sean Paul
On Thu, Sep 21, 2017 at 05:02:21PM -0700, Zach Reizner wrote: > On Thu, Sep 21, 2017 at 4:53 PM, Adrian Salido wrote: > > Precomp layers may be added to the back at different points which may > > cause elements to be unsorted. Make sure that these are sorted after > >

[PATCH][drm-next] drm/tve200: make two functions static

2017-09-22 Thread Colin King
From: Colin Ian King The functions tve200_display_disable and tve200_display_funcs are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'tve200_display_disable' was not declared. Should it be static?

Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file

2017-09-22 Thread Zach Reizner
On Thu, Sep 21, 2017 at 5:37 PM, Robert Foss wrote: > Some basic guidelines for contributions could come in handy. > > These are copied from IGT and modified to be suitable. > > Signed-off-by: Robert Foss Reviewed-by: Zach Reizner

Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file

2017-09-22 Thread Sean Paul
On Fri, Sep 22, 2017 at 02:37:18AM +0200, Robert Foss wrote: > Some basic guidelines for contributions could come in handy. > > These are copied from IGT and modified to be suitable. > > Signed-off-by: Robert Foss > --- > CONTRIBUTING | 31

RE: [PATCH][drm-next] drm/i915/gvt: ensure -ve return value is handled correctly

2017-09-22 Thread Wang, Zhi A
Thanks for the reply. Learned a lot. :) GEM_BUG_ON is new to me since it wasn't there at the beginning of GVT-g upstream. It showed up later. So I left a lot of WARN_ON in the code and some of them should be GEM_BUG_ON now. Now I can figure out those differences. We can discuss with our QA to

Re: [PATCH v3] drm/gem-fb-helper: Improve documentation

2017-09-22 Thread Eric Anholt
Noralf Trønnes writes: > Make the docs read a little better. This all looks nice to me. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ dri-devel mailing list

Re: [PATCH hwc v1] drm_hwcomposer: Add CONTRIBUTING file

2017-09-22 Thread Robert Foss
Pushed! On Fri, 2017-09-22 at 09:23 -0700, Sean Paul wrote: > On Fri, Sep 22, 2017 at 02:37:18AM +0200, Robert Foss wrote: > > Some basic guidelines for contributions could come in handy. > > > > These are copied from IGT and modified to be suitable. > > > > Signed-off-by: Robert Foss

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-22 Thread Gabriel Krisman Bertazi
Gerd Hoffmann writes: >> I can simply disable X, lightdm or whatever is using it and then >> rmmod. > > Works for me only with CONFIG_FBCON=n, otherwise the fbcon framebuffer > keeps qxl busy. So is most cases (typical distro kernel build with > FBCON=y) you simply can't

Re: [PATCH 01/10] drm/panel: Keep track of enabled/prepared

2017-09-22 Thread Eric Anholt
Andrzej Hajda writes: > On 21.09.2017 19:06, Sean Paul wrote: >> This patch adds state tracking to the drm_panel functions which keep >> track of enabled and prepared. If the calls are unbalanced, a WARNING is >> issued. >> >> The motivation for this change is that a number