Re: [PATCH v8 04/11] iommu: Add sva iommu_domain support

2022-06-19 Thread Baolu Lu
On 2022/6/17 15:43, Tian, Kevin wrote: From: Baolu Lu Sent: Friday, June 10, 2022 3:16 PM +#define __IOMMU_DOMAIN_HOST_VA (1U << 5) /* Host CPU virtual address */ Do you mean general CPU VA? or Host CPU VA, I'm reading the latter as 2nd stage? Host CPU VA. In the near future, we will a

Re: [PATCH v8 05/11] iommu/vt-d: Add SVA domain support

2022-06-19 Thread Baolu Lu
On 2022/6/17 15:47, Tian, Kevin wrote: From: Lu Baolu Sent: Tuesday, June 7, 2022 9:50 AM + +static const struct iommu_domain_ops intel_svm_domain_ops = { + .set_dev_pasid = intel_svm_attach_dev_pasid, + .block_dev_pasid= intel_svm_detach_dev_pasid, + .free

RE: [PATCH 1/3] iommu: Add Visconti5 IOMMU driver

2022-06-19 Thread nobuhiro1.iwamatsu
Hi, > -Original Message- > From: Baolu Lu > Sent: Wednesday, May 25, 2022 3:27 PM > To: iwamatsu nobuhiro(岩松 信洋 □SWC◯ACT) > ; Joerg Roedel ; Will > Deacon ; Rob Herring ; Jason > Gunthorpe > Cc: baolu...@linux.intel.com; devicet...@vger.kernel.org; > linux-ker...@vger.kernel.org; iommu@l

Re: [PATCH v2 5/5] vfio/iommu_type1: Simplify group attachment

2022-06-19 Thread Jason Gunthorpe via iommu
On Fri, Jun 17, 2022 at 04:07:20PM -0700, Nicolin Chen wrote: > > > > > + vfio_iommu_aper_expand(iommu, &iova_copy); > > > > > > > > but now it's done for every group detach. The aperture is decided > > > > by domain geometry which is not affected by attached groups. > > > > > > Yea, I've noti

Re: [RFC PATCHES 1/2] iommu: Add RCU-protected page free support

2022-06-19 Thread Jason Gunthorpe via iommu
On Thu, Jun 16, 2022 at 10:27:02AM +0800, Baolu Lu wrote: > On 2022/6/15 23:40, Jason Gunthorpe wrote: > > On Fri, Jun 10, 2022 at 01:37:20PM +0800, Baolu Lu wrote: > > > On 2022/6/9 20:49, Jason Gunthorpe wrote: > > > > > +void iommu_free_pgtbl_pages(struct iommu_domain *domain, > > > > > +

RE: [PATCH 1/3] iommu: Add Visconti5 IOMMU driver

2022-06-19 Thread nobuhiro1.iwamatsu
Hi, Thanks for your review. > -Original Message- > From: Jason Gunthorpe > Sent: Thursday, May 26, 2022 3:27 AM > To: Baolu Lu > Cc: iwamatsu nobuhiro(岩松 信洋 □SWC◯ACT) > ; Joerg Roedel ; Will > Deacon ; Rob Herring ; > devicet...@vger.kernel.org; linux-ker...@vger.kernel.org; > iommu@lis