Commit 8523f887 authored by Christian König's avatar Christian König

drm/amdgpu: improve amdgpu_gem_info debugfs file

Note if a buffer was imported using peer2peer.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/359296
parent f44ffd67
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/dma-buf.h>
#include <drm/amdgpu_drm.h> #include <drm/amdgpu_drm.h>
#include <drm/drm_debugfs.h> #include <drm/drm_debugfs.h>
...@@ -854,7 +855,8 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) ...@@ -854,7 +855,8 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data)
attachment = READ_ONCE(bo->tbo.base.import_attach); attachment = READ_ONCE(bo->tbo.base.import_attach);
if (attachment) if (attachment)
seq_printf(m, " imported from %p", dma_buf); seq_printf(m, " imported from %p%s", dma_buf,
attachment->peer2peer ? " P2P" : "");
else if (dma_buf) else if (dma_buf)
seq_printf(m, " exported as %p", dma_buf); seq_printf(m, " exported as %p", dma_buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment