[PATCH v5 02/12] iommu: Add pasid_bits field in struct dev_iommu

2022-05-01 Thread Lu Baolu
Use this field to save the pasid/ssid bits that a device is able to support with its IOMMU hardware. It is a generic attribute of a device and lifting it into the per-device dev_iommu struct makes it possible to allocate a PASID for device without calls into the IOMMU drivers. Any iommu driver whic

Re: [PATCH v5 02/12] iommu: Add pasid_bits field in struct dev_iommu

2022-05-03 Thread Jean-Philippe Brucker
On Mon, May 02, 2022 at 09:48:32AM +0800, Lu Baolu wrote: > Use this field to save the pasid/ssid bits that a device is able to > support with its IOMMU hardware. It is a generic attribute of a device > and lifting it into the per-device dev_iommu struct makes it possible > to allocate a PASID for

Re: [PATCH v5 02/12] iommu: Add pasid_bits field in struct dev_iommu

2022-05-04 Thread Baolu Lu
On 2022/5/4 02:02, Jean-Philippe Brucker wrote: On Mon, May 02, 2022 at 09:48:32AM +0800, Lu Baolu wrote: Use this field to save the pasid/ssid bits that a device is able to support with its IOMMU hardware. It is a generic attribute of a device and lifting it into the per-device dev_iommu struct