Re: [PATCH 16/37] iommu: Add generic PASID table library

2018-02-28 Thread Jean-Philippe Brucker
On 27/02/18 18:51, Jacob Pan wrote: [...] >> +struct iommu_pasid_table_ops * >> +iommu_alloc_pasid_ops(enum iommu_pasid_table_fmt fmt, >> + struct iommu_pasid_table_cfg *cfg, void >> *cookie) +{ > I guess you don't need to pass in cookie here. The cookie is stored in the table

Re: [PATCH 16/37] iommu: Add generic PASID table library

2018-02-27 Thread Jacob Pan
On Mon, 12 Feb 2018 18:33:31 + Jean-Philippe Brucker wrote: > Add a small API within the IOMMU subsystem to handle different > formats of PASID tables. It uses the same principle as io-pgtable: > > * The IOMMU driver registers a PASID table with some

[PATCH 16/37] iommu: Add generic PASID table library

2018-02-12 Thread Jean-Philippe Brucker
Add a small API within the IOMMU subsystem to handle different formats of PASID tables. It uses the same principle as io-pgtable: * The IOMMU driver registers a PASID table with some invalidation callbacks. * The pasid-table lib allocates a set of tables of the right format, and returns an