OSDN Git Service

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)
commite55f2b646df3318e24f12b8388ab6e5cccb3e92d
treede65b871c6ad10ddfc97a9b74b953d46b72e27f1
parent14e47f93c5cc4a1237dbacc137e174706093b69c
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