drm/amdgpu: Keep track of amount of pinned CPU visible VRAM
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 11 Jul 2018 10:06:31 +0000 (12:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:46:11 +0000 (14:46 -0500)
commitddc21af4d0f37f42b33c54cb69b215997fe5b082
tree2864822395009d0302e5fbfeb355eb47704504e4
parentaa16b6c6b4d979234f830a48add47d02c12bb569
drm/amdgpu: Keep track of amount of pinned CPU visible VRAM

Instead of CPU invisible VRAM. Preparation for the following, no
functional change intended.

v2:
* Also change amdgpu_vram_mgr_bo_invisible_size to
  amdgpu_vram_mgr_bo_visible_size, allowing further simplification
  (Christian König)

Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c