[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #14 from Michel Dänzer --- (In reply to Thomas Hellström from comment #12) > It would also be good to try to rule out server side radeon dri3 problems. > Perhaps by running it on nouveau or intel... Or simply the modesetting Xorg dr

[PATCH v4] drm/i915: Deal with upside-down mounted LCD panels

2017-08-25 Thread Hans de Goede
On some (Bay Trail) devices the LCD panel is mounted upside-down. This commit uses the code to read back the initial rotation of the primary plane in get_initial_plane_config from Ville Syrjala's "drm/fb-helper: Inherit rotation wip" patch and when re-using the initial fb it stores that in intel_c

Re: [PATCH 13/15] scsi: make device_type const

2017-08-25 Thread Martin K. Petersen
Bhumika, > Make these const as they are only stored in the type field of a device > structure, which is const. Applied to 4.14/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering ___ dri-devel mailing list dri-devel@lists.freedesk

[PATCH v4 0/1] drm/i915: Deal with upside-down mounted LCD panels

2017-08-25 Thread Hans de Goede
Hi All, When I last send this patch not everyone was enthusiastic about this patch. As already mentioned in the v2 discussion, solving this in userspace is not really feasible since there is no single place to fix it there, it will need fixing in at least 6 different places from the top of my head

Re: [PATCH] i915,drm/fourcc: Improve the CCS modifier documentation

2017-08-25 Thread Jason Ekstrand
On Fri, Aug 25, 2017 at 8:10 AM, Ville Syrjälä < ville.syrj...@linux.intel.com> wrote: > On Fri, Aug 18, 2017 at 11:34:40AM -0700, Jason Ekstrand wrote: > > This updates the documentation on the intel CCS modifiers for a couple > > of reasons: > > > > 1) The old documentation required that the CC

Re: [PATCH] drm/tve200: Pass NULL format_modifier to drm_simple_display_pipe_init

2017-08-25 Thread Daniel Stone
Sorry for the mobile email client, but: Reviewed-by: Daniel Stone > On 25 Aug 2017, at 9:16 pm, Rodrigo Vivi wrote: > > This Fixes build on branches where we already have format-modifier. > > Reference: > https://lists.freedesktop.org/archives/dri-devel/2017-August/151044.html > Fixes: e6fc3b

[PATCH] drm/tve200: Pass NULL format_modifier to drm_simple_display_pipe_init

2017-08-25 Thread Rodrigo Vivi
This Fixes build on branches where we already have format-modifier. Reference: https://lists.freedesktop.org/archives/dri-devel/2017-August/151044.html Fixes: e6fc3b68558e ("drm: Plumb modifiers through plane init") Cc: Linus Walleij Cc: Janet Morgan Cc: Ben Widawsky Cc: Daniel Stone (v2) Cc:

[Bug 196337] [amdgpu][carrizo] Re-enable GFX PG breaks Carrizo

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196337 --- Comment #4 from Johannes Hirte (johannes.hi...@datenkhaos.de) --- I've added pg_mask=0xFFFE as suggested by Tom St Denis at https://lists.freedesktop.org/archives/amd-gfx/2017-August/012329.html This works for me, so I don't need to modif

[Bug 102414] Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102414 --- Comment #4 from Harry Wentland --- Created attachment 133786 --> https://bugs.freedesktop.org/attachment.cgi?id=133786&action=edit Patch for suspend/resume issues Hopefully this helps with the suspend/resume issues. -- You are receiving

[Bug 102414] Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102414 --- Comment #3 from Vadim Girlin --- Created attachment 133785 --> https://bugs.freedesktop.org/attachment.cgi?id=133785&action=edit dmesg right after boot There is a lot of noise, so initial stuff is missing anyway. Please let me know if you

[Bug 102414] Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102414 --- Comment #2 from Vadim Girlin --- Created attachment 133784 --> https://bugs.freedesktop.org/attachment.cgi?id=133784&action=edit Xorg.0.log -- You are receiving this mail because: You are the assignee for the bug.

[Bug 102414] Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102414 --- Comment #1 from Vadim Girlin --- Created attachment 133783 --> https://bugs.freedesktop.org/attachment.cgi?id=133783&action=edit lspci -- You are receiving this mail because: You are the assignee for the bug._

[Bug 102414] Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102414 Bug ID: 102414 Summary: Hawaii gpu (R9 290) and the troubles with the amd-staging-drm-next branch Product: Mesa Version: unspecified Hardware: Other OS: Al

[PATCH 10/10] drm/syncobj: Add a signal ioctl (v2)

2017-08-25 Thread Jason Ekstrand
This IOCTL provides a mechanism for userspace to trigger a sync object directly. There are other ways that userspace can trigger a syncobj such as submitting a dummy batch somewhere or hanging on to a triggered sync_file and doing an import. This just provides an easy way to manually trigger the

[PATCH 09/10] drm/syncobj: Add a reset ioctl (v2)

2017-08-25 Thread Jason Ekstrand
This just resets the dma_fence to NULL so it looks like it's never been signaled. This will be useful once we add the new wait API for allowing wait on "submit and signal" behavior. v2: - Take an array of sync objects (Dave Airlie) Signed-off-by: Jason Ekstrand Reviewed-by: Christian König (v

[PATCH 07/10] drm/syncobj: Add a CREATE_SIGNALED flag

2017-08-25 Thread Jason Ekstrand
This requests that the driver create the sync object such that it already has a signaled dma_fence attached. Because we don't need anything in particular (just something signaled), we use a dummy null fence. This is useful for Vulkan which has a similar flag that can be passed to vkCreateFence.

[PATCH 05/10] drm/syncobj: Add a callback mechanism for replace_fence (v2)

2017-08-25 Thread Jason Ekstrand
It is useful in certain circumstances to know when the fence is replaced in a syncobj. Specifically, it may be useful to know when the fence goes from NULL to something valid. This does make syncobj_replace_fence a little more expensive because it has to take a lock but, in the common case where

[PATCH 04/10] drm/syncobj: add sync obj wait interface. (v8)

2017-08-25 Thread Jason Ekstrand
From: Dave Airlie This interface will allow sync object to be used to back Vulkan fences. This API is pretty much the vulkan fence waiting API, and I've ported the code from amdgpu. v2: accept relative timeout, pass remaining time back to userspace. v3: return to absolute timeouts. v4: absolute

[PATCH 06/10] drm/syncobj: Allow wait for submit and signal behavior (v5)

2017-08-25 Thread Jason Ekstrand
Vulkan VkFence semantics require that the application be able to perform a CPU wait on work which may not yet have been submitted. This is perfectly safe because the CPU wait has a timeout which will get triggered eventually if no work is ever submitted. This behavior is advantageous for multi-th

[PATCH 08/10] drm/syncobj: Add a syncobj_array_find helper

2017-08-25 Thread Jason Ekstrand
The wait ioctl has a bunch of code to read an syncobj handle array from userspace and turn it into an array of syncobj pointers. We're about to add two new IOCTLs which will need to work with arrays of syncobj handles so let's make some helpers. Signed-off-by: Jason Ekstrand --- drivers/gpu/drm

[PATCH 01/10] drm/syncobj: Rename fence_get to find_fence

2017-08-25 Thread Jason Ekstrand
The function has far more in common with drm_syncobj_find than with any in the get/put functions. Signed-off-by: Jason Ekstrand Acked-by: Christian König (v1) --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 10 +- include/drm/drm_syncobj.h

[PATCH 02/10] drm/syncobj: Add a race-free drm_syncobj_fence_get helper (v2)

2017-08-25 Thread Jason Ekstrand
The atomic exchange operation in drm_syncobj_replace_fence is sufficient for the case where it races with itself. However, if you have a race between a replace_fence and dma_fence_get(syncobj->fence), you may end up with the entire replace_fence happening between the point in time where the one th

[PATCH 03/10] i915: Use drm_syncobj_fence_get

2017-08-25 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 3d74f3a..4c20162 100644 --- a/drivers/gpu/drm/i915/i91

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #13 from har...@gmx.de --- Ok, that makes sense for me, thank you :) -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists.fre

[Bug 196771] [AMDGPU] Scrambled video output during boot on WQHD monitor

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196771 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

[PATCH] drm/i915: Mark wait_for_engine() as maybe_unused

2017-08-25 Thread Matthias Kaehlcke
The only call of wait_for_engine() is wrapped in a GEM_WARN_ON macro, which confusingly suppresses the call unless CONFIG_DRM_I915_DEBUG_GEM is set. According to http://www.spinics.net/lists/intel-gfx/msg128768.html the current behavior is correct, even though it's not obvious. Different solutions

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #12 from Thomas Hellström --- (In reply to haro41 from comment #11) > i applied your patch successful, still the freezes, maybe in average a bit > later now. > > The behavoir changed a bit: > > before patch: > > vblank_mode=2 (def

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #11 from har...@gmx.de --- i applied your patch successful, still the freezes, maybe in average a bit later now. The behavoir changed a bit: before patch: vblank_mode=2 (default)-> always freezes inside 0..2 minutes runtime,

[Bug 196773] New: System hangs with nouveau 'trapped write' error (GeForce 9600 GT, [10de:0622])

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196773 Bug ID: 196773 Summary: System hangs with nouveau 'trapped write' error (GeForce 9600 GT, [10de:0622]) Product: Drivers Version: 2.5 Kernel Version: 4.13.0-0.rc5.git2.1.fc27.x86_

Re: [PATCH] i915,drm/fourcc: Improve the CCS modifier documentation

2017-08-25 Thread Ville Syrjälä
On Fri, Aug 18, 2017 at 11:34:40AM -0700, Jason Ekstrand wrote: > This updates the documentation on the intel CCS modifiers for a couple > of reasons: > > 1) The old documentation required that the CCS modifier only be used > with formats. While i915 currently only supports CCS scanout

[Bug 101483] A10-8780P (Carrizo) + R7 M260/M265 does not boot without any "workaround" parameter.

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101483 --- Comment #5 from FFAB --- Created attachment 133777 --> https://bugs.freedesktop.org/attachment.cgi?id=133777&action=edit kernel parameter iommu=soft Upstream kernel test - kernel 4.13-rc6 Installation, on which upstream kernel was inst

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #10 from Thomas Hellström --- (In reply to haro41 from comment #8) > @Thomas, > > i got two rejects when trying to apply the patch. > > Let me sync to your base version first, to avoid additional diffs, > where/when did you branch

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 Thomas Hellström changed: What|Removed |Added Attachment #133771|0 |1 is obsolete|

[Bug 101483] A10-8780P (Carrizo) + R7 M260/M265 does not boot without any "workaround" parameter.

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101483 --- Comment #4 from FFAB --- Created attachment 133775 --> https://bugs.freedesktop.org/attachment.cgi?id=133775&action=edit no workaround parameter no workaround parameter -- You are receiving this mail because: You are the assignee for th

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #12 from Alex Deucher (alexdeuc...@gmail.com) --- I sent the patch to Greg last week. -- You are receiving this mail because: You are watching the assignee of the bug. ___ dri-devel mailing

[Bug 196771] [AMDGPU] Scrambled video output during boot on WQHD monitor

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196771 --- Comment #2 from Rokas Kupstys (rokups+kernel-b...@zoho.com) --- Created attachment 258107 --> https://bugzilla.kernel.org/attachment.cgi?id=258107&action=edit What it looks like (console text) -- You are receiving this mail because: You ar

[Bug 196771] [AMDGPU] Scrambled video output during boot on WQHD monitor

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196771 --- Comment #1 from Rokas Kupstys (rokups+kernel-b...@zoho.com) --- Created attachment 258105 --> https://bugzilla.kernel.org/attachment.cgi?id=258105&action=edit What it looks like Colors on 1440p are fine, they look weird due to me using phon

[Bug 196771] New: [AMDGPU] Scrambled video output during boot on WQHD monitor

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196771 Bug ID: 196771 Summary: [AMDGPU] Scrambled video output during boot on WQHD monitor Product: Drivers Version: 2.5 Kernel Version: 4.12 Hardware: x86-64

[RFC 1/1] drm/exynos/hdmi: add 257px offset timing hack

2017-08-25 Thread Tobias Jakobi
From: Daniel Drake As discussed in http://www.spinics.net/lists/linux-samsung-soc/msg24617.html the 1024x768 timings don't quite work out of the box, for unknown reasons. However, massaging of the values in the way implemented in this patch makes the system usable, although it is missing the top

[RFC 0/1] drm/exynos: hack to support more HDMI resolutions

2017-08-25 Thread Tobias Jakobi
Hello, I was asked by a user of my kernel tree to try to upstream this. The patch is originally by Daniel who figured out this peculiar behaviour of the HDMI block. Since this is clearly a hack, should it even be upstreamed? Some more questions/thoughts: - I know that it works for the HDMI bloc

[PATCH] staging: vboxvideo: Use fbdev helpers where possible

2017-08-25 Thread Hans de Goede
This results in a nice cleanup, and fixes link errors when fbdev support is disabled. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_fb.c | 150 +++- 1 file changed, 9 insertions(+), 141 deletions(-) diff --git a/drivers/staging/vboxvideo/vbox_fb

Re: [Intel-gfx] [PATCH 11/12] drm: Check that the plane supports the request format+modifier combo

2017-08-25 Thread Daniel Vetter
On Thu, Aug 24, 2017 at 10:10:59PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Currently we only check that the plane supports the pixel format of the > fb we're about to feed to it. Extend it to check also the modifier, and > more specifically that the combination of th

Re: [PATCH 10/12] drm: Fix modifiers_property kernel doc

2017-08-25 Thread Daniel Vetter
On Thu, Aug 24, 2017 at 10:10:58PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > The member is called 'modifiers_property' instead of 'modifiers'. Adjust > the kernel docs to match. > > Cc: dri-devel@lists.freedesktop.org > Cc: Ben Widawsky > Cc: Jason Ekstrand > Cc: Da

Re: [PATCH 02/15] drm: make device_type const

2017-08-25 Thread Daniel Vetter
On Sat, Aug 19, 2017 at 01:52:13PM +0530, Bhumika Goyal wrote: > Make these const as they are only stored in the type field of a device > structure, which is const. > Done using Coccinelle. I can't apply this, it's missing your s-o-b line. You can just replay with that. Thanks, Daniel > --- > d

Re: [PATCH v3 1/2] drm/gem: drm_gem_dumb_map_offset(): reject dma-buf

2017-08-25 Thread Daniel Vetter
On Thu, Aug 24, 2017 at 11:04:01AM +0100, Brian Starkey wrote: > Hi, > > Thanks for the CC. > > On Fri, Aug 18, 2017 at 06:13:14PM +0200, Noralf Tr??nnes wrote: > > (cc affected parties) > > > > > > Den 18.08.2017 09.46, skrev Daniel Vetter: > > > On Thu, Aug 17, 2017 at 06:21:30PM +0200, Noral

Re: [PATCH v2 0/9] drm/exynos: misc fixes and more

2017-08-25 Thread Tobias Jakobi
Inki Dae wrote: > Hi Tobias, > > Regarding below two patches, I'd like to have more review so I will consider > to merge them in next turn. Sorry for this. Thanks, calling out to potential reviewers then :-) - Tobias > drm/exynos: introduce BYTE_PITCH capability > drm/exynos: add BYTE_PITC

Re: Etnaviv crashes on glmark2

2017-08-25 Thread Fabio Estevam
On Wed, Aug 23, 2017 at 10:13 AM, Fabio Estevam wrote: > In order to reproduce the failure, just run 'glmark2-es2-drm' and wait > until it completes. The crash always happen after the last test runs. I have been running glmark2 tests with linux-next-20170824 overnight and do not observe the cras

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #8 from har...@gmx.de --- @Thomas, i got two rejects when trying to apply the patch. Let me sync to your base version first, to avoid additional diffs, where/when did you branch exactly? -- You are receiving this mail because: You

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #11 from Peter Spiess-Knafl (p...@autistici.org) --- Alex, when will this be released? -- You are receiving this mail because: You are watching the assignee of the bug. ___ dri-devel mailin

[maintainer-tools PATCH] dim: fix remote repository lookup function

2017-08-25 Thread Andrzej Hajda
dim finds remote name by matching repository urls, but different users requires different protocols/paths for remotes (ssh/git/https). Current code incorrectly translates provided url to alternatives, the patch fixes it. Signed-off-by: Andrzej Hajda --- dim | 26 -- 1 fil

Re: [PATCH v2 01/10] drm/exynos/decon5433: use readl_poll_timeout helpers

2017-08-25 Thread Tobias Jakobi
Tobias Jakobi wrote: > Hello Andrzej, > > > Andrzej Hajda wrote: >> Linux core provide helpers for polling with timeout, lets use them. >> >> Signed-off-by: Andrzej Hajda >> --- >> drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 20 >> 1 file changed, 8 insertions(+), 12 de

[Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102358 --- Comment #7 from Thomas Hellström --- Created attachment 133771 --> https://bugs.freedesktop.org/attachment.cgi?id=133771&action=edit Patch to see if there might be a race causing this @haro41: Could you test the attached dri3_mutex.diff a

Re: [PATCH v3 06/22] drm/arm/mali: Use drm_gem_fb_create()

2017-08-25 Thread Liviu Dudau
Hi Noralf, On Sun, Aug 13, 2017 at 03:31:49PM +0200, Noralf Trønnes wrote: > drm_fb_cma_create() is just a wrapper around drm_gem_fb_create() now, > so use the function directly. > > Cc: Liviu Dudau I was on holiday for 2+ weeks, so I have no idea if you still need this, but for hdlcd and mali

[Bug 101691] gfx corruption on windowed 3d-apps running on dGPU

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101691 --- Comment #36 from Ethan Hsieh --- Based on AMD's comment (The issue is gone without Compiz), I did some tests. Here is the test result: --- 1) Run glxgears without a desktop environment ---

Re: [PATCHv6 1/3] ARM:dt-bindings Intel FPGA Video and Image Processing Suite

2017-08-25 Thread Laurent Pinchart
Hello Hean Loon, On Friday, 25 August 2017 04:21:17 EEST Ong, Hean Loong wrote: > Hi Laurent, > > The encoder resides as a hardware logic as part of the FPGA fabric. The > software driver has no direct access to the encoder. The VIP is created > in such a way that the software i.e Linux Driver on

[PATCH V3 20/23] drm/etnaviv: add MC perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 65ec8bb6c5ab..b2ac40dab812 100644 --- a/drivers/

[PATCH V3 17/23] drm/etnaviv: add SE perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 041711adfc84..def0507ad7bf 100644 --- a/drivers/gpu/d

[PATCH V3 23/23] drm/etnaviv: submit supports performance monitor requests

2017-08-25 Thread Christian Gmeiner
We increment the minor driver version so userspace can detect perfmon support. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers

[PATCH V3 16/23] drm/etnaviv: add PA perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 38 +++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 76405b0e8815..041711adfc84 100644 --- a/

[PATCH V3 10/23] drm/etnaviv: add 'sync point' support

2017-08-25 Thread Christian Gmeiner
In order to support performance counters in a sane way we need to provide a method to sync the GPU with the CPU. The GPU can process multpile command buffers/events per irq. With the help of a 'sync point' we can trigger an event and stop the GPU/FE immediately. When the CPU is done with is process

[PATCH V3 22/23] drm/etnaviv: enable debug registers on demand

2017-08-25 Thread Christian Gmeiner
Some performance register are debug register and they need to be enabled in order to be functional. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv

[PATCH V3 19/23] drm/etnaviv: add TX perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 310792c546a6..65ec8bb6c5ab 100644 --- a/

[PATCH V3 21/23] drm/etnaviv: need to disable clock gating when doing profiling

2017-08-25 Thread Christian Gmeiner
As done by Vivante kernel driver. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 842b6642d

[PATCH V3 18/23] drm/etnaviv: add RA perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index def0507ad7bf..310792c546a6 100644 --- a/

[PATCH V3 07/23] drm/etnaviv: add performance monitor request validation

2017-08-25 Thread Christian Gmeiner
Check if the selected domain and signal combination exists. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 15 +++ drivers/gpu/drm/etnaviv/etnaviv_perfmon.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/gp

[PATCH V3 15/23] drm/etnaviv: add SH perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 53 +++ 1 file changed, 53 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 3bda13cc4025..76405b0e8815 100644 --- a/

[PATCH V3 13/23] drm/etnaviv: add HI perf domain

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index a8518bd4fbf6..9079ffce9391 100644 --- a/

[PATCH V3 08/23] drm/etnaviv: copy pmrs from userspace

2017-08-25 Thread Christian Gmeiner
Changes from v1 -> v2: - renamed submit_perfmon_request() to submit_perfmon_validate() - extended flags validation - added comment about offset 0 - moved assigment of cmdbuf->nr_pmrs below the copy_from_user of the pmrs. Changes from v2 -> v3: - fixed flags validation Signed-off-by: Christian Gme

[PATCH V3 14/23] drm/etnaviv: add PE perf domain

2017-08-25 Thread Christian Gmeiner
We need to iterate over all pixel pipelines to get overall value. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 52 +++ 1 file changed, 52 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnav

[PATCH V3 11/23] drm/etnaviv: clear alloced event

2017-08-25 Thread Christian Gmeiner
Results in less code as the users do not set every struct member to 0/NULL. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gp

[PATCH V3 05/23] drm/etnaviv: add internal representation of perfmon_request

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h | 4 drivers/gpu/drm/etnaviv/etnaviv_perfmon.h | 12 2 files changed, 16 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h index 80d7807

[PATCH V3 06/23] drm/etnaviv: extend etnaviv_gpu_cmdbuf_new(..) with nr_pmrs

2017-08-25 Thread Christian Gmeiner
This commits extends etnaviv_gpu_cmdbuf_new(..) to define the number of struct etnaviv_perfmon elements gets used. Changes from v1 -> v2: - make use of goto as requested by Lucas Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 15 ++- drivers/gpu/

[PATCH V3 12/23] drm/etnaviv: use 'sync points' for performance monitor requests

2017-08-25 Thread Christian Gmeiner
With 'sync points' we can sample the reqeustes perform signals before and/or after the submited command buffer. Changes v2 -> v3: - fixed indentation and init nr_events to 1 Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 102 +++--- driv

[PATCH V3 09/23] drm/etnaviv: add performance monitor request processing

2017-08-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 16 drivers/gpu/drm/etnaviv/etnaviv_perfmon.h | 3 +++ 2 files changed, 19 insertions(+) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index b8

[PATCH V3 00/23] drm/etnaviv: support performance counters

2017-08-25 Thread Christian Gmeiner
In a perfect world we would be able to read GPU registers of interest via the command stream with a 'read-register' command/package. For perf counters it is a must to read them synchronized with the GPU to put the values in relation to a draw command. As Vivante GPUs do not provide this functionali

[PATCH V3 03/23] drm/etnaviv: add infrastructure to query perf counter

2017-08-25 Thread Christian Gmeiner
Make it possible that userspace can query all performance domains and its signals. This information is needed to sample those signals via submit ioctl. At the moment no performance domain is available. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/Makefile | 3 +- drive

[PATCH V3 02/23] drm/etnaviv: make it possible to allocate multiple events

2017-08-25 Thread Christian Gmeiner
This makes it possible to allocate multiple events under the event spinlock. This change is needed to support 'sync'-points. Changes v2 -> v3: - wait for the completion of all events - use 10sec timeout regardless of the number of events - removed validation if there are enough free events - fixed

[PATCH V3 01/23] drm/etnaviv: use bitmap to keep track of events

2017-08-25 Thread Christian Gmeiner
This is prep work to be able to allocate multiple events in one go. Signed-off-by: Christian Gmeiner --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 31 +-- drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 6 -- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a

[PATCH V3 04/23] drm/etnaviv: add uapi for perfmon feature

2017-08-25 Thread Christian Gmeiner
Sadly we can not read any registers via command stream so we need to extend the drm_etnaviv_gem_submit struct with performance monitor requests. Those requests gets process before or after the actual submitted command stream. The Vivante kernel driver has a special ioctl to read all perfmon regist

[Bug 101691] gfx corruption on windowed 3d-apps running on dGPU

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101691 --- Comment #35 from alex_zha...@dell.com --- (In reply to Ben Widawsky from comment #34) > Just some thoughts... > > The corruption are x-tiled cachelines, looks like stale ones. I don't know > what the vertical lines are. It looks to me like t

[Bug 93301] ns2_linux32: radeon VM fault on Hawaii (+mmap errors)

2017-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93301 --- Comment #29 from Kamil Páral --- Yes, I can confirm NS2 works well now. One thing to note is that when compiling the shaders, the memory usage of the game is much higher than when running from the cache (even *after* the compilation has ended

Re: DRM Format Modifiers in v4l2

2017-08-25 Thread Hans Verkuil
On 24/08/17 14:26, Brian Starkey wrote: > On Thu, Aug 24, 2017 at 01:37:35PM +0200, Hans Verkuil wrote: >> On 08/24/17 13:14, Brian Starkey wrote: >>> Hi Hans, >>> >>> On Mon, Aug 21, 2017 at 06:36:29PM +0200, Hans Verkuil wrote: On 08/21/2017 06:01 PM, Daniel Vetter wrote: > On Mon, Aug 2