Skip to content
Commit 816c698c authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Joerg Roedel
Browse files

iommu/sprd: Add support for reattaching an existing domain



This IOMMU driver should allow a domain to be attached more than once.

If IOMMU is reattaching to the same domain which is attached, there's
nothing to be done.

If reattching to a previously-used domain, do not alloc DMA buffer
again which stores address mapping table to avoid memory leak.

Signed-off-by: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20230331033124.864691-3-zhang.lyra@gmail.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 9afea573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment