[RESEND,V3,0/2] Add reattaching support and fix memory leak issue

Message ID 20230331033124.864691-1-zhang.lyra@gmail.com
Headers
Series Add reattaching support and fix memory leak issue |

Message

Chunyan Zhang March 31, 2023, 3:31 a.m. UTC
  From: Chunyan Zhang <chunyan.zhang@unisoc.com>

V3:
* Split into two patches;
* Added support reattching an existing domain;
* Release DMA buffer only when domain freed.

V2: https://lkml.org/lkml/2023/3/7/1717
* Added some comment in sprd_iommu_attach_device() for the reason
  of calling sprd_iommu_cleanup().

V1: https://lkml.org/lkml/2023/2/10/198

Chunyan Zhang (2):
  iommu: sprd: release dma buffer to avoid memory leak
  iommu: sprd: Add support for reattaching an existing domain

 drivers/iommu/sprd-iommu.c | 54 +++++++++++++++++++++++++++++---------
 1 file changed, 41 insertions(+), 13 deletions(-)
  

Comments

Joerg Roedel March 31, 2023, 8:15 a.m. UTC | #1
On Fri, Mar 31, 2023 at 11:31:22AM +0800, Chunyan Zhang wrote:
> Chunyan Zhang (2):
>   iommu: sprd: release dma buffer to avoid memory leak
>   iommu: sprd: Add support for reattaching an existing domain

Applied, thanks.