Re: [PATCH V3] accel/amdxdna: Add BO import and export

From: Lizhi Hou
Date: Fri Mar 28 2025 - 16:04:55 EST



On 3/28/25 09:16, Jeff Hugo wrote:
On 3/25/2025 2:01 PM, Lizhi Hou wrote:
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.

Signed-off-by: Lizhi Hou <lizhi.hou@xxxxxxx>

Reviewed-by: Jeff Hugo <jeff.hugo@xxxxxxxxxxxxxxxx>

I think this was just a one time glitch, but please remember to include a changelog for v2+.

Thanks a lot. Added log and pushed to drm-misc-next.


Lizhi