]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panthor: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Feb 2026 13:31:07 +0000 (14:31 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 2 Mar 2026 11:51:48 +0000 (11:51 +0000)
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 <tzimmermann@suse.de>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Steven Price <steven.price@arm.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20260227133113.235940-8-tzimmermann@suse.de
drivers/gpu/drm/panthor/panthor_gem.c

index 4b4575dd6e9088559d95aa436bf67fd4b14ed0e9..6d14b0269574a41d37994ea94142acc471c7e613 100644 (file)
@@ -666,7 +666,7 @@ static void panthor_gem_debugfs_bo_print(struct panthor_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 |= PANTHOR_DEBUGFS_GEM_STATE_FLAG_IMPORTED;
        if (bo->base.base.dma_buf)
                gem_state_flags |= PANTHOR_DEBUGFS_GEM_STATE_FLAG_EXPORTED;