drm/panfrost: Test for imported buffers with drm_gem_is_imported()
Subsystems (3)
Thomas Zimmermann
maintainerPATCH 1/1 drm/panfrost: Test for imported buffers with drm_gem_is_imported()
Instead of testing import_attach for imported GEM buffers, invoke drm_gem_is_imported() to do the test. The test itself does not change.
Signed-off-by Thomas Zimmermann <[email protected]>
Cc Boris Brezillon <[email protected]>
Cc Rob Herring <[email protected]>
Cc Steven Price <[email protected]>
Cc "Adrián Larumbe" <[email protected]>
--- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_gem.c +1 -1
@@ -702,7 +702,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo, resident_size, drm_vma_node_start(&bo->base.base.vma_node)); -if (bo->base.base.import_attach) +if (drm_gem_is_imported (&bo->base.base)) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED ;if (bo->base.base.dma_buf) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED ;
Signature · 1 line
2.52.0
Quoted 8 lines · Thomas Zimmermann
Instead of testing
import_attachfor imported GEM buffers, invokedrm_gem_is_imported()to do the test. The test itself does not change.Signed-off-by Thomas Zimmermann <[email protected]>Cc Boris Brezillon <[email protected]>Cc Rob Herring <[email protected]>Cc Steven Price <[email protected]>Cc "Adrián Larumbe" <[email protected]>
Reviewed-by Steven Price <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panfrost/panfrost_gem.c +1
-1@@ -702,7 +702,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo, resident_size, drm_vma_node_start(&bo->base.base.vma_node)); -if (bo->base.base.import_attach) +if (drm_gem_is_imported (&bo->base.base)) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED ;if (bo->base.base.dma_buf) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED ;
Quoted 5 lines · On Fri, 27 Feb 2026 14:31:06 +0100 Thomas Zimmermann <[email protected]>…
Instead of testing
import_attachfor imported GEM buffers, invokedrm_gem_is_imported()to do the test. The test itself does not change.Signed-off-by Thomas Zimmermann <[email protected]>Cc Boris Brezillon <[email protected]>
Reviewed-by Boris Brezillon <[email protected]>
Quoted 20 lines
Cc Rob Herring <[email protected]>Cc Steven Price <[email protected]>Cc "Adrián Larumbe" <[email protected]>--- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panfrost/panfrost_gem.c +1
-1@@ -702,7 +702,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo, resident_size, drm_vma_node_start(&bo->base.base.vma_node)); -if (bo->base.base.import_attach) +if (drm_gem_is_imported (&bo->base.base)) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED ;if (bo->base.base.dma_buf) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED ;
Quoted 11 lines · Thomas Zimmermann
Instead of testing
import_attachfor imported GEM buffers, invokedrm_gem_is_imported()to do the test. The test itself does not change.Signed-off-by Thomas Zimmermann <[email protected]>Cc Boris Brezillon <[email protected]>Cc Rob Herring <[email protected]>Cc Steven Price <[email protected]>Cc "Adrián Larumbe" <[email protected]>--- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Pushed to drm-misc-next.
Thanks,
Steve
Quoted 14 lines
drivers/gpu/drm/panfrost/panfrost_gem.c +1
-1@@ -702,7 +702,7 @@ static void panfrost_gem_debugfs_bo_print(struct panfrost_gem_object *bo, resident_size, drm_vma_node_start(&bo->base.base.vma_node)); -if (bo->base.base.import_attach) +if (drm_gem_is_imported (&bo->base.base)) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED ;if (bo->base.base.dma_buf) gem_state_flags |=PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED ;