[ofa-general] Re: InfiniBand card (mthca) in Linux
Lukas Hejtmanek
xhejtman at ics.muni.cz
Mon Jul 9 02:22:57 PDT 2007
On Mon, Jul 09, 2007 at 12:12:10PM +0300, Muli Ben-Yehuda wrote:
> You missed an important bit of Keir's response---it's perfectly fine
> to use alloc_pages provided you then use the dma_map_single API, which
> for Xen dom0 will take care of bounce-buffering to a
> machine-contiguous buffer if necessary. I am not sure if the same
> holds for a domU kernel.
I'm not familiar with this stuff but dma_map_single is invoked via
pci_map_page, isn't it?
so alloc_pages and then pci_map_page is ok. But in mthca_memfree.c is
alloc_pages and then pci_map_sg is used. Is it still OK?
--
Lukáš Hejtmánek
More information about the general
mailing list