Re: [PATCH] iommu: Remove stub functions for !CONFIG_IOMMU_API

From: Roedel, Joerg
Date: Mon Aug 29 2011 - 08:25:30 EST


On Mon, Aug 29, 2011 at 06:59:05AM -0400, Ohad Ben-Cohen wrote:
> On Mon, Aug 29, 2011 at 1:15 PM, Roedel, Joerg <Joerg.Roedel@xxxxxxx> wrote:
> > Isn't the abstraction that the drivers use the dma-api? There should be
> > an implementation that doesn't require the iommu-api for such devices,
> > no?
>
> Before we boot a remote processor device we often need to map it to
> some (specific) bus addresses (e.g. to allow the processor access to
> certain peripheral devices), and we're doing it directly with the
> IOMMU API.
>
> Do you think this kind of functionality should be added to the DMA API as well ?
>
> IIRC, it was suggested awhile ago but you supported using the IOMMU
> API directly in this case.

Right, when the system has an iommu then the iommu-api is the right
choice to do that. But how to you handle this on systems without an
iommu?

Joerg


--
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/