All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Free cached iovas when rmmod the driver of the last device in group
@ 2021-06-07  2:42 chenxiang
  2021-06-07  2:42 ` [PATCH 1/4] iommu/iova: add a function to free all rcached iovas and export it chenxiang
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: chenxiang @ 2021-06-07  2:42 UTC (permalink / raw)
  To: robin.murphy, will, joro; +Cc: iommu, linuxarm, linuxarm

From: Xiang Chen <chenxiang66@hisilicon.com>

When rmmod the driver of the last device in the group, cached iovas are not
used, and it is better to free them to save memories. And also export
function free_rcache_cached_iovas() and iommu_domain_to_iova().

Xiang Chen (4):
  iommu/iova: add a function to free all rcached iovas and export it
  iommu/iova: use function free_rcache_cached_iovas() to free all
    rcached iovas
  dma-iommu: add a interface to get iova_domain from iommu domain
  iommu: free cached iovas when rmmod the driver of the last device in
    the group

 drivers/iommu/dma-iommu.c |  7 +++++++
 drivers/iommu/iommu.c     |  7 +++++++
 drivers/iommu/iova.c      | 17 ++++++++++++-----
 include/linux/dma-iommu.h |  6 ++++++
 include/linux/iova.h      |  5 +++++
 5 files changed, 37 insertions(+), 5 deletions(-)

-- 
2.8.1

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-08 14:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07  2:42 [PATCH 0/4] Free cached iovas when rmmod the driver of the last device in group chenxiang
2021-06-07  2:42 ` [PATCH 1/4] iommu/iova: add a function to free all rcached iovas and export it chenxiang
2021-06-07  2:43 ` [PATCH 2/4] iommu/iova: use function free_rcache_cached_iovas() to free all rcached iovas chenxiang
2021-06-07  2:43 ` [PATCH 3/4] dma-iommu: add a interface to get iova_domain from iommu domain chenxiang
2021-06-07  2:43 ` [PATCH 4/4] iommu: free cached iovas when rmmod the driver of the last device in the group chenxiang
2021-06-07 11:23 ` [PATCH 0/4] Free cached iovas when rmmod the driver of the last device in group Robin Murphy
2021-06-08  7:50   ` [Linuxarm] " chenxiang (M)
2021-06-08 14:17     ` Robin Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.