Re: [PATCH libdrm] libdrm/amdgpu: add interface for kernel semaphores

2017-03-13 Thread Dave Airlie
On 14 March 2017 at 13:30, zhoucm1 wrote: > > > On 2017年03月14日 10:52, Dave Airlie wrote: >> >> On 14 March 2017 at 12:00, zhoucm1 wrote: >>> >>> Hi Dave, >>> >>> Could you tell me why you create your new one patch? I remember I send >>> out >>> our the whole implementation, Why not directly revie

Re: [PATCH libdrm] libdrm/amdgpu: add interface for kernel semaphores

2017-03-13 Thread zhoucm1
On 2017年03月14日 10:52, Dave Airlie wrote: On 14 March 2017 at 12:00, zhoucm1 wrote: Hi Dave, Could you tell me why you create your new one patch? I remember I send out our the whole implementation, Why not directly review our patches? This is patch review, I'm not sure what you are expecting

Re: [PATCH libdrm] libdrm/amdgpu: add interface for kernel semaphores

2017-03-13 Thread Dave Airlie
On 14 March 2017 at 12:00, zhoucm1 wrote: > Hi Dave, > > Could you tell me why you create your new one patch? I remember I send out > our the whole implementation, Why not directly review our patches? This is patch review, I'm not sure what you are expecting in terms of direct review. The patche

Re: [PATCH libdrm] libdrm/amdgpu: add interface for kernel semaphores

2017-03-13 Thread zhoucm1
Hi Dave, Could you tell me why you create your new one patch? I remember I send out our the whole implementation, Why not directly review our patches? Thanks, David Zhou On 2017年03月14日 08:50, Dave Airlie wrote: From: Dave Airlie This adds the corresponding code for libdrm to use the new ke

[Bug 99841] Switching to VT freezes X only on a dual screen

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99841 --- Comment #13 from Michel Dänzer --- Created attachment 130207 --> https://bugs.freedesktop.org/attachment.cgi?id=130207&action=edit Only reject if FBINFO_MISC_USEREVENT is set Does this patch (only compile tested) help? -- You are receivi

Re: [PATCH v2 00/12] drm/exynos: rework vblank handling

2017-03-13 Thread Inki Dae
Hi Andrzej, Thanks for fixing this. As you mentioned, this patch set depends on Shawn patch set[1]. So can you separate this patch series into two sets? One includes only the patch set related to fixing page fault issue and other includes cleanup code based on Shawn patchset. I'd like to merge

Re: [RESEND] drm/exynos: Remove support for Exynos4415 (SoC not supported anymore)

2017-03-13 Thread Inki Dae
Merged. Thanks. 2017년 03월 12일 03:04에 Krzysztof Kozlowski 이(가) 쓴 글: > Support for Exynos4415 is going away because there are no internal nor > external users. > > Since commit 46dcf0ff0de3 ("ARM: dts: exynos: Remove exynos4415.dtsi"), > the platform cannot be instantiated so remove also the drive

[PATCH 3/4] amdgpu/cs: split out fence dependency checking

2017-03-13 Thread Dave Airlie
From: Dave Airlie This just splits out the fence depenency checking into it's own function to make it easier to add semaphore dependencies. Signed-off-by: Dave Airlie --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 86 +++--- 1 file changed, 48 insertions(+), 38 deleti

[PATCH 4/4] amdgpu: use sync file for shared semaphores

2017-03-13 Thread Dave Airlie
From: Dave Airlie This creates a new interface for amdgpu with ioctls to create/destroy/import and export shared semaphores using sem object backed by the sync_file code. The semaphores are not installed as fd (except for export), but rather like other driver internal objects in an idr. The idr h

[PATCH 1/4] sync_file: add a mutex to protect fence and callback members.

2017-03-13 Thread Dave Airlie
From: Dave Airlie This isn't needed currently, but to reuse sync file for Vulkan permanent shared semaphore semantics, we need to be able to swap the fence backing a sync file. This patch adds a mutex to the sync file and uses to protect accesses to the fence and cb members. Signed-off-by: Dave

[rfc] amdgpu/sync_file shared semaphores

2017-03-13 Thread Dave Airlie
This contains one libdrm patch and 4 kernel patches. The goal is to implement the Vulkan KHR_external_semaphore_fd interface for permanent semaphore behaviour for radv. This code tries to enhance sync file to add the required behaviour (which is mostly being able to replace the fence backing the

[PATCH libdrm] libdrm/amdgpu: add interface for kernel semaphores

2017-03-13 Thread Dave Airlie
From: Dave Airlie This adds the corresponding code for libdrm to use the new kernel interfaces for semaphores. This will be used by radv to implement shared semaphores. TODO: Version checks. Signed-off-by: Dave Airlie --- amdgpu/amdgpu.h | 28 + amdgpu/amdgpu_cs.c | 1

[PATCH 2/4] sync_file: add replace and export some functionality

2017-03-13 Thread Dave Airlie
From: Dave Airlie Using sync_file to back vulkan semaphores means need to replace the fence underlying the sync file. This replace function removes the callback, swaps the fence, and returns the old one. This also exports the alloc and fdget functionality for the semaphore wrapper code. Signed-o

[Bug 100189] segfault at 234 error 4 in i915_dri.so

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100189 --- Comment #2 from Emil Velikov --- Hi Javi, I don't think we have many devs looking at the i915 driver. If you can track down the commit that introduced the regression (considering it is one) or write a simple test program that will be apprec

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Jose Abreu
Hi Russell, On 13-03-2017 13:10, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 12:55:58PM +, Jose Abreu wrote: >> Hi, >> >> >> On 13-03-2017 09:36, Russell King - ARM Linux wrote: >>> On Mon, Mar 13, 2017 at 10:27:08AM +0100, Neil Armstrong wrote: On 03/10/2017 10:35 AM, Roma

[Bug 100189] segfault at 234 error 4 in i915_dri.so

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100189 --- Comment #1 from Javi Ballester Tomás --- mpv only crashes when fullscreen on start is activated in mpv.conf (fs=yes). blender crashes also with segfault: # Blender 2.78 (sub 0), Commit date: 2017-02-24 14:33, Hash e92f2352830 # ba

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Laura Abbott
On 03/13/2017 02:29 PM, Rob Clark wrote: > On Mon, Mar 13, 2017 at 5:09 PM, Laura Abbott wrote: >>> Hm, we might want to expose all the heaps as individual >>> /dev/ion_$heapname nodes? Should we do this from the start, since >>> we're massively revamping the uapi anyway (imo not needed, current >

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Laura Abbott
On 03/13/2017 06:21 AM, Mark Brown wrote: > On Mon, Mar 13, 2017 at 10:54:33AM +, Brian Starkey wrote: >> On Sun, Mar 12, 2017 at 02:34:14PM +0100, Benjamin Gaignard wrote: > >>> Another point is how can we put secure rules (like selinux policy) on >>> heaps since all the allocations >>> go to

[Bug 100189] segfault at 234 error 4 in i915_dri.so

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100189 Bug ID: 100189 Summary: segfault at 234 error 4 in i915_dri.so Product: Mesa Version: 17.0 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity:

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Rob Clark
On Mon, Mar 13, 2017 at 5:09 PM, Laura Abbott wrote: >> Hm, we might want to expose all the heaps as individual >> /dev/ion_$heapname nodes? Should we do this from the start, since >> we're massively revamping the uapi anyway (imo not needed, current >> state seems to work too)? >> -Daniel >> > >

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Laura Abbott
On 03/13/2017 03:54 AM, Brian Starkey wrote: > On Sun, Mar 12, 2017 at 02:34:14PM +0100, Benjamin Gaignard wrote: >> 2017-03-09 18:38 GMT+01:00 Laura Abbott : >>> On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: 2017-03-06 17:04 GMT+01:00 Daniel Vetter : > On Mon, Mar 06, 2017 at 11:58:05A

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Laura Abbott
On 03/12/2017 12:05 PM, Daniel Vetter wrote: > On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard > wrote: >> 2017-03-09 18:38 GMT+01:00 Laura Abbott : >>> On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: 2017-03-06 17:04 GMT+01:00 Daniel Vetter : > On Mon, Mar 06, 2017 at 11:58:05AM +010

Re: [PATCH] drm/rockchip: Refactor the component match logic.

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 01:58:14PM +0800, Jeffy Chen wrote: > Currently we are adding all components from the dts, if one of their > drivers been disabled, we would not be able to bring up others. > > Refactor component match logic, follow exynos drm. > > Signed-off-by: Jeffy Chen > > --- > >

Re: [PATCH 0/3] RK3399 cdd-dp patches

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 10:27:54AM +0800, Chris Zhong wrote: > Hi all > This series is to correct some mistakes in clk_get_rate and the register > address. And in order to better develop, adding more prints. > > > Chris Zhong (3): > drm/rockchip: cdn-dp: return error code when clk_get_rate fail

[Bug 84663] high cpu usage, poor performance in Borderlands 2 with radeonsi, PRIME

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84663 Marek Olšák changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug 99950] Add cl_khr_int64_base_atomics to Clover and make it work on radeonsi

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99950 Vedran Miletić changed: What|Removed |Added Blocks||99764 Referenced Bugs: https://bugs.f

Re: [RESEND PATCH] drm/msm: adreno: fix build error without debugfs

2017-03-13 Thread Sean Paul
On Mon, Mar 13, 2017 at 06:09:17PM +, Emil Velikov wrote: > On 13 March 2017 at 17:00, Rob Clark wrote: > > On Mon, Mar 13, 2017 at 12:43 PM, Arnd Bergmann wrote: > >> The newly added a5xx support fails to build when debugfs is diabled: > >> > >> drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: e

Re: [Intel-gfx] [PATCH 24/24] drm/gem: Add DEFINE_DRM_GEM_FOPS

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:57PM +0100, Daniel Vetter wrote: > Sadly there's only 1 driver which can use it, everyone else is special > for some reason: > > - gma500 has a horrible runtime PM ioctl wrapper that probably doesn't > really work but meh. > - i915 needs special compat_ioctl handler

Re: [Intel-gfx] [PATCH 23/24] drm: Create DEFINE_DRM_GEM_CMA_FOPS and roll it out to drivers

2017-03-13 Thread Sean Paul
On Mon, Mar 13, 2017 at 03:31:40PM -0400, Sean Paul wrote: > On Wed, Mar 08, 2017 at 03:12:56PM +0100, Daniel Vetter wrote: > > Less code ftw. > > > > This converts all drivers except the tinydrm helper module. That one > > needs more work, since it gets the THIS_MODULE reference from > > tinydrm.

Re: [Intel-gfx] [PATCH 23/24] drm: Create DEFINE_DRM_GEM_CMA_FOPS and roll it out to drivers

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:56PM +0100, Daniel Vetter wrote: > Less code ftw. > > This converts all drivers except the tinydrm helper module. That one > needs more work, since it gets the THIS_MODULE reference from > tinydrm.ko instead of the actual driver module like it should. > Probably needs

Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270

2017-03-13 Thread Alex Deucher
On Sat, Mar 11, 2017 at 11:21 AM, Umang Raghuvanshi wrote: > Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed > quirks for Oland but also caused a regression where M270 GPUs > would go into a lock-up when OpenGL intensive applications were used. > This reverts the change only for the

Re: [Intel-gfx] [PATCH 22/24] drm: Nerf the preclose callback for modern drivers

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:55PM +0100, Daniel Vetter wrote: > With all drivers converted there's only legacy dri1 drivers using it. > Not going to touch those, instead just hide it like we've done with > other dri1 driver hooks like firstopen. > > In all this I didn't find any real reason why w

Re: [Intel-gfx] [PATCH 21/24] drm/msm: Simplify vblank event delivery

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:54PM +0100, Daniel Vetter wrote: > The core takes care of handling the send_event vs. close() issues, we > can remove that driver code. > > Cc: Rob Clark > Cc: linux-arm-...@vger.kernel.org > Cc: freedr...@lists.freedesktop.org > Signed-off-by: Daniel Vetter > --- >

Re: [Intel-gfx] [PATCH 20/24] drm/exynos: Merge pre/postclose hooks

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:53PM +0100, Daniel Vetter wrote: > Again no apparent explanation for the split except hysterical raisins. > Merging them also makes it a bit more obviuos what's going on wrt the > runtime pm refdancing. Commit message copypasta. The code is Reviewed-by: Sean Paul

Re: [PATCH 17/24] drm/vgem: switch to postclose

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:50PM +0100, Daniel Vetter wrote: > I didn't spot anything that would require ordering here (well not > anywhere else either), and I'm trying to unify at least modern drivers > on one close hook. > > Cc: Chris Wilson > Signed-off-by: Daniel Vetter Reviewed-by: Sean

Re: [PATCH 16/24] drm/tegra: switch to postclose

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:49PM +0100, Daniel Vetter wrote: > I didn't spot anything that would require ordering here (well not > anywhere else either), and I'm trying to unify at least modern drivers > on one close hook. > > Cc: Thierry Reding > Cc: linux-te...@vger.kernel.org > Signed-off-by

Re: [PATCH 14/24] drm/nouveau: Merge pre/postclose hooks

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:47PM +0100, Daniel Vetter wrote: > Again no apparent explanation for the split except hysterical raisins. > Merging them also makes it a bit more obviuos what's going on wrt the > runtime pm refdancing. Yeah, holding the pm reference from preclose to postclose had me

Re: [Intel-gfx] [PATCH 13/24] drm/msm: switch to postclose

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:46PM +0100, Daniel Vetter wrote: > I didn't spot anything that would require ordering here (well not > anywhere else either), and I'm trying to unify at least modern drivers > on one close hook. > > Cc: Rob Clark > Cc: linux-arm-...@vger.kernel.org > Cc: freedr...@li

[Bug 100089] Space Run rendering prolems

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100089 --- Comment #5 from Samuel Pitoiset --- You might want to upload the trace with gdrive or dropbox. -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list

Re: [RESEND PATCH] drm/msm: adreno: fix build error without debugfs

2017-03-13 Thread Emil Velikov
On 13 March 2017 at 17:00, Rob Clark wrote: > On Mon, Mar 13, 2017 at 12:43 PM, Arnd Bergmann wrote: >> The newly added a5xx support fails to build when debugfs is diabled: >> >> drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: error: 'struct msm_gpu_funcs' >> has no member named 'show' >> drivers/g

[Bug 100089] Space Run rendering prolems

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100089 --- Comment #4 from LunarG --- I'm having trouble adding the trace. I can't trim my current trace to the allowable upload size (including compressing it). I also can't create a new trace; apitrace gets an abort signal when trying to run the game

Re: [PATCH 11/24] drm/doc: Document drm_file.[hc]

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:44PM +0100, Daniel Vetter wrote: > Well, mostly drm_file.h, and clean up all related things: > > - I didnt' figure out the difference between preclose and postclose. > The existing explanation in drm-internals.rst didn't convince me, > since it's also really outda

Re: [PATCH 3/3] drm/tegra: Support for sync file-based fences in submit

2017-03-13 Thread Thierry Reding
On Mon, Mar 13, 2017 at 11:07:28AM +0200, Mikko Perttunen wrote: > > > On 13.03.2017 09:15, Thierry Reding wrote: > > On Thu, Mar 09, 2017 at 07:57:18PM +0200, Mikko Perttunen wrote: > > > Add support for sync file-based prefences and postfences > > > to job submission. Fences are passed to the H

Re: [PATCH 1/3] drm/etnaviv: submit support for in-fences

2017-03-13 Thread Gustavo Padovan
Hi Philipp, 2017-03-13 Philipp Zabel : > Hi Gustavo, > > thank you for the review. > > On Wed, 2017-03-08 at 11:37 -0300, Gustavo Padovan wrote: > [...] > > > @@ -385,6 +396,25 @@ int etnaviv_ioctl_gem_submit(struct drm_device *dev, > > > void *data, > > > goto err_submit_objects; >

Re: [Freedreno] [PATCH 5/6] drm/msm: gpu: Use OPP tables if we can

2017-03-13 Thread Rob Clark
On Tue, Mar 7, 2017 at 12:02 PM, Jordan Crouse wrote: > If a OPP table is defined for the GPU device in the device tree use > that in lieu of the downstream style GPU frequency table. If we do > use the downstream table convert it to a OPP table so that we can > take advantage of the OPP lookup fa

Re: [PATCH 2/3] drm/etnaviv: move fence allocation out of etnaviv_gpu_submit()

2017-03-13 Thread Gustavo Padovan
2017-03-13 Philipp Zabel : > On Wed, 2017-03-08 at 11:42 -0300, Gustavo Padovan wrote: > > Hi Philipp, > > > > 2017-03-08 Philipp Zabel : > > > > > The next patch will need the dma_fence to create the sync_file in > > > etnaviv_ioctl_gem_submit, in case an out_fence_fd is requested. > > > > > >

Re: [Intel-gfx] [PATCH 10/24] drm: Remove drm_pending_event->pid

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:43PM +0100, Daniel Vetter wrote: > We might as well dump the drm_file pointer, that's about as useful > a cookie as the pid. Noticed while typing docs for drm_file and friends. > > Since the only consumer of this is the tracepoints I think we can safely > change this

Re: [PATCH 23/24] drm: Create DEFINE_DRM_GEM_CMA_FOPS and roll it out to drivers

2017-03-13 Thread Liviu Dudau
On Wed, Mar 08, 2017 at 03:12:56PM +0100, Daniel Vetter wrote: > Less code ftw. > > This converts all drivers except the tinydrm helper module. That one > needs more work, since it gets the THIS_MODULE reference from > tinydrm.ko instead of the actual driver module like it should. > Probably needs

Re: [RESEND PATCH] drm/msm: adreno: fix build error without debugfs

2017-03-13 Thread Rob Clark
On Mon, Mar 13, 2017 at 12:43 PM, Arnd Bergmann wrote: > The newly added a5xx support fails to build when debugfs is diabled: > > drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: error: 'struct msm_gpu_funcs' > has no member named 'show' > drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:11: error: 'a5xx_sh

Re: [PATCH 08/24] drm: Remove DRM_MINOR_CNT

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:41PM +0100, Daniel Vetter wrote: > This was originally added by David Herrmann for range checks, but > entirely unused. It confused me, so let's remove it. > > Cc: David Herrmann > Signed-off-by: Daniel Vetter Reviewed-by: Sean Paul > --- > include/drm/drmP.h | 1

Re: [PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 2:41 PM, Christian König wrote: > From: Christian König > > Try to resize BAR0 to let CPU access all of VRAM. > +void amdgpu_resize_bar0(struct amdgpu_device *adev) > +{ > + u32 size = max(ilog2(adev->mc.real_vram_size - 1) + 1, 20) - 20; > + int r; > + > +

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 12:55:58PM +, Jose Abreu wrote: > Hi, > > > On 13-03-2017 09:36, Russell King - ARM Linux wrote: > > On Mon, Mar 13, 2017 at 10:27:08AM +0100, Neil Armstrong wrote: > >> On 03/10/2017 10:35 AM, Romain Perier wrote: > >>> Currently, the audio sampler clock is enabled fr

Re: [PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD

2017-03-13 Thread Richard Genoud
On 12/03/2017 15:17, Rob Herring wrote: > On Fri, Mar 03, 2017 at 04:21:56PM +0100, Richard Genoud wrote: >> This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT >> LCD panel, which can be supported by the simple panel driver. >> >> Signed-off-by: Richard Genoud >> --- >> .../bi

Re: [PATCH 0/3] Tegra Host1x dma_fence/sync_file support

2017-03-13 Thread Mikko Perttunen
On 10.03.2017 14:43, Daniel Vetter wrote: On Thu, Mar 09, 2017 at 09:09:52PM +0200, Mikko Perttunen wrote: On 03/09/2017 08:58 PM, Daniel Vetter wrote: On Thu, Mar 9, 2017 at 6:57 PM, Mikko Perttunen wrote: Hi everyone, this series adds support for using sync fences as prefences and postfe

[PATCH 0/1] drm/radeon: Fix GPU lockups for the R7 M270

2017-03-13 Thread Umang Raghuvanshi
The AMD Radeon R7 M270 card's OpenGL functionality completely broke down in Linux kernel v4.10. Before v4.10, the card was incorrectly identified as a Radeon R7 M265 but worked perfectly (possibly due to the similarities between the two). It should also be noted that this issue is also present in W

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 10:27:08AM +0100, Neil Armstrong wrote: > On 03/10/2017 10:35 AM, Romain Perier wrote: > > Currently, the audio sampler clock is enabled from dw_hdmi_setup() at > > step E. and is kept enabled for later use. This clock should be enabled > > and disabled along with the actual

[PATCH 1/1] drm/radeon: Fix GPU lockups for the R7 M270

2017-03-13 Thread Umang Raghuvanshi
Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed quirks for Oland but also caused a regression where M270 GPUs would go into a lock-up when OpenGL intensive applications were used. This reverts the change only for the M270 and fixes the lock-ups. Signed-off-by: Umang Raghuvanshi ---

Re: [PATCH 3/3] drm/tegra: Support for sync file-based fences in submit

2017-03-13 Thread Mikko Perttunen
On 13.03.2017 09:15, Thierry Reding wrote: On Thu, Mar 09, 2017 at 07:57:18PM +0200, Mikko Perttunen wrote: Add support for sync file-based prefences and postfences to job submission. Fences are passed to the Host1x implementation. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/dr

Re: [PATCH V3 4/4] dts/imx6q-b850v3: Use megachips-stdpxxxx-ge-b850v3-fw bridges (LVDS-DP++)

2017-03-13 Thread Shawn Guo
On Fri, Mar 03, 2017 at 04:57:10PM +0100, Peter Senna Tschudin wrote: > Configures the megachips-stdp-ge-b850v3-fw bridges on the GE > B850v3 dts file. > > Cc: Laurent Pinchart > Cc: Martyn Welch > Cc: Martin Donnelly > Cc: Javier Martinez Canillas > Cc: Enric Balletbo i Serra > Cc: Phili

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Jose Abreu
Hi, On 13-03-2017 09:36, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 10:27:08AM +0100, Neil Armstrong wrote: >> On 03/10/2017 10:35 AM, Romain Perier wrote: >>> Currently, the audio sampler clock is enabled from dw_hdmi_setup() at >>> step E. and is kept enabled for later use. This

Re: [PATCH v3 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-13 Thread Jose Abreu
Hi Neil, On 09-03-2017 14:27, Jose Abreu wrote: > Hi Neil, > > > On 08-03-2017 12:12, Neil Armstrong wrote: >> Hi Jose, >> >> It seems here that we only have the RGB444<->YUV444 8bit tables, from the >> Amlogic >> source I have the following for 10bit, 12bit and 16bit for itu601 : >> >> static c

Re: [PATCH 3/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 2:41 PM, Christian König wrote: > Most BIOS don't enable this because of compatibility reasons. > > Manually enable a 64bit BAR of 64GB size so that we have > enough room for PCI devices. > +static void pci_amd_enable_64bit_bar(struct pci_dev *dev) > +{ > + const ui

[RESEND PATCH] drm/msm: adreno: fix build error without debugfs

2017-03-13 Thread Arnd Bergmann
The newly added a5xx support fails to build when debugfs is diabled: drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: error: 'struct msm_gpu_funcs' has no member named 'show' drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:11: error: 'a5xx_show' undeclared here (not in a function); did you mean 'a5xx_irq'

Re: [PATCH 2/4] PCI: add functionality for resizing resources v2

2017-03-13 Thread Andy Shevchenko
On Mon, Mar 13, 2017 at 2:41 PM, Christian König wrote: > From: Christian König > > This allows device drivers to request resizing their BARs. > > The function only tries to reprogram the windows of the bridge directly above > the requesting device and only the BAR of the same type (usually mem,

Re: [Intel-gfx] [PATCH 02/24] drm: Extract drm_prime.h

2017-03-13 Thread Sean Paul
On Wed, Mar 08, 2017 at 03:12:35PM +0100, Daniel Vetter wrote: > Plus a little bit more documentation. > > v2: Untangle the missing forward decls to make drm_prime|gem.h > free-standing. > > Signed-off-by: Daniel Vetter > --- > Documentation/gpu/drm-mm.rst | 3 ++ > drivers/gpu/drm/drm_prime.

[Bug 100089] Space Run rendering prolems

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100089 --- Comment #3 from LunarG --- This was observed on AMD R9 Fury and AMD RX480 graphic cards using Mesa 17.0.0 (git-cfdda19). I do have a trace but it was not captured using this Mesa version and is a bit old but the problem can be observed usin

[PATCH] drm/exynos/dsi: make te-gpios optional

2017-03-13 Thread Andrzej Hajda
In case of HW-TRIGGER te-gpios interrupt is not necessary. With this patch we can get rid of 60 interrupt callbacks per second. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos

Re: [PATCH 0/5] drm/tinydrm: Add tinydrm_panel abstraction

2017-03-13 Thread Noralf Trønnes
Den 12.03.2017 21.40, skrev Daniel Vetter: On Sun, Mar 12, 2017 at 09:17:00PM +0100, Noralf Trønnes wrote: Den 12.03.2017 20.16, skrev Daniel Vetter: On Sun, Mar 12, 2017 at 06:50:17PM +0100, Daniel Vetter wrote: Hi Noralf, On Sat, Mar 11, 2017 at 10:35:31PM +0100, Noralf Trønnes wrote: Add

Re: [PATCH v2 1/9] gpu: ipu-v3: add DT binding for the Prefetch Resolve Engine

2017-03-13 Thread Philipp Zabel
On Wed, 2017-03-08 at 12:13 +0100, Lucas Stach wrote: > The Prefetch Resolve Engine is a prefetch and tile resolve engine > which prefetches display data from DRAM to an internal SRAM region. > It has a single clock for configuration register access and the > functional units. A single shared inter

[Bug 76490] Hang during boot when DPM is on (R9 270X)

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76490 Alex Deucher changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

Re: connector/edid probing races

2017-03-13 Thread Sean Paul
On Sat, Mar 11, 2017 at 11:53:04AM +0100, Daniel Vetter wrote: > On Fri, Mar 10, 2017 at 01:13:12PM -0500, Sean Paul wrote: > > On Fri, Mar 10, 2017 at 05:52:34PM +0100, Daniel Vetter wrote: > > > On Fri, Mar 10, 2017 at 11:01:54AM -0500, Sean Paul wrote: > > > > On Fri, Mar 10, 2017 at 02:12:14PM

[Bug 99841] Switching to VT freezes X only on a dual screen

2017-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99841 --- Comment #12 from p...@cooco.de --- # bad: [7ce7d89f48834cefece7804d38fc5d85382edf77] Linux 4.10-rc1 # good: [69973b830859bc6529a7a0468ba0d80ee5117826] Linux 4.9 git bisect start 'v4.10-rc1' 'v4.9' # bad: [72cca7baf4fba777b8ab770b902cf2e0894177

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Mark Brown
On Mon, Mar 13, 2017 at 10:54:33AM +, Brian Starkey wrote: > On Sun, Mar 12, 2017 at 02:34:14PM +0100, Benjamin Gaignard wrote: > > Another point is how can we put secure rules (like selinux policy) on > > heaps since all the allocations > > go to the same device (/dev/ion) ? For example, unti

[GIT PULL] omapdrm fixes for v4.11

2017-03-13 Thread Tomi Valkeinen
Hi Dave, Please pull these two omapdrm fixes for v4.11. Tomi The following changes since commit 3f81e1340706e9a7f854808e2f580c3106805d0c: drm: mxsfb: Implement drm_panel handling (2017-03-10 11:11:14 +1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel

[PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-13 Thread Christian König
From: Christian König Try to resize BAR0 to let CPU access all of VRAM. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 29 + drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 8 +---

[PATCH 3/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors

2017-03-13 Thread Christian König
From: Christian König Most BIOS don't enable this because of compatibility reasons. Manually enable a 64bit BAR of 64GB size so that we have enough room for PCI devices. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 53 1 file c

[PATCH 1/4] PCI: add resizeable BAR infrastructure v3

2017-03-13 Thread Christian König
From: Christian König Just the defines and helper functions to read the possible sizes of a BAR and update it's size. See https://pcisig.com/sites/default/files/specification_documents/ECN_Resizable-BAR_24Apr2008.pdf. This is useful for hardware with large local storage (mostly GFX) which only

[PATCH 2/4] PCI: add functionality for resizing resources v2

2017-03-13 Thread Christian König
From: Christian König This allows device drivers to request resizing their BARs. The function only tries to reprogram the windows of the bridge directly above the requesting device and only the BAR of the same type (usually mem, 64bit, prefetchable). This is done to make sure not to disturb othe

Resizeable PCI BAR support V3

2017-03-13 Thread Christian König
Hi Bjorn and others on the lists, it's over a year that I initially came up with that, but now I finally have the time to finish it up. This set of patches allows device drivers to resize and most likely also relocate the PCI BAR of devices they manage to allow the CPU to access all of the device

Re: [PATCH 1/5] drm/tinydrm: Add tinydrm_rgb565_buf_copy()

2017-03-13 Thread Noralf Trønnes
Den 12.03.2017 19.00, skrev Daniel Vetter: On Sat, Mar 11, 2017 at 10:35:32PM +0100, Noralf Trønnes wrote: Add tinydrm_rgb565_buf_copy() function that copies buffer rectangle to destination buffer and also handles XRGB and byte swap conversions. Useful for displays that only support RGB565

Re: [PATCH 0/5] drm/tinydrm: Add tinydrm_panel abstraction

2017-03-13 Thread Noralf Trønnes
Den 12.03.2017 19.55, skrev Daniel Vetter: On Sun, Mar 12, 2017 at 06:50:17PM +0100, Daniel Vetter wrote: Hi Noralf, On Sat, Mar 11, 2017 at 10:35:31PM +0100, Noralf Trønnes wrote: Add support for displays that have a register interface and can be operated using a simple vtable. I have looke

[PATCH v10 4/6] drm/edid: detect SCDC support in HF-VSDB

2017-03-13 Thread Shashank Sharma
This patch does following: - Adds a new structure (drm_hdmi_info) in drm_display_info. This structure will be used to save and indicate if sink supports advanced HDMI 2.0 features - Adds another structure drm_scdc within drm_hdmi_info, to reflect scdc support and capabilities in connected HDM

[PATCH v10 6/6] drm/i915: allow HDMI 2.0 clock rates

2017-03-13 Thread Shashank Sharma
Geminilake has a native HDMI 2.0 controller, which is capable of driving clocks upto 594Mhz. This patch updates the max tmds clock limit for the same. V2: rebase V3: rebase V4: added r-b from Ander V5: rebase V6: rebase V7: rebase V8: rebase V9: rebase V10: rebase Cc: Ander Conselvan De Oliveira

[PATCH v10 5/6] drm/i915: enable scrambling

2017-03-13 Thread Shashank Sharma
Geminilake platform sports a native HDMI 2.0 controller, and is capable of driving pixel-clocks upto 594Mhz. HDMI 2.0 spec mendates scrambling for these higher clocks, for reduced RF footprint. This patch checks if the monitor supports scrambling, and if required, enables it during the modeset. V

[PATCH v10 1/6] drm: Add SCDC helpers

2017-03-13 Thread Shashank Sharma
From: Thierry Reding SCDC is a mechanism defined in the HDMI 2.0 specification that allows the source and sink devices to communicate. This commit introduces helpers to access the SCDC and provides the symbolic names for the various registers defined in the specification. V2: Rebase. V3: Added

[PATCH v10 3/6] drm/edid: detect SCDC support in HF-VSDB

2017-03-13 Thread Shashank Sharma
This patch does following: - Adds a new structure (drm_hdmi_info) in drm_display_info. This structure will be used to save and indicate if sink supports advanced HDMI 2.0 features - Adds another structure drm_scdc within drm_hdmi_info, to reflect scdc support and capabilities in connected HDM

[PATCH v10 0/6] HDMI 2.0: Scrambling in DRM layer

2017-03-13 Thread Shashank Sharma
HDMI 2.0 spec defines a method to reduce the RF footprint while operating at higher pixel clocks, which is called Scrambling. Scrambling can be controlled over a new set of I2C registers which are accessible over existing DDC I2C lines, called SCDC register set. This patch series contains 6 patche

[PATCH v10 2/6] drm/edid: check for HF-VSDB block

2017-03-13 Thread Shashank Sharma
From: Thierry Reding This patch implements a small function that finds if a given CEA db is hdmi-forum vendor specific data block or not. V2: Rebase. V3: Added R-B from Jose. V4: Rebase V5: Rebase V6: Rebase V7: Rebase V8: Rebase V9: Rebase V10: Rebase Signed-off-by: Thierry Reding Signed-off-

Re: [PATCH 0/4] Fix DP busy wait and defer disabling overlay plane

2017-03-13 Thread Philipp Zabel
Hi Dan, On Fri, 2017-03-10 at 11:11 +, Dan MacDonald wrote: > Should your patches work fine under 4.11-rc1 Phillipp or do I need to > test againt the very latest git? I realise that would be preferred. The patches from the v4.10-ipu-dp-plane-fix-2 tag should work under v4.11-rc1, they are app

Re: [PATCH 2/3] drm/etnaviv: move fence allocation out of etnaviv_gpu_submit()

2017-03-13 Thread Philipp Zabel
On Wed, 2017-03-08 at 11:42 -0300, Gustavo Padovan wrote: > Hi Philipp, > > 2017-03-08 Philipp Zabel : > > > The next patch will need the dma_fence to create the sync_file in > > etnaviv_ioctl_gem_submit, in case an out_fence_fd is requested. > > > > Signed-off-by: Philipp Zabel > > --- > > dr

Re: [PATCH 1/3] drm/etnaviv: submit support for in-fences

2017-03-13 Thread Philipp Zabel
Hi Gustavo, thank you for the review. On Wed, 2017-03-08 at 11:37 -0300, Gustavo Padovan wrote: [...] > > @@ -385,6 +396,25 @@ int etnaviv_ioctl_gem_submit(struct drm_device *dev, > > void *data, > > goto err_submit_objects; > > } > > > > + if (args->flags & ETNA_SUBMIT_FENCE

Re: [PATCH 3/3] drm/etnaviv: submit support for out-fences

2017-03-13 Thread Philipp Zabel
On Wed, 2017-03-08 at 11:48 -0300, Gustavo Padovan wrote: [...] > > @@ -437,10 +447,25 @@ int etnaviv_ioctl_gem_submit(struct drm_device *dev, > > void *data, > > goto out; > > } > > > > + if (args->flags & ETNA_SUBMIT_FENCE_FD_OUT) { > > + sync_file = sync_file_creat

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-13 Thread Brian Starkey
On Sun, Mar 12, 2017 at 02:34:14PM +0100, Benjamin Gaignard wrote: 2017-03-09 18:38 GMT+01:00 Laura Abbott : On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: 2017-03-06 17:04 GMT+01:00 Daniel Vetter : On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote: On Mon, Mar 06, 2017 at 11:40:41

Re: [PATCH] drm: virtio: fix kmem_cache_alloc error check

2017-03-13 Thread Daniel Vetter
On Mon, Mar 13, 2017 at 09:22:26AM +0100, Gerd Hoffmann wrote: > kmem_cache_alloc returns NULL on error, not ERR_PTR. > > Fixes: f5985bf9cadd4e3ed8d5d9a9cbbb2e39cdb81cd9 > Reported-by: Jiri Slaby > Signed-off-by: Gerd Hoffmann I guess we should have smatch integrated into 0day to catch these ..

Re: [PATCH] drm: drm_pci.h: add missing include

2017-03-13 Thread Daniel Vetter
On Sun, Mar 12, 2017 at 10:34:07PM -0400, Jérémy Lefaure wrote: > The structure platform_device is used in drm_pci.h without including > plaform_device.h so the compiler raises a warning: > > In file included from drivers/gpu/drm/drm_pci.c:29:0: > ./include/drm/drm_pci.h:76:64: warning: ‘struct pl

Re: [PATCH 0/3] Tegra Host1x dma_fence/sync_file support

2017-03-13 Thread Daniel Vetter
On Mon, Mar 13, 2017 at 10:55:01AM +0200, Mikko Perttunen wrote: > > > On 10.03.2017 14:43, Daniel Vetter wrote: > > On Thu, Mar 09, 2017 at 09:09:52PM +0200, Mikko Perttunen wrote: > > > On 03/09/2017 08:58 PM, Daniel Vetter wrote: > > > > On Thu, Mar 9, 2017 at 6:57 PM, Mikko Perttunen > > >

[Bug 194867] New: DRM BUG while initializing cape verde (2nd card)

2017-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=194867 Bug ID: 194867 Summary: DRM BUG while initializing cape verde (2nd card) Product: Drivers Version: 2.5 Kernel Version: 4.11-rc2 Hardware: x86-64 OS: Linux Tre

Re: [PATCH 1/5] PCI: add resizeable BAR infrastructure v2

2017-03-13 Thread Christian König
Am 06.03.2017 um 13:20 schrieb Andy Shevchenko: On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: + for (i = 0; i < nbars; ++i, pos += 8) { 8 is defined somewhere in the spec? (Yes, I understand that is just 64 bits shift) Yes, it is defined in the spec, see "Figure 7-x1 Resizable

[PATCH v2] drm/tilcdc: Set framebuffer DMA address to HW only if CRTC is enabled

2017-03-13 Thread Jyri Sarha
Touching HW while clocks are off is a serious error and for instance breaks suspend functionality. After this patch tilcdc_crtc_update_fb() always updates the primary plane's framebuffer pointer, increases fb's reference count and stores vblank event. tilcdc_crtc_update_fb() only writes the fb's DM

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Neil Armstrong
On 03/10/2017 10:35 AM, Romain Perier wrote: > Currently, the audio sampler clock is enabled from dw_hdmi_setup() at > step E. and is kept enabled for later use. This clock should be enabled > and disabled along with the actual audio stream and not always on (that > is bad for PM). Futhermore, this

  1   2   >