drm/amdgpu: remove GTT accounting v2
authorChristian König <christian.koenig@amd.com>
Mon, 12 Jul 2021 13:18:05 +0000 (15:18 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 14 Feb 2022 14:05:39 +0000 (15:05 +0100)
commitdfa714b88eb0a9d763eba9e5720b089a58dc9496
tree59bcceb80d210498e0b1bd35957dddfef4ad7021
parent73792e6e66be1225837cc1a40f1e39b1d077751c
drm/amdgpu: remove GTT accounting v2

This is provided by TTM now.

Also switch man->size to bytes instead of pages and fix the double
printing of size and usage in debugfs.

v2: fix size checking as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214093439.2989-6-christian.koenig@amd.com
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