]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/ivpu: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Apr 2025 11:31:26 +0000 (13:31 +0200)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Thu, 10 Apr 2025 13:13:24 +0000 (15:13 +0200)
commitdca4ee84a8bb6ec7cb2a1463f14983c2e0d614a7
treebc1306c2d80c2fc83f0e0aaa3a0b328c3261426d
parent6c4a3fa26799785c1873aacabcfd9b2d27e8dc97
accel/ivpu: 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>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://lore.kernel.org/r/20250408113247.418007-1-tzimmermann@suse.de
drivers/accel/ivpu/ivpu_gem.c