[PATCH 0/3] rename file name.

2016-09-12 Thread Rex Zhu
As tonga/fiji/polaris10/11 use ppt table version 1. so rename tonga_processtable to process_pptables_v1_0 Rex Zhu (3): drm/amd/powerplay: rename tonga_processpptable* to processpptable_v1_0*. drm/amd/powerplay: add pp_table_version in hwmgr. drm/amd/powerplay: add pptable point check b

[PATCH 2/3] drm/amd/powerplay: add pp_table_version in hwmgr.

2016-09-12 Thread Rex Zhu
Change-Id: Iee3c7ab9c1318ec7206bf5a5ae59d8c48b8e823b Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 1 + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 8 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmg

[PATCH 3/3] drm/amd/powerplay: add pptable point check before use it

2016-09-12 Thread Rex Zhu
Change-Id: Ibad281cd7fd660abe612894df82be284c9b865a9 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay

Re: [PATCH 0/3] rename file name.

2016-09-12 Thread Edward O'Callaghan
This series is, Reviewed-by: Edward O'Callaghan On 09/12/2016 06:22 PM, Rex Zhu wrote: > As tonga/fiji/polaris10/11 use ppt table version 1. > so rename tonga_processtable to process_pptables_v1_0 > > > Rex Zhu (3): > drm/amd/powerplay: rename tonga_processpptable* to > processpptable_v1

[PATCH v2 00/16] powerplay code refactoring.

2016-09-12 Thread Rex Zhu
v2: 1. move out ppt renamed patches. 2. wrap ppt version related functions in smu7_hwmgr.c implement smu7_hwmgr smu7_smumgr to manager asics with smu version 7. add delete duplicated code. There are subtle differences in firmware image between different asics, add asic_name_smc.c under smumgr

[PATCH v2 01/16] drm/amd/powerplay: add common interface in smumgr to help to visit fw image.

2016-09-12 Thread Rex Zhu
Change-Id: I2ea5b1dc70883e8656fe0b1fd7a2b9a9c4ddcb27 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h| 69 ++ drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 101 +- 2 files changed, 169 insertions(+), 1

[PATCH v2 03/16] drm/amd/powerplay: implement fw image related smum interface for Polaris.

2016-09-12 Thread Rex Zhu
Change-Id: I22767dc03fcec497e5cd76e82459916abf130105 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/Makefile |2 +- .../gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 2284 .../gpu/drm/amd/powerplay/smumgr/polaris10_smc.h

[PATCH v2 06/16] drm/amd/powerplay: use smu7 hwmgr to manager fiji

2016-09-12 Thread Rex Zhu
Reviewed-by: Alex Deucher Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 3 +-- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 25 +++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/Makefile b

[PATCH v2 05/16] drm/amd/powerplay: implement fw image related smu interface for Fiji.

2016-09-12 Thread Rex Zhu
Change-Id: I1bab73135461c289264b14972fbf15eb424734ee Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/Makefile |2 +- drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c| 2371 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.h

[PATCH v2 08/16] drm/amd/powerplay: use smu7_hwmgr to manager tonga.

2016-09-12 Thread Rex Zhu
Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 30 +--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/Makefil

[PATCH v2 04/16] drm/amd/powerplay: use smu7 hwmgr to manager polaris10/11

2016-09-12 Thread Rex Zhu
Change-Id: Ia3dae5b7ef0889acd9479f83d5f3b8a91786f4bf Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 2 -- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 35 ++-- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h| 1 + 3 f

[PATCH v2 11/16] drm/amd/powerplay: use smu7 common functions and data on Polars10.

2016-09-12 Thread Rex Zhu
Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- .../gpu/drm/amd/powerplay/inc/polaris10_pwrvirus.h | 3 +- .../gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 81 +-- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c| 681 ++--- .../drm/amd/powerplay/smumgr/polaris10_s

[PATCH v2 10/16] drm/amd/powerplay: use smu7 common functions and data on Tonga.

2016-09-12 Thread Rex Zhu
Change-Id: If9ca14557f99f3e13e17086e8c0a90c53f232631 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c | 74 +-- .../gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c| 657 + .../gpu/drm/amd/powerplay/smumgr/tonga_smumgr.h

[PATCH v2 14/16] drm/amd/powerplay: implement fw related smu interface for iceland.

2016-09-12 Thread Rex Zhu
Change-Id: Ic5b83029c4e326ef4e02ee341ba8b1109d17328b Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- .../drm/amd/powerplay/hwmgr/iceland_powertune.h| 14 - drivers/gpu/drm/amd/powerplay/smumgr/Makefile |5 +- drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c | 2577 +

[PATCH v2 15/16] drm/amd/powerplay: use smu7 hwmgr to manager iceland

2016-09-12 Thread Rex Zhu
Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/Makefile | 4 +--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 36 +--- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/Makefi

[PATCH v2 12/16] drm/amd/powerplay: use smu7 common functions and data on Fiji.

2016-09-12 Thread Rex Zhu
Change-Id: Ie63ee99aa515e37943aee726103260819c9e2913 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c| 69 +-- drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c | 605 + drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr

[PATCH v2 13/16] drm/amd/powerplay: use smu7 common functions and data on icelannd.

2016-09-12 Thread Rex Zhu
Change-Id: I8144e52141f7e6a49a18be3523540a6edd898ec0 Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- .../gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c| 50 +- .../drm/amd/powerplay/hwmgr/iceland_powertune.c| 6 +- .../gpu/drm/amd/powerplay/hwmgr/iceland_thermal.c | 2 +- .../gpu

[PATCH v2 09/16] drm/amd/powerplay: implement smu7_smumgr for asics with smu ip version 7.

2016-09-12 Thread Rex Zhu
Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/inc/smumgr.h | 1 + drivers/gpu/drm/amd/powerplay/smumgr/Makefile | 2 +- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 589 + drivers/gpu/drm/amd/powerplay/smumgr/smu7_

Re: [PATCH] drm/amdgpu: move some release handles into fail labels

2016-09-12 Thread Christian König
Am 12.09.2016 um 04:16 schrieb Huang Rui: Clean up the codes to move the release handles into fail labels. Signed-off-by: Huang Rui Reviewed-by: Christian König . --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-)

Re: [PATCH 0/3] rename file name.

2016-09-12 Thread Christian König
Am 12.09.2016 um 10:36 schrieb Edward O'Callaghan: This series is, Reviewed-by: Edward O'Callaghan Acked-by: Christian König for the series. On 09/12/2016 06:22 PM, Rex Zhu wrote: As tonga/fiji/polaris10/11 use ppt table version 1. so rename tonga_processtable to process_pptables_v1_0 R

Re: [PATCH v2 00/16] powerplay code refactoring.

2016-09-12 Thread Christian König
A few coding style issues, but nothing major. Taking patch #7 as an example, but most of this applies to the rest as well: +/*sviLoadLIneEn, SviLoadLineVddC, TDC_VDDC_ThrottleReleaseLimitPerc, TDC_MAWt, TdcWaterfallCtl, DTEAmbientTempBase, DisplayCac, BAPM_TEMP_GRADIENT */ That line looks t

[PATCH 5/6] drm/amdgpu: use expolicit limit fro VRAM<->GTT moves

2016-09-12 Thread Christian König
From: Christian König Use an explicit limit when moving things around to force address space allocation. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b

[PATCH 3/6] drm/amdgpu: unbind GTT only when it is bound

2016-09-12 Thread Christian König
From: Christian König Doesn't make much sense to clear the GTT when it was never filled. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 4/6] drm/amdgpu: use explicit GTT limit for evictions

2016-09-12 Thread Christian König
From: Christian König This way the address space gets allocated immediately. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/g

[PATCH 6/6] drm/amdgpu: add a custom GTT memory manager v2

2016-09-12 Thread Christian König
From: Christian König Only allocate address space when we really need it. v2: fix a typo, add correct function description, stop leaking the node in the error case. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_c

[PATCH 2/6] drm/amdgpu: add AMDGPU_BO_INVALID_OFFSET

2016-09-12 Thread Christian König
From: Christian König An invalid offset to be used by custom VRAM/GGT manager when we don't have an offset for an BO. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 ++ 2 files changed, 3 insertions(+) diff -

[PATCH 1/6] drm/amdgpu: validate size and offset of user fence BO

2016-09-12 Thread Christian König
From: Christian König We need to validate the offset to make sure that we don't write after the BO. Additional to that a page should be enough and can make address space handling much easier. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 ++ 1 file changed,

Re: [PATCH 3/3] drm/amdgpu: add a custom GTT memory manager

2016-09-12 Thread Christian König
Would it make sense to free the GTT address space in amdgpu_ttm_unbind? No, when amdgpu_ttm_unbind() is called the address space is about to be freed anyway. Currently any migration of VRAM to GTT would allocate GTT address space and never free that space until the BO is destroyed. But you cou

[PATCH 4/4] amdgpu: cs_wait_fences now can return the first signaled fence index

2016-09-12 Thread Alex Deucher
From: "monk.liu" Change-Id: Idf3d3bf0f2d2396a77341f97174d0a173fdd8932 Signed-off-by: monk.liu --- amdgpu/amdgpu.h| 3 ++- amdgpu/amdgpu_cs.c | 12 +--- include/drm/amdgpu_drm.h | 3 ++- tests/amdgpu/basic_tests.c | 2 +- 4 files changed, 14 insertions(+), 6 dele

[PATCH 3/4] amdgpu/tests: add multi-fence test in base test

2016-09-12 Thread Alex Deucher
From: Junwei Zhang Signed-off-by: Junwei Zhang Reviewed-by: Jammy Zhou --- tests/amdgpu/basic_tests.c | 100 + 1 file changed, 100 insertions(+) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 11f6a63..5144e03 100644 --- a

[PATCH 2/4] amdgpu: add the interface of waiting multiple fences

2016-09-12 Thread Alex Deucher
From: Junwei Zhang Signed-off-by: Junwei Zhang Reviewed-by: Christian König Reviewed-by: Jammy Zhou --- amdgpu/amdgpu.h | 22 +++ amdgpu/amdgpu_cs.c | 72 include/drm/amdgpu_drm.h | 27 ++ 3 files chan

[PATCH 1/4] amdgpu: add the function to get the marketing name (v2)

2016-09-12 Thread Alex Deucher
From: Junwei Zhang This function is used to look up the marking name for a specific board. v2: agd: Squash in subsequent updates to the table. Signed-off-by: Junwei Zhang Reviewed-by: Flora Cui --- amdgpu/amdgpu.h | 10 +++ amdgpu/amdgpu_asic_id.h | 170 +

use-after-free in libdrm

2016-09-12 Thread StDenis, Tom
Attached image of scan-view's report. Basically the variable "sem" is free'ed but then used as sem->next in the for loop. Should use safe version of macro. Tom ___ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailm

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

2016-09-12 Thread Alex Deucher
From: Junwei Zhang v2: agd: rebase and squash in all the previous optimizations and changes so everything compiles. Signed-off-by: Junwei Zhang Reviewed-by: Monk Liu Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 171 +++

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

2016-09-12 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 Signed-off-by: Junwei Zhang Reviewed-by: Monk Liu Reviewed-by: Jammy Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 + drivers/gpu

[PATCH] drm/amdgpu: improve GTT BO alloc speed in OGL

2016-09-12 Thread Alex Deucher
From: "monk.liu" original we use ttm_dma path to allocate GTT bo, which is too much slower than the path of ttm_pool, in most cases. The swiotlb checks don't seem to work and we always end up in the slow path even when an IOMMU is available. Signed-off-by: monk.liu Reviewed-by: Jammy Zhou Sig

[PATCH] drm/amdgpu: Avoid use-after-free

2016-09-12 Thread Tom St Denis
Switch to _SAFE variant of list macro to avoid use-after-free bug. Signed-off-by: Tom St Denis --- amdgpu/amdgpu_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c index fb5b3a8c4bc4..cd92a0957293 100644 --- a/amdgpu/amdgpu_cs.c +

Re: [PATCH] drm/amdgpu: Avoid use-after-free

2016-09-12 Thread Christian König
Am 12.09.2016 um 20:18 schrieb Tom St Denis: Switch to _SAFE variant of list macro to avoid use-after-free bug. Signed-off-by: Tom St Denis --- amdgpu/amdgpu_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c index fb5b3a8c4bc

Re: [PATCH] drm/amdgpu: improve GTT BO alloc speed in OGL

2016-09-12 Thread Christian König
Am 12.09.2016 um 18:44 schrieb Alex Deucher: From: "monk.liu" original we use ttm_dma path to allocate GTT bo, which is too much slower than the path of ttm_pool, in most cases. The swiotlb checks don't seem to work and we always end up in the slow path even when an IOMMU is available. While

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

2016-09-12 Thread Bas Nieuwenhuizen
Seems like this is missing the update corresponding to libdrm patch "amdgpu: cs_wait_fences now can return the first signaled fence index". Is the kernel patch for that update also available or going to be sent to the list? Yours sincerely, Bas Nieuwenhuizen On Mon, Sep 12, 2016 at 6:40 PM, Alex

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

2016-09-12 Thread Christian König
Yeah, we added that later on. Looks like Alex (or somebody else) squashed the original and follow up patch for libdrm together, but forgot to do so for the kernel side. Just wait a moment, if Alex can't find that of hand I'm going to take a look through the branches tomorrow. Regards, Chris

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

2016-09-12 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Christian König > Sent: Monday, September 12, 2016 2:46 PM > To: Bas Nieuwenhuizen; Alex Deucher > Cc: Zhang, Jerry; amd-gfx@lists.freedesktop.org > Subject: Re: [PATCH] drm/amdgpu: add the in

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

2016-09-12 Thread Alex Deucher
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 --- drivers/dma-buf/fence.c | 19 ++- include/linux/fence.h | 2 +- 2 files changed, 15 insertions(+), 6

[PATCH 2/2] drm/amdgpu: return first signaled fence index in status parameter

2016-09-12 Thread Alex Deucher
From: "monk.liu" Return the index of the first signaled fence in the fences ioctl. This information is useful in some APIs like Vulkan. Signed-off-by: monk.liu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 2 +- inclu

Re: [PATCH] drm/amdgpu: improve GTT BO alloc speed in OGL

2016-09-12 Thread Alex Deucher
On Mon, Sep 12, 2016 at 2:26 PM, Christian König wrote: > Am 12.09.2016 um 18:44 schrieb Alex Deucher: >> >> From: "monk.liu" >> >> original we use ttm_dma path to allocate GTT bo, which is too much >> slower than the path of ttm_pool, in most cases. >> >> The swiotlb checks don't seem to work an

[PATCH 1/2] drm/amdgpu/vi: expose CB chicken bit registers via read reg interface

2016-09-12 Thread Alex Deucher
Useful for validating certain tests involving the CB where the chicken bit status may have an affect on the results. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgp

[PATCH 2/2] drm/amdgpu/cik: expose CB chicken bit registers via read reg interface

2016-09-12 Thread Alex Deucher
Useful for validating certain tests involving the CB where the chicken bit status may have an affect on the results. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/cik.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amd

Re: [PATCH 5/6] drm/amdgpu: use expolicit limit fro VRAM<->GTT moves

2016-09-12 Thread Alex Deucher
On Mon, Sep 12, 2016 at 10:39 AM, Christian König wrote: > From: Christian König > > Use an explicit limit when moving things around to > force address space allocation. > > Signed-off-by: Christian König Typo in the patch title: s/expolicit/explicit/ With that fixed: Reviewed-by: Alex Deucher

Re: [PATCH 6/6] drm/amdgpu: add a custom GTT memory manager v2

2016-09-12 Thread Alex Deucher
On Mon, Sep 12, 2016 at 10:39 AM, Christian König wrote: > From: Christian König > > Only allocate address space when we really need it. > > v2: fix a typo, add correct function description, > stop leaking the node in the error case. > > Signed-off-by: Christian König Other than the comment

Re: [PATCH 6/6] drm/amdgpu: add a custom GTT memory manager v2

2016-09-12 Thread Felix Kuehling
The comment header on top of amdgpu_gtt_mgr.c should say "Copyright 2016" (wrong year). With that fixed, this patch is Reviewed-by: Felix Kuehling . Regards, Felix On 16-09-12 10:39 AM, Christian König wrote: > From: Christian König > > Only allocate address space when we really need it. > >

Re: [PATCH 5/7] drm/amdkfd: Remove duplicate pqm_uninit()

2016-09-12 Thread Felix Kuehling
Yong is currently working on a follow-up fix to handle process shutdown on APUs as well as S3 suspend correctly. Regards, Felix On 16-09-10 12:06 PM, Oded Gabbay wrote: > On Sat, Sep 10, 2016 at 4:31 AM, Edward O'Callaghan > wrote: >> pqm_uninit() will be called in kfd_process_notifier_releas

Re: [PATCH 3/3] drm/amdgpu: add vce bypass mode for tonga.

2016-09-12 Thread Andy Furniss
This regresses vce perf badly on tonga https://bugs.freedesktop.org/show_bug.cgi?id=97494 Maybe I need a better test case or faster cpu or something, but vce powerplay encode issues disappeared for me with the latest firmware. root wrote: From: Rex Zhu fix issue that encode test failed on th

Re: [PATCH] drm/amdgpu: improve GTT BO alloc speed in OGL

2016-09-12 Thread Michel Dänzer
On 13/09/16 01:44 AM, Alex Deucher wrote: > From: "monk.liu" > > original we use ttm_dma path to allocate GTT bo, which is too much > slower than the path of ttm_pool, in most cases. > > The swiotlb checks don't seem to work and we always end up in the > slow path even when an IOMMU is available

Re: [PATCH 5/6] drm/amdgpu: use expolicit limit fro VRAM<->GTT moves

2016-09-12 Thread Michel Dänzer
On 13/09/16 06:05 AM, Alex Deucher wrote: > On Mon, Sep 12, 2016 at 10:39 AM, Christian König > wrote: >> From: Christian König >> >> Use an explicit limit when moving things around to >> force address space allocation. >> >> Signed-off-by: Christian König > > Typo in the patch title: > s/expol

Re: [PATCH] drm/amdgpu: improve GTT BO alloc speed in OGL

2016-09-12 Thread Alex Deucher
On Mon, Sep 12, 2016 at 9:17 PM, Michel Dänzer wrote: > On 13/09/16 01:44 AM, Alex Deucher wrote: >> From: "monk.liu" >> >> original we use ttm_dma path to allocate GTT bo, which is too much >> slower than the path of ttm_pool, in most cases. >> >> The swiotlb checks don't seem to work and we alw

[PATCH 2/2] drm/amdgpu/si/dpm: fix symbol conflicts with radeon

2016-09-12 Thread Alex Deucher
Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 287 +++--- drivers/gpu/drm/amd/amdgpu/si_smc.c | 37 ++-- drivers/gpu/drm/amd/amdgpu/sislands_smc.h | 30 ++-- 3 files changed, 181 insertions(+), 173 deletions(-) diff --git a/drivers/gp

[PATCH 1/2] drm/amdgpu/si/dpm: make a bunch of things static

2016-09-12 Thread Alex Deucher
remnants of the port from radeon. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c index e4f7c10.

Re: [PATCH 1/2] drm/amdgpu/si/dpm: make a bunch of things static

2016-09-12 Thread Edward O'Callaghan
Patches 1&2 are, Reviewed-by: Edward O'Callaghan On 09/13/2016 02:11 PM, Alex Deucher wrote: > remnants of the port from radeon. > > Signed-off-by: Alex Deucher > --- > drivers/gpu/drm/amd/amdgpu/si_dpm.c | 34 -- > 1 file changed, 16 insertions(+), 18 deletions

[PATCH] drm/amdgpu: add VCE VM mode support

2016-09-12 Thread Alex Deucher
From: Maruthi Srinivas Bayyavarapu This adds VCE VM mode support from Stoney onwards. Session tracking is an open issue, yet to be supported. v2: Fixed warnings from checkpatch.pl Signed-off-by: Maruthi Bayyavarapu Reviewed-by: Christian König Signed-off-by: Alex Deucher --- drivers/gpu/drm