Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-06-03 Thread Baolu Lu
On 6/3/24 9:35 PM, Jason Gunthorpe wrote: On Wed, May 29, 2024 at 08:02:12PM +0800, Baolu Lu wrote: drivers/infiniband/hw/usnic/usnic_uiom.c:   pd->domain = domain = iommu_domain_alloc(dev->bus); This series leave those cases unchanged and keep iommu_domain_alloc() for their usage. But new

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-06-03 Thread Jason Gunthorpe
On Wed, May 29, 2024 at 08:02:12PM +0800, Baolu Lu wrote: > > > drivers/infiniband/hw/usnic/usnic_uiom.c:   pd->domain = domain > > > = iommu_domain_alloc(dev->bus); > > > > > > This series leave those cases unchanged and keep iommu_domain_alloc() > > > for their usage. But new drivers should

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-30 Thread Yi Liu
On 2024/5/31 14:00, Baolu Lu wrote: On 5/31/24 11:16 AM, Yi Liu wrote: On 2024/5/29 20:02, Baolu Lu wrote: On 2024/5/29 17:03, Yi Liu wrote: On 2024/5/29 13:32, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequen

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-30 Thread Baolu Lu
On 5/31/24 11:16 AM, Yi Liu wrote: On 2024/5/29 20:02, Baolu Lu wrote: On 2024/5/29 17:03, Yi Liu wrote: On 2024/5/29 13:32, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation i

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-30 Thread Yi Liu
On 2024/5/29 20:02, Baolu Lu wrote: On 2024/5/29 17:03, Yi Liu wrote: On 2024/5/29 13:32, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-30 Thread Baolu Lu
On 5/31/24 1:59 AM, Robin Murphy wrote: On 29/05/2024 6:32 am, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type argument, is no longer rele

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-30 Thread Robin Murphy
On 29/05/2024 6:32 am, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type argument, is no longer relevant: struct iommu_domain *iommu_do

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-29 Thread Baolu Lu
On 2024/5/29 17:03, Yi Liu wrote: On 2024/5/29 13:32, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type argument, is no longer relevant:   

Re: [PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-29 Thread Yi Liu
On 2024/5/29 13:32, Lu Baolu wrote: The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type argument, is no longer relevant: struct iommu_domain *iommu_domai

[PATCH 00/20] iommu: Refactoring domain allocation interface

2024-05-28 Thread Lu Baolu
The IOMMU subsystem has undergone some changes, including the removal of iommu_ops from the bus structure. Consequently, the existing domain allocation interface, which relies on a bus type argument, is no longer relevant: struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) This ser