accel/qaic: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Apr 2025 11:52:22 +0000 (13:52 +0200)
committerJeff Hugo <jeff.hugo@oss.qualcomm.com>
Fri, 11 Apr 2025 15:40:30 +0000 (09:40 -0600)
commitecc2b7478bdc8efaff692e3ae44e71d992bcc85f
tree2fc3611ac1a5b34a88535b703cfccf7f81b8826b
parent746375524bb6a93bc3ef7a3c2e8c916bfdfcb0b2
accel/qaic: 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: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250408115237.428985-1-tzimmermann@suse.de
drivers/accel/qaic/qaic_data.c