RE: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Zhou, David(ChunMing)
König Cc: Zhou, David(ChunMing) ; Michel Dänzer ; amd-gfx mailing list Subject: Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter David, We already have a query that returns whether a device is lost. It's called amdgpu_cs_query_reset_state. That should return whether a hang was c

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Marek Olšák
David, We already have a query that returns whether a device is lost. It's called amdgpu_cs_query_reset_state. That should return whether a hang was caused by a certain context or whether the hang happened but the context is innocent. You can extend it to accept no context, in which case it will r

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Christian König
Am 17.05.2017 um 10:46 schrieb zhoucm1: On 2017年05月17日 16:40, Christian König wrote: Am 17.05.2017 um 10:01 schrieb Michel Dänzer: On 17/05/17 04:13 PM, zhoucm1 wrote: On 2017年05月17日 14:57, Michel Dänzer wrote: On 17/05/17 01:28 PM, zhoucm1 wrote: On 2017年05月17日 11:15, Michel Dänzer wrote:

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Michel Dänzer
On 17/05/17 05:46 PM, zhoucm1 wrote: > > > On 2017年05月17日 16:40, Christian König wrote: >> Am 17.05.2017 um 10:01 schrieb Michel Dänzer: >>> On 17/05/17 04:13 PM, zhoucm1 wrote: On 2017年05月17日 14:57, Michel Dänzer wrote: > On 17/05/17 01:28 PM, zhoucm1 wrote: >> On 2017年05月17日 11:15,

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread zhoucm1
On 2017年05月17日 16:40, Christian König wrote: Am 17.05.2017 um 10:01 schrieb Michel Dänzer: On 17/05/17 04:13 PM, zhoucm1 wrote: On 2017年05月17日 14:57, Michel Dänzer wrote: On 17/05/17 01:28 PM, zhoucm1 wrote: On 2017年05月17日 11:15, Michel Dänzer wrote: On 17/05/17 12:04 PM, zhoucm1 wrote: O

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Christian König
Am 17.05.2017 um 10:01 schrieb Michel Dänzer: On 17/05/17 04:13 PM, zhoucm1 wrote: On 2017年05月17日 14:57, Michel Dänzer wrote: On 17/05/17 01:28 PM, zhoucm1 wrote: On 2017年05月17日 11:15, Michel Dänzer wrote: On 17/05/17 12:04 PM, zhoucm1 wrote: On 2017年05月17日 09:18, Michel Dänzer wrote: On 16

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread Michel Dänzer
On 17/05/17 04:13 PM, zhoucm1 wrote: > On 2017年05月17日 14:57, Michel Dänzer wrote: >> On 17/05/17 01:28 PM, zhoucm1 wrote: >>> On 2017年05月17日 11:15, Michel Dänzer wrote: On 17/05/17 12:04 PM, zhoucm1 wrote: > On 2017年05月17日 09:18, Michel Dänzer wrote: >> On 16/05/17 06:25 PM, Chunming Z

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-17 Thread zhoucm1
On 2017年05月17日 14:57, Michel Dänzer wrote: On 17/05/17 01:28 PM, zhoucm1 wrote: On 2017年05月17日 11:15, Michel Dänzer wrote: On 17/05/17 12:04 PM, zhoucm1 wrote: On 2017年05月17日 09:18, Michel Dänzer wrote: On 16/05/17 06:25 PM, Chunming Zhou wrote: Change-Id: I8eb6d7f558da05510e429d3bf1d48c8c

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread Michel Dänzer
On 17/05/17 01:28 PM, zhoucm1 wrote: > On 2017年05月17日 11:15, Michel Dänzer wrote: >> On 17/05/17 12:04 PM, zhoucm1 wrote: >>> On 2017年05月17日 09:18, Michel Dänzer wrote: On 16/05/17 06:25 PM, Chunming Zhou wrote: > Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 > Signed-off-by: Ch

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread zhoucm1
On 2017年05月17日 11:15, Michel Dänzer wrote: On 17/05/17 12:04 PM, zhoucm1 wrote: On 2017年05月17日 09:18, Michel Dänzer wrote: On 16/05/17 06:25 PM, Chunming Zhou wrote: Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread Michel Dänzer
On 17/05/17 12:04 PM, zhoucm1 wrote: > On 2017年05月17日 09:18, Michel Dänzer wrote: >> On 16/05/17 06:25 PM, Chunming Zhou wrote: >>> Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 >>> Signed-off-by: Chunming Zhou >>> --- >>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ >>> include/uapi/

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread zhoucm1
On 2017年05月17日 09:18, Michel Dänzer wrote: On 16/05/17 06:25 PM, Chunming Zhou wrote: Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ include/uapi/drm/amdgpu_drm.h | 1 + 2 files changed, 4 inse

Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread Michel Dänzer
On 16/05/17 06:25 PM, Chunming Zhou wrote: > Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 > Signed-off-by: Chunming Zhou > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ > include/uapi/drm/amdgpu_drm.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu

[PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter

2017-05-16 Thread Chunming Zhou
Change-Id: I8eb6d7f558da05510e429d3bf1d48c8cec6c1977 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +++ include/uapi/drm/amdgpu_drm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/a