Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <tzimmermann@suse.de>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Steven Price <steven.price@arm.com>
Cc: "Adrián Larumbe" <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20260227133113.235940-7-tzimmermann@suse.de

authored by

Thomas Zimmermann and committed by
Steven Price
6618c0fd 41dae5ac

+1 -1
+1 -1
drivers/gpu/drm/panfrost/panfrost_gem.c
··· 702 702 resident_size, 703 703 drm_vma_node_start(&bo->base.base.vma_node)); 704 704 705 - if (bo->base.base.import_attach) 705 + if (drm_gem_is_imported(&bo->base.base)) 706 706 gem_state_flags |= PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED; 707 707 if (bo->base.base.dma_buf) 708 708 gem_state_flags |= PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED;