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

From: Jeff Hugo
Date: Fri Mar 28 2025 - 12:18:52 EST


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+.