Files
linux-stable-mirror/include/drm
Thomas Zimmermann 93f581d763 drm/gem: Test for imported GEM buffers with helper
[ Upstream commit b57aa47d39 ]

Add drm_gem_is_imported() that tests if a GEM object's buffer has
been imported. Update the GEM code accordingly.

GEM code usually tests for imports if import_attach has been set
in struct drm_gem_object. But attaching a dma-buf on import requires
a DMA-capable importer device, which is not the case for many serial
busses like USB or I2C. The new helper tests if a GEM object's dma-buf
has been created from the GEM object.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Anusha Srivatsa <asrivats@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250226172457.217725-2-tzimmermann@suse.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:28 +02:00
..
2025-04-10 14:39:13 +02:00
2024-09-11 09:18:15 +02:00
2024-05-02 11:33:15 +02:00
2024-03-07 17:17:25 +02:00
2024-06-24 17:08:53 +03:00
2024-08-23 16:47:56 +02:00
2025-02-17 10:04:45 +01:00