Re: [PATCH 06/16] iommu/dma: use page allocation function provided by iommu-pages.h

2023-11-28 Thread Robin Murphy
On 2023-11-28 10:50 pm, Pasha Tatashin wrote: On Tue, Nov 28, 2023 at 5:34 PM Robin Murphy wrote: On 2023-11-28 8:49 pm, Pasha Tatashin wrote: Convert iommu/dma-iommu.c to use the new page allocation functions provided in iommu-pages.h. These have nothing to do with IOMMU pagetables, they

Re: [PATCH 08/16] iommu/fsl: use page allocation function provided by iommu-pages.h

2023-11-29 Thread Robin Murphy
On 28/11/2023 11:50 pm, Jason Gunthorpe wrote: On Tue, Nov 28, 2023 at 06:00:13PM -0500, Pasha Tatashin wrote: On Tue, Nov 28, 2023 at 5:53 PM Robin Murphy wrote: On 2023-11-28 8:49 pm, Pasha Tatashin wrote: Convert iommu/fsl_pamu.c to use the new page allocation functions provided in iommu

Re: [PATCH 2/5] iommu: Add domain_alloc_identity()

2025-02-12 Thread Robin Murphy
On 2025-02-07 2:46 pm, Jason Gunthorpe wrote: virtio-iommu has a mode where the IDENTITY domain is actually a paging domain with an identity mapping covering some of the system address space manually created. To support this add a new domain_alloc_identity() op that accepts the struct device so

Re: [PATCH 2/5] iommu: Add domain_alloc_identity()

2025-02-12 Thread Robin Murphy
On 2025-02-12 2:03 pm, Jason Gunthorpe wrote: On Wed, Feb 12, 2025 at 01:56:55PM +, Robin Murphy wrote: On 2025-02-07 2:46 pm, Jason Gunthorpe wrote: virtio-iommu has a mode where the IDENTITY domain is actually a paging domain with an identity mapping covering some of the system address

Re: [PATCH 0/5] Convert virtio-iommu to domain_alloc_paging()

2025-02-12 Thread Robin Murphy
On 2025-02-12 6:50 pm, Jacob Pan wrote: Hi Jason, On Wed, 12 Feb 2025 08:50:07 -0400 Jason Gunthorpe wrote: On Tue, Feb 11, 2025 at 04:41:51PM -0800, Jacob Pan wrote: I see the same on arm64 with v9.0, assigned an ixgbe nic via VFIO. Huh, I figured it worked on ARM.. There is no requirem

[PATCH] iommu/virtio: Make instance lookup robust

2025-03-20 Thread Robin Murphy
same way as for arm-smmu, to ensure that what we register is functional and ready to go. Fixes: bcb81ac6ae3c ("iommu: Get DT/ACPI parsing into the proper probe path") Signed-off-by: Robin Murphy --- Pre-emptive fix by inspection... --- drivers/iommu/virtio-iommu.c | 20 --