drm/amdgpu: move gtt usage tracking into the gtt manager v2
authorChristian König <christian.koenig@amd.com>
Mon, 7 Aug 2017 15:11:33 +0000 (17:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Aug 2017 19:46:02 +0000 (15:46 -0400)
commit9255d77d8cfd714f336a48168a9dada32912b19a
treeeb0455a12dcb2c2c04c5ee1012be5308c6954b05
parent97cbb28451c21212cc20f2a5e6c074ba33150c3d
drm/amdgpu: move gtt usage tracking into the gtt manager v2

It doesn't make much sense to count those numbers twice.

v2: use and atomic64_t instead

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h