Re: [PATCH v8 02/11] iommu: Add max_pasids field in struct dev_iommu

2022-06-10 Thread Baolu Lu
On 2022/6/10 17:01, Tian, Kevin wrote: From: Baolu Lu Sent: Friday, June 10, 2022 2:47 PM On 2022/6/10 03:01, Raj, Ashok wrote: On Tue, Jun 07, 2022 at 09:49:33AM +0800, Lu Baolu wrote: @@ -218,6 +219,30 @@ static void dev_iommu_free(struct device *dev) kfree(param); } +static u32

RE: [PATCH v8 02/11] iommu: Add max_pasids field in struct dev_iommu

2022-06-10 Thread Tian, Kevin
> From: Baolu Lu > Sent: Friday, June 10, 2022 2:47 PM > > On 2022/6/10 03:01, Raj, Ashok wrote: > > On Tue, Jun 07, 2022 at 09:49:33AM +0800, Lu Baolu wrote: > >> @@ -218,6 +219,30 @@ static void dev_iommu_free(struct device *dev) > >>kfree(param); > >> } > >> > >> +static u32 dev_iommu_ge

Re: [PATCH v8 02/11] iommu: Add max_pasids field in struct dev_iommu

2022-06-09 Thread Baolu Lu
On 2022/6/10 03:01, Raj, Ashok wrote: On Tue, Jun 07, 2022 at 09:49:33AM +0800, Lu Baolu wrote: Use this field to save the number of PASIDs that a device is able to consume. It is a generic attribute of a device and lifting it into the per-device dev_iommu struct could help to avoid the boilerpl

Re: [PATCH v8 02/11] iommu: Add max_pasids field in struct dev_iommu

2022-06-09 Thread Raj, Ashok
On Tue, Jun 07, 2022 at 09:49:33AM +0800, Lu Baolu wrote: > Use this field to save the number of PASIDs that a device is able to > consume. It is a generic attribute of a device and lifting it into the > per-device dev_iommu struct could help to avoid the boilerplate code > in various IOMMU drivers

[PATCH v8 02/11] iommu: Add max_pasids field in struct dev_iommu

2022-06-06 Thread Lu Baolu
Use this field to save the number of PASIDs that a device is able to consume. It is a generic attribute of a device and lifting it into the per-device dev_iommu struct could help to avoid the boilerplate code in various IOMMU drivers. Signed-off-by: Lu Baolu --- include/linux/iommu.h | 2 ++ dr