]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Adjust page count tracepoints in shrinker
authorMatthew Brost <matthew.brost@intel.com>
Wed, 7 Jan 2026 20:57:32 +0000 (12:57 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 8 Jan 2026 05:29:38 +0000 (21:29 -0800)
commitcc54eabdfbf0c5b6638edc50002cfafac1f1e18b
treeb051a1271d2686338133021a067b25279da2f628
parent3f0e3af4688deb797232c6ef7b45147601d9000d
drm/xe: Adjust page count tracepoints in shrinker

Page accounting can change via the shrinker without calling
xe_ttm_tt_unpopulate(), which normally updates page count tracepoints
through update_global_total_pages. Add a call to
update_global_total_pages when the shrinker successfully shrinks a BO.

v2:
 - Don't adjust global accounting when pinning (Stuart)

Cc: stable@vger.kernel.org
Fixes: ce3d39fae3d3 ("drm/xe/bo: add GPU memory trace points")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://patch.msgid.link/20260107205732.2267541-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_bo.c