[PATCH 3/4] drm/amd/powerplay: refine powerplay code for RV

2017-09-04 Thread Rex Zhu
use function points instand of function table. Change-Id: Ic3a4fc1492dcb33884c32a70ec9b2013b412d52a Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 137 ++--- 1 file changed, 33 insertions(+), 104 deletions(-) diff --git a/drivers/gpu/drm/amd/powe

[PATCH 1/4] drm/amd/powerplay: refine code for thermal control in powerplay

2017-09-04 Thread Rex Zhu
add function point start_thermal_controller in hwmgr, delete thermal function table and related functions Change-Id: I61db5b7e37d75fdc55acd570369ca833b5346d01 Signed-off-by: Rex Zhu --- .../gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 6 +- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c

[PATCH 4/4] drm/amd/powerplay: delete dead code in powerplay

2017-09-04 Thread Rex Zhu
delete functiontable related codes Change-Id: If4bba21beaf3e7fe100eb80def28f83f3b8ef077 Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 3 +- .../gpu/drm/amd/powerplay/hwmgr/functiontables.c | 161 --

[PATCH 2/4] drm/amd/powerplay: refine powerplay code for CZ/ST

2017-09-04 Thread Rex Zhu
1. add function points instand of creat function tables 2. implement stop dpm tasks for CZ/ST Change-Id: Ibe6fc92b989ba125da34857ce8b056e8b699b41b Signed-off-by: Rex Zhu --- .../drm/amd/powerplay/hwmgr/cz_clockpowergating.c | 30 -- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 377

Re: [PATCH libdrm] libdrm_amdgpu: add kernel semaphore support

2017-09-04 Thread Dave Airlie
On 5 September 2017 at 05:23, Marek Olšák wrote: > On Fri, Sep 1, 2017 at 5:36 PM, Marek Olšák wrote: >> On Thu, Jul 6, 2017 at 3:17 AM, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> This adds kernel semaphore support to the command submission >>> interface in what should be a backwards comp

Re: [PATCH libdrm] libdrm_amdgpu: add kernel semaphore support

2017-09-04 Thread Dave Airlie
On 2 September 2017 at 01:36, Marek Olšák wrote: > On Thu, Jul 6, 2017 at 3:17 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This adds kernel semaphore support to the command submission >> interface in what should be a backwards compatible manner, >> it adds a new command submission API. >>

Re: [PATCH libdrm] libdrm_amdgpu: add kernel semaphore support

2017-09-04 Thread Marek Olšák
On Fri, Sep 1, 2017 at 5:36 PM, Marek Olšák wrote: > On Thu, Jul 6, 2017 at 3:17 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This adds kernel semaphore support to the command submission >> interface in what should be a backwards compatible manner, >> it adds a new command submission API. >

[PATCH 2/2] drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more

2017-09-04 Thread Christian König
From: Christian König With shared reservation objects __ttm_bo_reserve() can easily fail even on destroyed BOs. This prevents correct handling when we need to individualize the reservation object. Fix this by individualizing the object before even trying to reserve it. Signed-off-by: Christian

[PATCH 1/2] dma-buf: make reservation_object_copy_fences rcu save

2017-09-04 Thread Christian König
From: Christian König Stop requiring that the src reservation object is locked for this operation. Signed-off-by: Christian König --- drivers/dma-buf/reservation.c | 56 --- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/drivers/dma-buf/

Re: [PATCH] dma-fence: fix dma_fence_get_rcu_safe

2017-09-04 Thread Christian König
I really wonder what's wrong with my mail client, but it looks like this patch never made it at least to dri-devel. Forwarding manually now, Christian. Am 04.09.2017 um 15:16 schrieb Christian König: From: Christian König The logic is buggy and unnecessary complex. When dma_fence_get_rcu() f

[PATCH] dma-fence: fix dma_fence_get_rcu_safe

2017-09-04 Thread Christian König
From: Christian König The logic is buggy and unnecessary complex. When dma_fence_get_rcu() fails to acquire a reference it doesn't necessary mean that there is no fence at all. It usually mean that the fence was replaced by a new one and in this situation we certainly want to have the new one as

[PATCH] drm/amdgpu: include percpu.h to fix SPARC build

2017-09-04 Thread Oded Gabbay
Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h index 8d689ab7e429..20bf9054e64e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_am