]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/buddy: add some pretty printing
authorMatthew Auld <matthew.auld@intel.com>
Thu, 19 Aug 2021 09:34:18 +0000 (10:34 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 20 Aug 2021 08:40:22 +0000 (09:40 +0100)
commit5359b745146aa596026addffd7843e1735db7bbd
tree67f332c02f99df8157331091556b01a3297f1d85
parentc9b6e94963bc3a53110f1c9cd7e5e4ae571413cd
drm/i915/buddy: add some pretty printing

Implement the debug hook for the buddy resource manager. For this we
want to print out the status of the memory manager, including how much
memory is still allocatable, what page sizes we have etc. This will be
triggered when TTM is unable to fulfil an allocation request for device
local-memory.

v2(Thomas):
    - s/MB/MiB
    - s/KB/KiB

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210819093419.295636-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_buddy.c
drivers/gpu/drm/i915/i915_buddy.h
drivers/gpu/drm/i915/i915_ttm_buddy_manager.c