]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panthor: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 17 Mar 2025 13:06:47 +0000 (14:06 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Apr 2025 08:53:11 +0000 (10:53 +0200)
commit266ab86ac1f5c05a91bd1a73929c590bfeb3c491
tree600dd81115bf66a1dfeea08ab390c35807002a38
parent64e21b80ded95e919060a2043c52f58ecb281aac
drm/panthor: 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 helper tests the dma_buf
itself while import_attach is just an artifact of the import. Prepares
to make import_attach optional.

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: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250317131923.238374-10-tzimmermann@suse.de
drivers/gpu/drm/panthor/panthor_gem.c
drivers/gpu/drm/panthor/panthor_mmu.c