Re: [PATCH 08/11] iommu: Always destroy the iommu_group during iommu_release_device()

2023-04-26 Thread Jason Gunthorpe
On Thu, Apr 20, 2023 at 12:23:11PM +0800, Baolu Lu wrote: > On 4/20/23 12:11 AM, Jason Gunthorpe wrote: > > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > > index dbaf3ed9012c45..a82516c8ea87ad 100644 > > --- a/drivers/iommu/iommu.c > > +++ b/drivers/iommu/iommu.c > > @@ -569,7

RE: [PATCH 08/11] iommu: Always destroy the iommu_group during iommu_release_device()

2023-04-26 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, April 20, 2023 12:12 AM > > Have release fully clean up the iommu related parts of the struct device, > no matter what state they are in. > > POWER creates iommu_groups without drivers attached, and the next patch > removes the open-coding of this same

Re: [PATCH 08/11] iommu: Always destroy the iommu_group during iommu_release_device()

2023-04-19 Thread Baolu Lu
On 4/20/23 12:11 AM, Jason Gunthorpe wrote: diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index dbaf3ed9012c45..a82516c8ea87ad 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -569,7 +569,6 @@ static void __iommu_group_remove_device(struct device *dev)