[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <C5ECD7A89D1DC44195F34B25E172658D2B2A51@039-SN2MPN1-013.039d.mgd.msft.net>
Date: Mon, 3 Dec 2012 16:57:29 +0000
From: Sethi Varun-B16395 <B16395@...escale.com>
To: Joerg Roedel <joro@...tes.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
Wood Scott-B07421 <B07421@...escale.com>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
Tabi Timur-B04825 <B04825@...escale.com>
Subject: RE: [PATCH 3/4 v5] iommu/fsl: Add iommu domain attributes required
by fsl PAMU driver.
> -----Original Message-----
> From: iommu-bounces@...ts.linux-foundation.org [mailto:iommu-
> bounces@...ts.linux-foundation.org] On Behalf Of Joerg Roedel
> Sent: Sunday, December 02, 2012 7:33 PM
> To: Sethi Varun-B16395
> Cc: linux-kernel@...r.kernel.org; iommu@...ts.linux-foundation.org; Wood
> Scott-B07421; linuxppc-dev@...ts.ozlabs.org; Tabi Timur-B04825
> Subject: Re: [PATCH 3/4 v5] iommu/fsl: Add iommu domain attributes
> required by fsl PAMU driver.
>
> Hmm, we need to work out a good abstraction for this.
>
> On Tue, Nov 20, 2012 at 07:24:56PM +0530, Varun Sethi wrote:
> > Added the following domain attributes required by FSL PAMU driver:
> > 1. Subwindows field added to the iommu domain geometry attribute.
>
> Are the Subwindows mapped with full size or do you map only parts of the
> subwindows?
>
[Sethi Varun-B16395] It's possible to map a part of the subwindow i.e. size of the mapping can be less than the sub window size.
> > + * This attribute indicates number of DMA subwindows supported by
> > + * the geometry. If there is a single window that maps the entire
> > + * geometry, attribute must be set to "1". A value of "0" implies
> > + * that this mechanism is not used at all(normal paging is used).
> > + * Value other than* "0" or "1" indicates the actual number of
> > + * subwindows.
> > + */
>
> This semantic is ugly, how about a feature detection mechanism?
>
[Sethi Varun-B16395] A feature mechanism to query the type of IOMMU?
-Varun
--
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