Re: [RFC PATCH 18/18] ioasid: Add /dev/ioasid for userspace

2021-03-12 Thread Jason Gunthorpe
On Thu, Mar 11, 2021 at 02:55:34PM -0800, Jacob Pan wrote: > Hi Jason, > > Thanks for the review. > > On Wed, 10 Mar 2021 15:23:01 -0400, Jason Gunthorpe wrote: > > > On Sat, Feb 27, 2021 at 02:01:26PM -0800, Jacob Pan wrote: > > > > > +/* IOCTLs for IOASID file descriptor (/dev/ioasi

Re: [RFC PATCH 18/18] ioasid: Add /dev/ioasid for userspace

2021-03-11 Thread Jacob Pan
Hi Jason, Thanks for the review. On Wed, 10 Mar 2021 15:23:01 -0400, Jason Gunthorpe wrote: > On Sat, Feb 27, 2021 at 02:01:26PM -0800, Jacob Pan wrote: > > > +/* IOCTLs for IOASID file descriptor (/dev/ioasid) */ > > + > > +/** > > + * IOASID_GET_API_VERSION - _IO(IOASID_TYP

Re: [RFC PATCH 18/18] ioasid: Add /dev/ioasid for userspace

2021-03-10 Thread Jason Gunthorpe
On Sat, Feb 27, 2021 at 02:01:26PM -0800, Jacob Pan wrote: > +/* IOCTLs for IOASID file descriptor (/dev/ioasid) */ > + > +/** > + * IOASID_GET_API_VERSION - _IO(IOASID_TYPE, IOASID_BASE + 0) > + * > + * Report the version of the IOASID API. This allows us to bump the entire > +

[RFC PATCH 18/18] ioasid: Add /dev/ioasid for userspace

2021-02-27 Thread Jacob Pan
From: Liu Yi L I/O Address Space IDs (IOASIDs) is used to tag DMA requests to target multiple DMA address spaces for physical devices. Its PCI terminology is called PASID (Process Address Space ID). Platforms with PASID support can provide PASID granularity DMA isolation, which is very useful for