linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Convert SMMU to domain_alloc_paging()
@ 2023-10-17 18:11 Jason Gunthorpe
  2023-10-17 18:11 ` [PATCH v2 1/5] iommu/arm-smmu: Reorganize arm_smmu_domain_add_master() Jason Gunthorpe
                   ` (5 more replies)
  0 siblings, 6 replies; 25+ messages in thread
From: Jason Gunthorpe @ 2023-10-17 18:11 UTC (permalink / raw)
  To: iommu, Joerg Roedel, linux-arm-kernel, Robin Murphy, Will Deacon
  Cc: Nicolin Chen

Add the global statics for IDENTITY and BLOCKED to the SMMU driver and
change to use domain_alloc_paging(). This allows SMMU to finalize the
domain during allocation.

This relies on the first few patches of the dart conversion series:

https://lore.kernel.org/r/0-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com

To enable the BLOCKED global static.

v2:
 - Remove the disable_bypass fixing, Robin says to just leave it broken
   for ARM32
 - Rename arm_smmu_domain_add_master() to arm_smmu_master_install_s2crs()
   and remove smmu as a parameter
 - Fix missed use of dev in arm_smmu_context_fault
 - Use a local variable for domain in arm_smmu_init_domain_context()
v1: https://lore.kernel.org/r/0-v1-cf5846854f51+6db3f-smmu_newapi_jgg@nvidia.com

Jason Gunthorpe (5):
  iommu/arm-smmu: Reorganize arm_smmu_domain_add_master()
  iommu/arm-smmu: Convert to a global static identity domain
  iommu/arm-smmu: Implement IOMMU_DOMAIN_BLOCKED
  iommu/arm-smmu: Pass arm_smmu_domain to internal functions
  iommu/arm-smmu: Convert to domain_alloc_paging()

 drivers/iommu/arm/arm-smmu/arm-smmu.c | 126 ++++++++++++++++++--------
 drivers/iommu/arm/arm-smmu/arm-smmu.h |   1 -
 2 files changed, 88 insertions(+), 39 deletions(-)


base-commit: 853eb2d43e1be6e947fdd11c3341ffc2275fb6c7
-- 
2.42.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-02-13 11:54 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-17 18:11 [PATCH v2 0/5] Convert SMMU to domain_alloc_paging() Jason Gunthorpe
2023-10-17 18:11 ` [PATCH v2 1/5] iommu/arm-smmu: Reorganize arm_smmu_domain_add_master() Jason Gunthorpe
2023-10-17 18:11 ` [PATCH v2 2/5] iommu/arm-smmu: Convert to a global static identity domain Jason Gunthorpe
2023-12-12 13:27   ` Will Deacon
2023-12-12 14:15     ` Jason Gunthorpe
2023-12-13 13:26       ` Will Deacon
2023-12-13 13:32         ` Jason Gunthorpe
2023-10-17 18:11 ` [PATCH v2 3/5] iommu/arm-smmu: Implement IOMMU_DOMAIN_BLOCKED Jason Gunthorpe
2023-10-17 18:11 ` [PATCH v2 4/5] iommu/arm-smmu: Pass arm_smmu_domain to internal functions Jason Gunthorpe
2023-10-17 18:11 ` [PATCH v2 5/5] iommu/arm-smmu: Convert to domain_alloc_paging() Jason Gunthorpe
2023-12-12 13:26   ` Will Deacon
2023-12-12 14:03     ` Jason Gunthorpe
2023-12-12 14:10       ` Will Deacon
2023-12-13 13:27         ` Will Deacon
2023-12-13 13:32           ` Jason Gunthorpe
2024-02-09 20:05   ` Dmitry Baryshkov
2024-02-09 22:23     ` Jason Gunthorpe
2024-02-12 23:18       ` Dmitry Baryshkov
2024-02-13  0:19         ` Jason Gunthorpe
2024-02-13  7:51       ` Dmitry Baryshkov
2024-02-13 10:20         ` Robin Murphy
2024-02-13 10:55           ` Dmitry Baryshkov
2024-02-13 11:16             ` Will Deacon
2024-02-13 11:54               ` Jason Gunthorpe
2023-12-13 17:25 ` [PATCH v2 0/5] Convert SMMU " Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).