-
- Downloads
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
Showing
- drivers/accel/amdxdna/TODO 0 additions, 1 deletiondrivers/accel/amdxdna/TODO
- drivers/accel/amdxdna/aie2_ctx.c 41 additions, 24 deletionsdrivers/accel/amdxdna/aie2_ctx.c
- drivers/accel/amdxdna/amdxdna_gem.c 329 additions, 80 deletionsdrivers/accel/amdxdna/amdxdna_gem.c
- drivers/accel/amdxdna/amdxdna_gem.h 22 additions, 2 deletionsdrivers/accel/amdxdna/amdxdna_gem.h
- drivers/accel/amdxdna/amdxdna_pci_drv.c 10 additions, 1 deletiondrivers/accel/amdxdna/amdxdna_pci_drv.c
- drivers/accel/amdxdna/amdxdna_pci_drv.h 2 additions, 0 deletionsdrivers/accel/amdxdna/amdxdna_pci_drv.h
Loading
Please register or sign in to comment