All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/12] iommu/amd: Improve domain allocator and device attach code path
@ 2024-10-30  6:35 Vasant Hegde
  2024-10-30  6:35 ` [PATCH v5 01/12] iommu/amd/pgtbl_v2: Take protection domain lock before invalidating TLB Vasant Hegde
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Vasant Hegde @ 2024-10-30  6:35 UTC (permalink / raw)
  To: iommu, joro; +Cc: will, robin.murphy, suravee.suthikulpanit, jgg, Vasant Hegde

This series aims to improve domain allocator and attach device code path.
  - Replace custom domain ID allocator with IDA allocator.
  - Improve protection domain data structure
  - Improve attach device code path and replace dev_data spinlock with mutex
  - Add ops->release_domain() support

This series is on top of iommu/core branch (Commit a33bf8d8ce7).

This is also available at github :
  https://github.com/AMDESE/linux-iommu/tree/iommu_rework_attach_dev_v5


Changes from v4 - v5:
  - Rebased on top of iommu/core branch
  - Added Reviewed-by tags
  - Renamed amd_iommu_pdom_id_alloc -> pdom_id_alloc() as its static function
  - Fixed patch 11 subject line

V4: https://lore.kernel.org/linux-iommu/20241028113148.5774-1-vasant.hegde@amd.com/T/#t


Changes from v3 - v4:
  - Added release domain support
  - Added new patch to fix missign lock in pgtbl_v2 code path
  - Reworked protection domain ID allocation code
  - Fixed missing lock in TLB flush code path
  - Improved amd_iommu_release_device()

V3 : https://lore.kernel.org/linux-iommu/20241016053501.97497-1-vasant.hegde@amd.com/T/#u

Changes from v2 -> v3:
  - Rebased on top of v6.12-rc3
  - Added Reviewed-by tags
  - Updated patch description

V2 : https://lore.kernel.org/linux-iommu/20240910065812.6091-1-vasant.hegde@amd.com/T/#t

Changes from v1 -> v2:
  - Rebased on top of iommu/next
  - Minor fixes.


V1 : https://lore.kernel.org/linux-iommu/20240828134317.6239-1-vasant.hegde@amd.com/T/#t

-Vasant

Vasant Hegde (12):
  iommu/amd/pgtbl_v2: Take protection domain lock before invalidating
    TLB
  iommu/amd: Use ida interface to manage protection domain ID
  iommu/amd: Remove protection_domain.dev_cnt variable
  iommu/amd: xarray to track protection_domain->iommu list
  iommu/amd: Remove unused amd_iommus variable
  iommu/amd: Do not detach devices in domain free path
  iommu/amd: Reduce domain lock scope in attach device path
  iommu/amd: Rearrange attach device code
  iommu/amd: Convert dev_data lock from spinlock to mutex
  iommu/amd: Reorder attach device code
  iommu/amd: Add ops->release_domain
  iommu/amd: Improve amd_iommu_release_device()

 drivers/iommu/amd/amd_iommu_types.h |  23 +-
 drivers/iommu/amd/init.c            |  37 +--
 drivers/iommu/amd/io_pgtable_v2.c   |   3 +
 drivers/iommu/amd/iommu.c           | 360 +++++++++++++---------------
 4 files changed, 194 insertions(+), 229 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2024-10-30 10:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30  6:35 [PATCH v5 00/12] iommu/amd: Improve domain allocator and device attach code path Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 01/12] iommu/amd/pgtbl_v2: Take protection domain lock before invalidating TLB Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 02/12] iommu/amd: Use ida interface to manage protection domain ID Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 03/12] iommu/amd: Remove protection_domain.dev_cnt variable Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 04/12] iommu/amd: xarray to track protection_domain->iommu list Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 05/12] iommu/amd: Remove unused amd_iommus variable Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 06/12] iommu/amd: Do not detach devices in domain free path Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 07/12] iommu/amd: Reduce domain lock scope in attach device path Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 08/12] iommu/amd: Rearrange attach device code Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 09/12] iommu/amd: Convert dev_data lock from spinlock to mutex Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 10/12] iommu/amd: Reorder attach device code Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 11/12] iommu/amd: Add ops->release_domain Vasant Hegde
2024-10-30  6:35 ` [PATCH v5 12/12] iommu/amd: Improve amd_iommu_release_device() Vasant Hegde
2024-10-30 10:24 ` [PATCH v5 00/12] iommu/amd: Improve domain allocator and device attach code path Joerg Roedel

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.