OSDN Git Service

drm/ttm: add common accounting to the resource mgr v3
authorChristian König <christian.koenig@amd.com>
Mon, 12 Jul 2021 12:05:01 +0000 (14:05 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 14 Feb 2022 13:35:09 +0000 (14:35 +0100)
commit0e05fc49c358cb49e59ce8d6ecda652951335e1e
tree2535200218c28feedf74b59f9e5f0270aa55728b
parent90d4aa20c8cc76f5baecd423b5dc289b899ebc42
drm/ttm: add common accounting to the resource mgr v3

It makes sense to have this in the common manager for debugging and
accounting of how much resources are used.

v2: cleanup kerneldoc a bit
v3: drop the atomic, update counter under lock instead

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com> (v1)
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214093439.2989-2-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_resource.c
include/drm/ttm/ttm_resource.h