Message ID | 0-v6-96275f25c39d+2d4-smmuv3_newapi_p1_jgg@nvidia.com (mailing list archive) |
---|---|
Headers | show |
Series | Update SMMUv3 to the modern iommu API (part 1/3) | expand |
On Mon, 26 Feb 2024 13:07:11 -0400, Jason Gunthorpe wrote: > The SMMUv3 driver was originally written in 2015 when the iommu driver > facing API looked quite different. The API has evolved, especially lately, > and the driver has fallen behind. > > This work aims to bring make the SMMUv3 driver the best IOMMU driver with > the most comprehensive implementation of the API. After all parts it > addresses: > > [...] Applied to will (for-joerg/arm-smmu/updates), thanks! [01/16] iommu/arm-smmu-v3: Make STE programming independent of the callers https://git.kernel.org/will/c/ae91f6552c30 [02/16] iommu/arm-smmu-v3: Consolidate the STE generation for abort/bypass https://git.kernel.org/will/c/12dacfb5b938 [03/16] iommu/arm-smmu-v3: Move the STE generation for S1 and S2 domains into functions https://git.kernel.org/will/c/352bd64cd828 [04/16] iommu/arm-smmu-v3: Build the whole STE in arm_smmu_make_s2_domain_ste() https://git.kernel.org/will/c/d36464f40f29 [05/16] iommu/arm-smmu-v3: Hold arm_smmu_asid_lock during all of attach_dev https://git.kernel.org/will/c/d8cd200609cf [06/16] iommu/arm-smmu-v3: Compute the STE only once for each master https://git.kernel.org/will/c/327e10b47ae9 [07/16] iommu/arm-smmu-v3: Do not change the STE twice during arm_smmu_attach_dev() https://git.kernel.org/will/c/8c73c32c83ce [08/16] iommu/arm-smmu-v3: Put writing the context descriptor in the right order https://git.kernel.org/will/c/d2e053d73247 [09/16] iommu/arm-smmu-v3: Pass smmu_domain to arm_enable/disable_ats() https://git.kernel.org/will/c/d550ddc5b789 [10/16] iommu/arm-smmu-v3: Remove arm_smmu_master->domain https://git.kernel.org/will/c/1b50017d39f6 [11/16] iommu/arm-smmu-v3: Check that the RID domain is S1 in SVA https://git.kernel.org/will/c/ae91f6552c30 [12/16] iommu/arm-smmu-v3: Add a global static IDENTITY domain https://git.kernel.org/will/c/12dacfb5b938 [13/16] iommu/arm-smmu-v3: Add a global static BLOCKED domain https://git.kernel.org/will/c/352bd64cd828 [14/16] iommu/arm-smmu-v3: Use the identity/blocked domain during release https://git.kernel.org/will/c/d36464f40f29 [15/16] iommu/arm-smmu-v3: Pass arm_smmu_domain and arm_smmu_device to finalize https://git.kernel.org/will/c/d8cd200609cf [16/16] iommu/arm-smmu-v3: Convert to domain_alloc_paging() https://git.kernel.org/will/c/327e10b47ae9 Cheers,
On Thu, Feb 29, 2024 at 04:34:13PM +0000, Will Deacon wrote: > On Mon, 26 Feb 2024 13:07:11 -0400, Jason Gunthorpe wrote: > > The SMMUv3 driver was originally written in 2015 when the iommu driver > > facing API looked quite different. The API has evolved, especially lately, > > and the driver has fallen behind. > > > > This work aims to bring make the SMMUv3 driver the best IOMMU driver with > > the most comprehensive implementation of the API. After all parts it > > addresses: > > > > [...] > > Applied to will (for-joerg/arm-smmu/updates), thanks! Thanks Will! I'll post the rebased part 2 and start getting tags hopefully next week (I got a flu, just getting back to work now). Did you notice any contentious patches in there that could use more attention? https://lore.kernel.org/linux-iommu/0-v4-e7091cdd9e8d+43b1-smmuv3_newapi_p2_jgg@nvidia.com/ Jason
On Thu, Feb 29, 2024 at 04:34:13PM +0000, Will Deacon wrote: > On Mon, 26 Feb 2024 13:07:11 -0400, Jason Gunthorpe wrote: > > The SMMUv3 driver was originally written in 2015 when the iommu driver > > facing API looked quite different. The API has evolved, especially lately, > > and the driver has fallen behind. > > > > This work aims to bring make the SMMUv3 driver the best IOMMU driver with > > the most comprehensive implementation of the API. After all parts it > > addresses: > > > > [...] > > Applied to will (for-joerg/arm-smmu/updates), thanks! Oh, that's a great one! I just found that I forgot to leave my tag at this updated PATCH-1. I have rerun sanity with this part-1 series and more nesting cases with the other two parts. If it's not to late: Tested-by: Nicolin Chen <nicolinc@nvidia.com> > [01/16] iommu/arm-smmu-v3: Make STE programming independent of the callers > https://git.kernel.org/will/c/ae91f6552c30 This link somehow doesn't correspond to the PATCH-1? :) Thanks Nicolin
On Thu, Feb 29, 2024 at 12:47:56PM -0800, Nicolin Chen wrote: > On Thu, Feb 29, 2024 at 04:34:13PM +0000, Will Deacon wrote: > > On Mon, 26 Feb 2024 13:07:11 -0400, Jason Gunthorpe wrote: > > > The SMMUv3 driver was originally written in 2015 when the iommu driver > > > facing API looked quite different. The API has evolved, especially lately, > > > and the driver has fallen behind. > > > > > > This work aims to bring make the SMMUv3 driver the best IOMMU driver with > > > the most comprehensive implementation of the API. After all parts it > > > addresses: > > > > > > [...] > > > > Applied to will (for-joerg/arm-smmu/updates), thanks! > > Oh, that's a great one! > > I just found that I forgot to leave my tag at this updated PATCH-1. > I have rerun sanity with this part-1 series and more nesting cases > with the other two parts. If it's not to late: > > Tested-by: Nicolin Chen <nicolinc@nvidia.com> > > > [01/16] iommu/arm-smmu-v3: Make STE programming independent of the callers > > https://git.kernel.org/will/c/ae91f6552c30 > > This link somehow doesn't correspond to the PATCH-1? :) Huh! That's all generated by an ancient version of the 'b4' tool. By the looks of it, it doesn't like more than ten patches in a series. Given the other patchsets kicking around, I guess it's time for me to update it. Will