diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2026-05-02 09:53:38 +0300 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-05-04 07:05:59 +0300 |
| commit | 84d5d76c4e8e2750fa17869b7272f189d2bdd40b (patch) | |
| tree | 9b18c75d3305421fd94b1db2501a8b7719c93f98 /scripts/decode_stacktrace.sh | |
| parent | 01eb80b767430ae868c48ad106c60eb61a508c85 (diff) | |
| download | linux-84d5d76c4e8e2750fa17869b7272f189d2bdd40b.tar.xz | |
drm/ttm: Fix GPU MM stats during pool shrinking
TTM pool shrinking frees pages by calling __free_pages() directly,
which bypasses updates to NR_GPU_ACTIVE and leaves GPU MM accounting
out of sync.
Introduce a helper, __free_pages_gpu_account(), and use it for all page
frees in ttm_pool.c so GPU MM statistics are updated consistently.
Reported-by: Kenneth Crudup <kenny@panix.com>
Fixes: ae80122f3896 ("drm/ttm: use gpu mm stats to track gpu memory allocations. (v4)")
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: David Airlie <airlied@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Tested-by: Kenneth Crudup <kenny@panix.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20260502065338.2720646-1-matthew.brost@intel.com
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions
