]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: move the VRAM lost counter per context
authorChristian König <christian.koenig@amd.com>
Mon, 9 Oct 2017 13:18:43 +0000 (15:18 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:04 +0000 (15:27 -0400)
commitb4a1de9210d7dad7a2d94d2128767e0589247118
treede65b871c6ad10ddfc97a9b74b953d46b72e27f1
parenta2c0677020c0e2f7654abfe9b6c63764998d8dcc
drm/amdgpu: move the VRAM lost counter per context

Instead of per device track the VRAM lost per context and return ECANCELED
instead of ENODEV.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c