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

2017-05-17 Thread Zhou, David(ChunMing)
<deathsim...@vodafone.de> Cc: Zhou, David(ChunMing) <david1.z...@amd.com>; Michel Dänzer <mic...@daenzer.net>; amd-gfx mailing list <amd-gfx@lists.freedesktop.org> Subject: Re: [PATCH 4/4] drm/amdgpu: reset fpriv vram_lost_counter David, We already have a query that

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

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

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日

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:

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

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

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:

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

2017-05-17 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:

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 ---

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

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

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(+) > >

[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