[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120120.074409.1835198567920956646.hdoyu@nvidia.com>
Date: Fri, 20 Jan 2012 06:44:09 +0100
From: Hiroshi Doyu <hdoyu@...dia.com>
To: "joerg.roedel@....com" <joerg.roedel@....com>,
"laurent.pinchart@...asonboard.com"
<laurent.pinchart@...asonboard.com>
CC: "iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"ohad@...ery.com" <ohad@...ery.com>,
"dwmw2@...radead.org" <dwmw2@...radead.org>,
"davidb@...eaurora.org" <davidb@...eaurora.org>,
"tony@...mide.com" <tony@...mide.com>,
"b08248@...il.com" <b08248@...il.com>,
"scottwood@...escale.com" <scottwood@...escale.com>
Subject: Re: [PATCH 2/5] iommu/amd: Implement DOMAIN_ATTR_GEOMETRY attribute
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
Subject: Re: [PATCH 2/5] iommu/amd: Implement DOMAIN_ATTR_GEOMETRY attribute
Date: Thu, 19 Jan 2012 17:27:09 +0100
Message-ID: <201201191727.10176.laurent.pinchart@...asonboard.com>
> Hi Joerg,
>
> On Thursday 19 January 2012 17:07:39 Joerg Roedel wrote:
> > On Thu, Jan 19, 2012 at 04:46:13PM +0100, Laurent Pinchart wrote:
> > > > +struct iommu_domain_geometry {
> > > > + u64 aperture_start; /* First address that can be mapped */
> > > > + u64 aperture_end; /* Last address that can be mapped */
> > >
> > > Would it make sense to use a platform-dependent type that represents
> > > physical addresses instead of u64 ?
> >
> > Well, u64 is a catch-all datatype which should suit all drivers. Is this
> > a problem at ARM?
>
> No, it's not a problem for ARM, at least to my knowledge. It just struck me as
> weird, as we have specific data types for other kinds of addresses (such as
> dma_addr_t).
>
> > We can also go the more complicated way of introducing an iova_addr_t or
> > something. But if possible I would like to avoid that.
"dma_addr_t" sounds nicer(and makes still sense) to me than a new "iova_addr_t".
--
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