[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1438102860.6314.49.camel@localhost>
Date: Tue, 28 Jul 2015 10:01:00 -0700
From: Sudeep Dutt <sudeep.dutt@...el.com>
To: David Woodhouse <dwmw2@...radead.org>
Cc: Robin Murphy <robin.murphy@....com>,
Ashutosh Dixit <ashutosh.dixit@...el.com>,
Joerg Roedel <joro@...tes.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"David S. Miller" <davem@...emloft.net>,
Nikhil Rao <nikhil.rao@...el.com>,
Anil S Keshavamurthy <anil.s.keshavamurthy@...el.com>,
Harish Chegondi <harish.chegondi@...el.com>,
"sakari.ailus@...ux.intel.com" <sakari.ailus@...ux.intel.com>,
"Dutt, Sudeep" <sudeep.dutt@...el.com>
Subject: Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library
On Tue, 2015-07-28 at 15:38 +0100, David Woodhouse wrote:
> On Tue, 2015-07-28 at 11:41 +0100, Robin Murphy wrote:
> > On 28/07/15 11:03, Joerg Roedel wrote:
> > > On Mon, Jul 27, 2015 at 04:57:32PM -0700, Ashutosh Dixit wrote:
> > > > From: Harish Chegondi <harish.chegondi@...el.com>
> > > >
> > > > This patch converts iova.c into a library, moving it from
> > > > drivers/iommu/ to lib/, and exports its virtual address
> > > > allocation and
> > > > management functions so that other modules can reuse them.
> > > >
> > > > Cc: Joerg Roedel <joro@...tes.org>
> > > > Reviewed-by: Anil S Keshavamurthy <anil.s.keshavamurthy@...el.com
> > > > >
> > > > Reviewed-by: Sudeep Dutt <sudeep.dutt@...el.com>
> > > > Signed-off-by: Harish Chegondi <harish.chegondi@...el.com>
> > >
> > > Where is this going to be used outside of the IOMMU world?
> > >
We are using the IOVA generator in the SCIF driver posted @
http://thread.gmane.org/gmane.linux.kernel/2005895 under
drivers/misc/mic/scif
> >
> > ...and how does it relate to the patches from Sakari (+CC) doing much
> > the same thing[1]?
>
The patch series from Sakari does the right thing by moving the IOVA
cache management to the IOVA library. We will simply drop this current
patch as it is incorrect.
> I merged Sakari's patches into the intel-iommu git tree today, FWIW.
>
> If there's really a need to move it from drivers/iommu/ to lib/ then we
> could feasibly do that too.
>
The patch series from Sakari should work perfectly for us. We will post
a v2 of the current SCIF patch series without this IOVA patch and modify
the SCIF driver to use the newly added iova_cache_get(..) and
iova_cache_put(..) APIs once it is available in Linus's tree. It would
make it easier for us to integrate if Sakari's patches reach mainline
soon.
It might be cleaner to move IOVA to lib/ in the longer term since we
will have multiple driver subsystems using it, but it should work just
fine for now.
Thanks for the review!
Sudeep Dutt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists