drm/amdgpu: print DMA-buf status in debugfs
Subsystems (2)
PATCH 1/1 drm/amdgpu: print DMA-buf status in debugfs
Just note if a BO was imported/exported.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +11 -0
@@ -765,6 +765,8 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data)struct amdgpu_bo *bo =gem_to_amdgpu_bo (gobj);struct seq_file *m = data; +struct dma_buf_attachment *attachment; +struct dma_buf *dma_buf;unsigned domain;const char *placement;unsigned pin_count;
@@ -793,6 +795,15 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) pin_count =READ_ONCE (bo->pin_count);if (pin_count)seq_printf (m," pin count %d" , pin_count); + + dma_buf =READ_ONCE (bo->gem_base.dma_buf); + attachment =READ_ONCE (bo->gem_base.import_attach); + +if (attachment) +seq_printf (m," imported from %p" , dma_buf); +else if (dma_buf) +seq_printf (m," exported as %p" , dma_buf); +seq_printf (m,"\n" );return 0 ;
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180411130959.1690-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Ping? Could anybody review that?
Thanks,
Christian.
Am 11.04.2018 um 15:09 schrieb Christian König:
Quoted 26 lines
Just note if a BO was imported/exported.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +4
-0@@ -765,6 +765,8 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data)struct amdgpu_bo *bo =gem_to_amdgpu_bo (gobj);struct seq_file *m = data; +struct dma_buf_attachment *attachment; +struct dma_buf *dma_buf;unsigned domain;const char *placement;unsigned pin_count;@@ -793,6 +795,15 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) pin_count =READ_ONCE (bo->pin_count);if (pin_count)seq_printf (m," pin count %d" , pin_count); + + dma_buf =READ_ONCE (bo->gem_base.dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) · line 809
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +7
-0+ attachment =READ_ONCE (bo->gem_base.import_attach); + +if (attachment) +seq_printf (m," imported from %p" , dma_buf); +else if (dma_buf) +seq_printf (m," exported as %p" , dma_buf); +seq_printf (m,"\n" );return 0 ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1aa486ab-5c15-5f56-9465-0d4bef5d2290-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Christian König <[email protected]>
Sent: Wednesday, April 18, 2018 6:13:09 AM
To: [email protected]
Subject: Re: [PATCH] drm/amdgpu: print DMA-buf status in debugfs
Ping? Could anybody review that?
Thanks,
Christian.
Am 11.04.2018 um 15:09 schrieb Christian König:
Quoted 26 lines
Just note if a BO was imported/exported.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +4
-0@@ -765,6 +765,8 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data)struct amdgpu_bo *bo =gem_to_amdgpu_bo (gobj);struct seq_file *m = data; +struct dma_buf_attachment *attachment; +struct dma_buf *dma_buf;unsigned domain;const char *placement;unsigned pin_count;@@ -793,6 +795,15 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) pin_count =READ_ONCE (bo->pin_count);if (pin_count)seq_printf (m," pin count %d" , pin_count); + + dma_buf =READ_ONCE (bo->gem_base.dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) · line 809
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +7
-0+ attachment =READ_ONCE (bo->gem_base.import_attach); + +if (attachment) +seq_printf (m," imported from %p" , dma_buf); +else if (dma_buf) +seq_printf (m," exported as %p" , dma_buf); +seq_printf (m,"\n" );return 0 ;
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx