]> 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)
commit8f7e6e7c5c38f1c50fb24aa40a92fd36008cae7a
treede65b871c6ad10ddfc97a9b74b953d46b72e27f1
parent97bbeca0cfcbb2a06e2f5f0f2cd84a1afc3173af
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