drm/ttm: use gpu mm stats to track gpu memory allocations. (v4)
authorDave Airlie <airlied@redhat.com>
Tue, 24 Feb 2026 02:06:19 +0000 (12:06 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Apr 2026 20:52:47 +0000 (06:52 +1000)
commitae80122f3896c88884841520c983a6e8551da448
tree25b24837f359b072159def4a36e14821d6776d64
parent2232ba9c7931d5c1061f7f4e897b944ea39c3aa9
drm/ttm: use gpu mm stats to track gpu memory allocations. (v4)

This uses the newly introduced per-node gpu tracking stats,
to track GPU memory allocated via TTM and reclaimable memory in
the TTM page pools.

These stats will be useful later for system information and
later when mem cgroups are integrated.

Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_pool.c