]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Update BO memory accounting to rely on allocation flag
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Tue, 9 Nov 2021 05:37:27 +0000 (23:37 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:01 +0000 (14:45 -0500)
commitf757bc356ba19478b3bae10778fbb2e38d11ac85
treec63d30014048e6d95352a77fed16cea31ac75afd
parent6e52c7bd333ba274e38ab41b4121c1c4b12e6d63
drm/amdgpu: Update BO memory accounting to rely on allocation flag

Accounting system to track amount of available memory (system, TTM
and VRAM of a device) relies on BO's domain. The change is to rely
instead on allocation flag indicating BO type - VRAM, GTT, USERPTR,
MMIO or DOORBELL

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c