summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2025-02-26 20:03:04 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2025-03-06 10:58:27 +0300
commitb57aa47d39e94dc47403a745e2024664e544078c (patch)
tree1ab0ea8b2ce949546a40229f878ebe97e35bd114 /tools/perf/scripts/python/mem-phys-addr.py
parentced7486468ac3b38d59a69fca5d97998499c936b (diff)
downloadlinux-b57aa47d39e94dc47403a745e2024664e544078c.tar.xz
drm/gem: Test for imported GEM buffers with helper
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
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions