[PATCH 0/4] some optimization for evergreen cs

2015-08-23 Thread Grazvydas Ignotas
These patches try to reduce CPU usage of register command checker without affecting functionality. For me this gives 3-4% perf improvement in glxgears and ~1% CPU usage reduction in "The Talos Principle" CS thread. Grazvydas Ignotas (4): drm/radeon: simplify register checker drm/radeon: split

[PATCH 1/4] drm/radeon: simplify register checker

2015-08-23 Thread Grazvydas Ignotas
To avoid having to distinguish between CAYMAN or older on every register check, place a pointer in evergreen_cs_track and use it unconditionally. Also make use of the fact that both reg_safe_bm[] arrays are of the same length to remove another CAYMAN check. Signed-off-by: Grazvydas Ignotas --- d

[PATCH 3/4] drm/radeon: refactor register check loop

2015-08-23 Thread Grazvydas Ignotas
After this patch the register check loop does the same thing as before, except that now gcc does better job optimizing it: it now sees that end_reg was already checked against PACKET3_SET_CONTEXT_REG_END and can optimize REG_SAFE_BM_SIZE comparison out of evergreen_is_safe_reg() as (PACKET3_SET_CON

[PATCH 4/4] drm/radeon: remove volatile qualifier

2015-08-23 Thread Grazvydas Ignotas
There doesn't seem to be any need to have 'ib' volatile, the code is not even consistent with it and some places already miss it. As it is now it's just making gcc produce worse code. If there are special requirements for that memory, then proper primitives like memory barriers or accessor function

[PATCH 2/4] drm/radeon: split evergreen_cs_check_reg

2015-08-23 Thread Grazvydas Ignotas
evergreen_cs_check_reg() is a large function and gcc doesn't want to inline it. It has a quick check for reg_safe_bm[] to see if register needs special handling, which often results in early exit. However because the function is large, it has a long prologue/epilogue to save/restore all the callee-

[Action requested] GSoC 2015: Thanks for your participation!

2015-08-23 Thread John Hunter
871, PRC -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/229e5f09/attachment.html>

[Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass.

2015-08-23 Thread bugzilla-dae...@freedesktop.org
: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/2e91a119/attachment.html>

[Bug 91727] alloca means including on SunOS

2015-08-23 Thread bugzilla-dae...@freedesktop.org
e >+#endif > #include "xf86drm.h" > #include "amdgpu_drm.h" > #include "amdgpu_internal.h" -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lis

[Bug 91726] R600 asserts in tgsi_cmp/make_src_for_op3

2015-08-23 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/eddfbcb0/attachment.html>

[Bug 91729] Graphic Distortions on Knights of the Old Republic with wine

2015-08-23 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/5bf53d66/attachment.html>

[Bug 91729] Graphic Distortions on Knights of the Old Republic with wine

2015-08-23 Thread bugzilla-dae...@freedesktop.org
|| -- 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/20150823/2090c1af/attachment.html>

[Bug 91731] ATI RV250/M9 : screen needs to be refreshed after suspend/resume

2015-08-23 Thread bugzilla-dae...@freedesktop.org
-- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/5ed3e3aa/attachment.html>

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
e, so if you have any ideas, please let me know. -- 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/20150823/02058882/attachment.html>

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
-- 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/20150823/dd2eb224/attachment-0001.html>

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
used it before this issue arose. -- 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/20150823/36e32df3/attachment.html>

[Bug 91723] Issues rendering water in Dota 2 Reborn

2015-08-23 Thread bugzilla-dae...@freedesktop.org
HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/fde430de/attachment.html>

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
<http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/248d8d22/attachment.html>

[PATCH 4/7] lib: Add gem_userptr helpers

2015-08-23 Thread Chris Wilson
On Wed, Aug 12, 2015 at 08:29:17PM -0300, Tiago Vignatti wrote: > This patch moves userptr definitions and helpers implementation that were > locally in gem_userptr_benchmark and gem_userptr_blits to the library, so > other > tests can make use of them as well. There's no functional changes. We h

[PATCH 3/4] drm/i915: Implement end_cpu_access

2015-08-23 Thread Chris Wilson
On Wed, Aug 12, 2015 at 08:29:12PM -0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > --- > drivers/gpu/drm/i915/i915_gem_dmabuf.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c > b/drivers/gpu/drm/i915/i915_gem_dmabuf.c >

[PATCH 5/7] prime_mmap: Test for userptr mmap

2015-08-23 Thread Chris Wilson
On Wed, Aug 12, 2015 at 08:29:18PM -0300, Tiago Vignatti wrote: > A userptr doesn't have the obj->base.filp, but can be exported via dma-buf, so > make sure it fails when mmaping. > > Signed-off-by: Tiago Vignatti > --- > In machine, export the handle to fd is actually returning error and falling

[PATCH 4/4] drm/i915: Use CPU mapping for userspace dma-buf mmap()

2015-08-23 Thread Chris Wilson
On Wed, Aug 12, 2015 at 08:29:13PM -0300, Tiago Vignatti wrote: > Userspace is the one in charge of flush CPU by wrapping mmap with > begin{,end}_cpu_access. > > v2: Remove LLC check cause we have dma-buf sync providers now. Also, fix > return > before transferring ownership when mmap fails. > v3

[Bug 83436] Sudden framerate drops in multiple games when compiling with -mtune=generic (as well with -mtune=pentium-mmx and older CPUs)

2015-08-23 Thread bugzilla-dae...@freedesktop.org
use: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/f01cd468/attachment-0001.html>

[Bug 83436] Sudden framerate drops in multiple games when compiling with -mtune=generic (as well with -mtune=pentium-mmx and older CPUs)

2015-08-23 Thread bugzilla-dae...@freedesktop.org
|--- |NOTOURBUG -- 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/20150823/a33b6b20/attachment.html>

[Bug 73528] Deferred lighting in Second Life causes system hiccups and screen flickering

2015-08-23 Thread bugzilla-dae...@freedesktop.org
o go back to the old situation. If his is the best solution, I'm certainly happy with that! -- 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/dr

[Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass.

2015-08-23 Thread bugzilla-dae...@freedesktop.org
s scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150823/21361393/attachment.html>

[Action requested] GSoC 2015: Thanks for your participation!

2015-08-23 Thread Zoltán Gilián
Hi Martin, The summary of my project: http://zogi-gsoc2015.blogspot.hu/2015/08/summary.html Cheers, Zoltan On Sun, Aug 23, 2015 at 3:04 AM, John Hunter wrote: > Hi Martin, > Here is my blog post of my current situation http://zhjwpku.blogspot.com/ > > Cheers, > Zhao > > On Sat, Aug 22, 2015 at

[Action requested] GSoC 2015: Thanks for your participation!

2015-08-23 Thread Zoltán Gilián
[+Tom's other mail address] On Sun, Aug 23, 2015 at 3:05 PM, Zoltán Gilián wrote: > Hi Martin, > > The summary of my project: > http://zogi-gsoc2015.blogspot.hu/2015/08/summary.html > > Cheers, > Zoltan > > On Sun, Aug 23, 2015 at 3:04 AM, John Hunter wrote: >> Hi Martin, >> Here is my blog

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
. -- 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/20150823/4a01cdcd/attachment.html>

[Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2

2015-08-23 Thread bugzilla-dae...@freedesktop.org
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/20150823/c896fcd9/attachment-0001.html>

[Bug 87856] Driver load fails with no error on ppc64 host

2015-08-23 Thread bugzilla-dae...@freedesktop.org
with this bug. -- 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/20150823/93fd830c/attachment.html>

[PATCH 00/11] fix error return code

2015-08-23 Thread Julia Lawall
The complate semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @ok exists@ identifier f,ret,i; expression e; constant c; @@ // identify a function that returns a negative return value at least once. f(...) { ... when any ( return -c at i; | ret = -c at i; ...

[PATCH 07/11] drm: fix error return code

2015-08-23 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *

[PATCH 08/11] drm/exynos: mic: fix error return code

2015-08-23 Thread Julia Lawall
Propagate error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *if(...)

about mmap dma-buf and sync

2015-08-23 Thread Jerome Glisse
On Sat, Aug 22, 2015 at 12:00:21AM +0200, Thomas Hellstrom wrote: > On 08/21/2015 06:00 PM, Jerome Glisse wrote: > > On Fri, Aug 21, 2015 at 04:15:53PM +0200, Thomas Hellstrom wrote: > >> On 08/21/2015 03:32 PM, Jerome Glisse wrote: > >>> On Fri, Aug 21, 2015 at 07:25:07AM +0200, Thomas Hellstrom w

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-23 Thread Rob Herring
On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: > Analogix dp driver is split from exynos dp driver, so we just > make an copy of exynos_dp.txt, and then simplify exynos_dp.txt > > Beside update some exynos dtsi file with the latest change > according to the devicetree binding documents. You c

drm/msm/dsi: hs_zero timing

2015-08-23 Thread Werner Johansson
On Sat, Aug 22, 2015 at 6:25 AM, Rob Clark wrote: > > fwiw, if the values are related to the physical cabling/wiring, rather > than the panel timing, we should probably get them from DT.. > > if a combination of the timing and the wiring, that gets a bit more > complicated > > (I am not actually

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-23 Thread Yakir Yang
Hi Krzysztof, 在 08/23/2015 07:43 PM, Krzysztof Kozlowski 写道: > 2015-08-24 8:23 GMT+09:00 Rob Herring : >> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >>> Analogix dp driver is split from exynos dp driver, so we just >>> make an copy of exynos_dp.txt, and then simplify exynos_dp.txt >

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-23 Thread Yakir Yang
Hi Rob, 在 08/23/2015 06:23 PM, Rob Herring 写道: > On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >> Analogix dp driver is split from exynos dp driver, so we just >> make an copy of exynos_dp.txt, and then simplify exynos_dp.txt >> >> Beside update some exynos dtsi file with the latest ch