diff options
author | Lizhi Hou <lizhi.hou@amd.com> | 2025-03-25 23:01:05 +0300 |
---|---|---|
committer | Lizhi Hou <lizhi.hou@amd.com> | 2025-03-28 21:14:06 +0300 |
commit | e486147c912f653ef4b60a6c7dbd4168a4c56a9f (patch) | |
tree | 7dece24dba2368506ce48a03ab21e72fde3293b8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0b50eb7f3aa3d7cd67689aa4ea2d04f86cdf0eff (diff) | |
download | linux-e486147c912f653ef4b60a6c7dbd4168a4c56a9f.tar.xz |
accel/amdxdna: Add BO import and export
Add amdxdna_gem_prime_export() and amdxdna_gem_prime_import() for BO
import and export. Register mmu notifier for imported BO as well. When
MMU_NOTIFIER_UNMAP event is received, queue work to remove the notifier.
The same BO could be mapped multiple times if it is exported and imported
by an application. Use a link list to track VMAs the BO been mapped.
v2: Rebased and call get_dma_buf() before dma_buf_attach()
v3: Removed import_attach usage
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250325200105.2744079-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions