答复: [PATCH 2/2] drm/amdgpu: use the kernel zone memory size as the max remote memory in amdgpu

2016-08-02 Thread Wang, Ken
Yeah, that's could be an issue, I have changed the logic and send the review again. 发件人: Alex Deucher 发送时间: 2016年8月2日 12:56:07 收件人: Wang, Ken 抄送: amd-gfx list 主题: Re: [PATCH 2/2] drm/amdgpu: use the kernel zone memory size as the max

RE: [PATCH] Add freesync ioctl interface

2016-08-02 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Zhang, Hawking > Sent: Tuesday, August 02, 2016 12:14 AM > To: Michel Dänzer > Cc: amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH] Add freesync ioctl interface > > The kernel branch has

Re: [PATCH 2/2] drm/amdgpu: use the kernel zone memory size as the max remote memory in amdgpu

2016-08-02 Thread Alex Deucher
On Tue, Aug 2, 2016 at 1:19 AM, Ken Wang wrote: > Change-Id: Ibf193cc2d9e20c3aefa1ce8ff24241dfbb6768ff > Signed-off-by: Ken Wang > --- > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 12 +++- >

Re: [PATCH 00/10] GART table recovery

2016-08-02 Thread Christian König
Well you have been hardworking during my vacation :) Looks pretty good to me, but hope that I can get a closer look tomorrow. Is there any particular order the three sets must be applied? Regards, Christian. Am 02.08.2016 um 10:00 schrieb Chunming Zhou: gart table is stored in one bo which

Re: [PATCH 00/10] GART table recovery

2016-08-02 Thread zhoucm1
On 2016年08月02日 23:15, Christian König wrote: Well you have been hardworking during my vacation :) Looks pretty good to me, but hope that I can get a closer look tomorrow. Is there any particular order the three sets must be applied? they are depending on my development order: 1. [PATCH

Re: [PATCH 1/2] drm/ttm: add interface to export kernel_zone max memory size in ttm

2016-08-02 Thread Christian König
Am 02.08.2016 um 06:57 schrieb Alex Deucher: On Wed, Jul 27, 2016 at 7:21 AM, Ken Wang wrote: Change-Id: I9f30b54365492b234a7f0887dd0c67a9817c3705 Signed-off-by: Ken Wang Adding dri-devel as well since ttm is a common component. Reviewed-by:

Re: status of MST ?

2016-08-02 Thread Kenneth Johansson
On 2016-08-01 18:25, Alex Deucher wrote: On Mon, Aug 1, 2016 at 12:17 PM, Kenneth Johansson wrote: On 2016-08-01 17:12, Alex Deucher wrote: On Fri, Jul 29, 2016 at 8:51 AM, Kenneth Johansson wrote: I have a 30" Dell MST monitor and It only uses 30HZ refresh

[PATCH 06/13] drm/amdgpu: implement amdgpu_vm_recover_page_table_from_shadow

2016-08-02 Thread Chunming Zhou
Change-Id: I9957e726576289448911f5fb2ff7bcb9311a1906 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 77 ++ 2 files changed, 79 insertions(+) diff --git

[PATCH 05/13] drm/amdgpu: update pd shadow while updating pd

2016-08-02 Thread Chunming Zhou
Change-Id: Icafa90a6625ea7b5ab3e360ba0d73544cda251b0 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 68 +++--- 2 files changed, 48 insertions(+), 21 deletions(-) diff --git

[PATCH 07/13] drm/amdgpu: link all vm clients

2016-08-02 Thread Chunming Zhou
Add vm client to list tail when creating it, move to head while submit to scheduler. Change-Id: I0625092f918853303a5ee97ea2eac87fb790ed69 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4

[PATCH 11/13] drm/amd: wait neccessary dependency before running job

2016-08-02 Thread Chunming Zhou
Change-Id: Ibcc3558c2330caad1a2edb9902b3f21bd950d19f Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c

[PATCH 00/13] shadow page table support

2016-08-02 Thread Chunming Zhou
Since we cannot make sure VRAM is safe after gpu reset, page table backup is neccessary, shadow page table is sense way to recovery page talbe when gpu reset happens. We need to allocate GTT bo as the shadow of VRAM bo when creating page table, and make them same. After gpu reset, we will need to

[PATCH 11/11] drm/amdgpu: no need fence wait every time

2016-08-02 Thread Chunming Zhou
recover entities have handled very well for each dependency. Change-Id: I70a8d0e2753741c4b54d9e01085d00dd708b5c80 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH 06/11] drm/amdgpu: use all pte rings to recover page table

2016-08-02 Thread Chunming Zhou
Change-Id: Ic74508ec9de0bf1c027313ce9574e6cb8ea9bb1d Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 34 ++ 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 05/11] drm/amdgpu: add vm recover entity

2016-08-02 Thread Chunming Zhou
every vm uses itself recover entity to recovery page table from shadow. Change-Id: I93e37666cb3fb511311c96ff172b6e9ebd337547 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 22 +++---

[PATCH 06/10] drm/amdgpu: make recover_bo_from_shadow be generic

2016-08-02 Thread Chunming Zhou
Change-Id: I74758b9ca84058f3f2db5509822d8aad840d283e Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 40 + drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 48

[PATCH 08/10] drm/amdgpu: recover gart table first when full reset

2016-08-02 Thread Chunming Zhou
Change-Id: Iad7a90646dbb5df930a8ba177ce6bdc48415ff7d Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 03/10] drm/amdgpu: add gart_late_init/fini to gmc V7/8

2016-08-02 Thread Chunming Zhou
Change-Id: I47b132d1ac5ed57f5805f759d5698948c35721ba Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 24 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 24 2 files changed, 40 insertions(+), 8 deletions(-)

[PATCH 09/10] drm/amdgpu: sync gart table before initialization completed

2016-08-02 Thread Chunming Zhou
Since the shadow is in GTT, shadow itslef pte isn't in shadow, We need to do sync before initialization is completed Change-Id: I29b433da6c71fc790a32ef202dd85a72ab6b5787 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +

[PATCH 04/10] drm/amdgpu: abstract amdgpu_bo_create_shadow

2016-08-02 Thread Chunming Zhou
Change-Id: Id0e89f350a05f8668ea00e3fff8c0bd6f3049cec Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 40 -- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 3 +++ 2 files changed, 30 insertions(+), 13 deletions(-) diff

[PATCH 05/10] drm/amdgpu: shadow gart table support

2016-08-02 Thread Chunming Zhou
allocate gart shadow bo, and using shadow bo to backup gart table. Change-Id: Ib2beae9cea1ad1314c57f0fcdcc254816f39b9b2 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 47

[PATCH 02/13] drm/amdgpu: add shadow bo support

2016-08-02 Thread Chunming Zhou
shadow bo is the shadow of a bo, which is always in GTT, which can be used to backup the original bo. Change-Id: Ia27d4225c47ff41d3053eb691276e29fb2d64026 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 +

[PATCH 03/13] drm/amdgpu: set shadow flag for pd/pt bo

2016-08-02 Thread Chunming Zhou
the pd/pt shadow bo will be used to backup page table, when gpu reset happens, we can restore the page table by them. Change-Id: I31eeb581f203d1db0654a48745ef4e64ed40ed9b Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 ++

[PATCH 01/13] drm/amdgpu: irq resume should be immediately after gpu resume

2016-08-02 Thread Chunming Zhou
Change-Id: Icf64bf5964f0ef66c239ab0679d51275cc272699 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 04/13] drm/amdgpu: update shadow pt bo while update pt

2016-08-02 Thread Chunming Zhou
Change-Id: I8245cdad490d2a0b8cf4b9320e53e14db0b6add4 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

[PATCH 04/11] drm/amdgpu: fix vm init error path

2016-08-02 Thread Chunming Zhou
Change-Id: Ie3d5440dc0d2d3a61d8e785ab08b8b91eda223db Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

[PATCH 02/10] drm/amdgpu: implement gart late_init/fini

2016-08-02 Thread Chunming Zhou
add recovery entity to gart. Change-Id: Ieb400c8a731ef25619ea3c0b5198a6e7ce56580e Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 18 ++ 2 files changed, 21 insertions(+) diff