[PATCH] drm/amdgpu: Attach exclusive fence to prime exported bo's. (v2)

2016-11-04 Thread Mario Kleiner
External clients which import our bo's wait only for exclusive dmabuf-fences, not on shared ones, so attach fences on such exported buffers as exclusive ones. See discussion in thread: https://lists.freedesktop.org/archives/dri-devel/2016-October/122370.html Tested on Intel iGPU + AMD Tonga dGPU

Re: [PATCH] drm/i915: Before pageflip, also wait for shared dmabuf fences.

2016-11-04 Thread Mario Kleiner
On 10/28/2016 07:48 PM, Christian König wrote: Am 28.10.2016 um 19:37 schrieb Mario Kleiner: On 10/28/2016 03:34 AM, Michel Dänzer wrote: On 27/10/16 10:33 PM, Mike Lothian wrote: Just another gentle ping to see where you are with this? I haven't got a chance to look into this any furth

Re: [PATCH 1/2] dma-buf: return index of the first signaled fence (v2)

2016-11-04 Thread Sumit Semwal
Hi Alex, Thanks for the patches. On 4 November 2016 at 14:16, Alex Deucher wrote: > From: "monk.liu" > > Return the index of the first signaled fence. This information > is useful in some APIs like Vulkan. > > v2: rebase on drm-next (fence -> dma_fence) > > Signed-off-by: monk.liu > Signed-of

[PATCH 1/2] dma-buf: return index of the first signaled fence (v2)

2016-11-04 Thread Alex Deucher
From: "monk.liu" Return the index of the first signaled fence. This information is useful in some APIs like Vulkan. v2: rebase on drm-next (fence -> dma_fence) Signed-off-by: monk.liu Signed-off-by: Alex Deucher Cc: Sumit Semwal --- This is the same patch set I send out yesterday, I just s

[PATCH 2/2] drm/amdgpu: add the interface of waiting multiple fences (v4)

2016-11-04 Thread Alex Deucher
From: Junwei Zhang v2: agd: rebase and squash in all the previous optimizations and changes so everything compiles. v3: squash in Slava's 32bit build fix v4: rebase on drm-next (fence -> dma_fence), squash in Monk's ioctl update patch Signed-off-by: Junwei Zhang Reviewed-by: Monk Liu Revie

Re: [PATCH libdrm] xf86drm: Parse the separate files to retrieve the vendor/device info

2016-11-04 Thread Emil Velikov
HI all, On 2 November 2016 at 03:07, Michel Dänzer wrote: > > The first attached patch will result in drmParsePciDeviceInfo always > reporting revision 0 on kernels without the second attached patch. Will > that be an issue for the amdgpu-pro stack? > > Please follow up directly to the patch e-ma

Re: [PATCH 2/3] drm/amdgpu: add the interface of waiting multiple fences (v3)

2016-11-04 Thread Sumit Semwal
On 4 November 2016 at 11:14, Sumit Semwal wrote: > Hi Alex, > > Thanks for the patch! > > On 3 November 2016 at 11:41, Alex Deucher wrote: >> From: Junwei Zhang >> >> v2: agd: rebase and squash in all the previous optimizations and >> changes so everything compiles. >> v3: squash in Slava's 32bi

Re: [PATCH 2/3] drm/amdgpu: add the interface of waiting multiple fences (v3)

2016-11-04 Thread Sumit Semwal
Hi Alex, Thanks for the patch! On 3 November 2016 at 11:41, Alex Deucher wrote: > From: Junwei Zhang > > v2: agd: rebase and squash in all the previous optimizations and > changes so everything compiles. > v3: squash in Slava's 32bit build fix > > Signed-off-by: Junwei Zhang > Reviewed-by: Mon

Re: [PATCH 1/3] dma-buf: return index of the first signaled fence

2016-11-04 Thread Sumit Semwal
Hi Alex, Thanks for this patch. Adding Gustavo as well. On 3 November 2016 at 11:41, Alex Deucher wrote: > From: "monk.liu" > > Return the index of the first signaled fence. This information > is useful in some APIs like Vulkan. > > Signed-off-by: monk.liu > Signed-off-by: Alex Deucher > Cc:

RE: [PATCH 2/3] drm/amdgpu: add the interface of waiting multiple fences (v3)

2016-11-04 Thread Deucher, Alexander
> -Original Message- > From: Sumit Semwal [mailto:sumit.sem...@linaro.org] > Sent: Friday, November 04, 2016 1:15 PM > To: Alex Deucher > Cc: amd-gfx@lists.freedesktop.org; DRI mailing list; Zhang, Jerry; Deucher, > Alexander > Subject: Re: [PATCH 2/3] drm/amdgpu: add the interface of waiti

RE: [PATCH] drm/amdgpu: refine uvd_4.2 clock gate sequence.

2016-11-04 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Rex Zhu > Sent: Friday, November 04, 2016 9:11 AM > To: amd-gfx@lists.freedesktop.org > Cc: Zhu, Rex > Subject: [PATCH] drm/amdgpu: refine uvd_4.2 clock gate sequence. > > 1. partial revert c

RE: [PATCH] drm/amdgpu: set bypass mode when uvd is idle.

2016-11-04 Thread Deucher, Alexander
> -Original Message- > From: Zhu, Rex > Sent: Thursday, November 03, 2016 11:18 PM > To: Deucher, Alexander; amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH] drm/amdgpu: set bypass mode when uvd is idle. > > >>>Is there any harm in just always putting it into bypass mode or does it > i

[PATCH] drm/amdgpu: refine uvd_4.2 clock gate sequence.

2016-11-04 Thread Rex Zhu
1. partial revert commit 91db308d6e96. not set uvd bypass mode. 2. enable uvd cg before initialize uvd. 3. set uvd clock to default value 100MHz. Change-Id: I7d1f2ede425c6b97bf4439f445a06d2cff391d61 --- drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 8 --- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c |

[PATCH 1/2] drm/amdgpu: disable the VRAM manager on special placements v2

2016-11-04 Thread Christian König
From: Christian König This disables the VRAM manager when a special placement is requested, otherwise we play ping/pong with the buffers on every command submission. v2: only check lpfn Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 2 +- 1 file changed, 1 i

[PATCH 2/2] drm/amdgpu: remove extra placement for AMDGPU_GEM_CREATE_NO_CPU_ACCESS

2016-11-04 Thread Christian König
From: Christian König This only has the effect of scanning the invisible range twice since the topdown flag is given anyway. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/

Re: [PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Christian König
Am 04.11.2016 um 11:49 schrieb Christian König: Am 04.11.2016 um 10:22 schrieb Flora Cui: On Fri, Nov 04, 2016 at 09:52:16AM +0100, Christian König wrote: Well clearly a NAK on this, why do you think this is just dummy code? Am 04.11.2016 um 08:32 schrieb Flora Cui: Change-Id: I3238a2520c9161

Re: [PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Christian König
Am 04.11.2016 um 10:22 schrieb Flora Cui: On Fri, Nov 04, 2016 at 09:52:16AM +0100, Christian König wrote: Well clearly a NAK on this, why do you think this is just dummy code? Am 04.11.2016 um 08:32 schrieb Flora Cui: Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb Signed-off-by: Flora C

Re: [PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Flora Cui
On Fri, Nov 04, 2016 at 09:52:16AM +0100, Christian König wrote: > Well clearly a NAK on this, why do you think this is just dummy code? > > Am 04.11.2016 um 08:32 schrieb Flora Cui: > >Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb > >Signed-off-by: Flora Cui > >--- > > drivers/gpu/drm/am

Re: [PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Christian König
Well clearly a NAK on this, why do you think this is just dummy code? Am 04.11.2016 um 08:32 schrieb Flora Cui: Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 15 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.

[PATCH] Fix RadeonCopyData bpp=2 case for big-endian

2016-11-04 Thread Jochen Rollwagen
From 66b8b1513464aa3258ae6a024fcaea7a02e2def0 Mon Sep 17 00:00:00 2001 From: Jochen Rollwagen Date: Fri, 4 Nov 2016 09:11:38 +0100 Subject: [PATCH] Fix RadeonCopyData bpp=2 case for big-endian The current code in RadeonCopyData blocks the bpp=2 case setting swappiness to RADEON_HOST_DATA_SWAP_1

[PATCH] Remove RADEON_HOST_DATA_SWAP_HDW case from RadeonCopySwap

2016-11-04 Thread Jochen Rollwagen
From ba45efaafc3cf790c44b905d2f6272ef7830b403 Mon Sep 17 00:00:00 2001 From: Jochen Rollwagen Date: Fri, 4 Nov 2016 08:39:30 +0100 Subject: [PATCH] Remove RADEON_HOST_DATA_SWAP_HDW case from RadeonCopySwap RadeonCopySwap is never called with swap=RADEON_HOST_DATA_SWAP_HDW. Remove the case from

[PATCH] drm/amdgpu: remove dummy codes

2016-11-04 Thread Flora Cui
Change-Id: I3238a2520c9161b1c2f9cf176158bdeb9cb21cbb Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 15 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b