lkml.org 
[lkml]   [2008]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Q] Why does dma_alloc_coherent() of ia64 GFP_DMA?
    On Mon, Nov 10, 2008 at 01:59:57PM +0100, Andi Kleen wrote:
    > Yasunori Goto <y-goto@jp.fujitsu.com> writes:

    > > 3) A device which allows over 4GB is hot-added.
    > > But dma_alloc_coherent() try to allocate DMA zone.
    > > Then OOM occurs because there is no freeable pages.
    > >
    > > I heard there are some users who require a few GB mlock.
    >
    > Normally mlock is limited to half the memory exactly to avoid
    > such problems.
    >
    > Also I believe there are some issues with non continuous memory on
    > some IA64 systems -- e.g. Altixes iirc have the requirement
    > that you use the IOMMU for higher memory. So it's probably
    > not easy to change.

    I am not sure what is be referred to here, but all of an Altix's memory is
    DMA capable with the exception of the stuff covered by the MSPEC driver
    (that is uncached memory). There are certainly all sort of special
    requirements for doing transfers on Altix to eliminate memory ordering
    problems, but nothing specific that I recall related to address ranges
    and DMA.

    I appologize in advance if I am answering a different question that
    was asked.

    Thanks,
    Robin


    \
     
     \ /
      Last update: 2008-11-10 20:09    [W:5.966 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site