summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMax Zhen <max.zhen@amd.com>2026-03-24 19:31:59 +0300
committerLizhi Hou <lizhi.hou@amd.com>2026-03-25 21:41:24 +0300
commit1f513a3ec3a945efb30c963681ac32ac7b99928b (patch)
tree743f07d8b6fee76db8052a8c057d6cfa4e89cd6f /include/linux/debugobjects.h
parente6fbe345b592731479dc2fa48b0b644820fba34e (diff)
downloadlinux-1f513a3ec3a945efb30c963681ac32ac7b99928b.tar.xz
accel/amdxdna: Add per-process BO memory usage query support
Add support for querying per-process buffer object (BO) memory usage through the amdxdna GET_ARRAY UAPI. Introduce a new query type, DRM_AMDXDNA_BO_USAGE, along with struct amdxdna_drm_bo_usage to report BO memory usage statistics, including heap, total, and internal usage. Track BO memory usage on a per-client basis by maintaining counters in GEM open/close and heap allocation/free paths. This ensures the reported statistics reflect the current memory footprint of each process. Wire the new query into the GET_ARRAY implementation to expose the usage information to userspace. Link: https://github.com/amd/xdna-driver/commit/0546f2aaadbdacf1c3556410ecd71622044cd916 Signed-off-by: Max Zhen <max.zhen@amd.com> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260324163159.2425461-1-lizhi.hou@amd.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions