[lkml]   [2010]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC 3/3] mm: iommu: The Virtual Contiguous Memory Manager
    Andi Kleen wrote:
    > The standard Linux approach to such a problem is to write
    > a library that drivers can use for common functionality, not put a middle
    > layer inbetween. Libraries are much more flexible than layers.

    I've been thinking about this statement. Its very true. I use the
    genalloc lib which is a great piece of software to manage VCMs
    (domains in linux/iommu.h parlance?).

    On our hardware we have 3 things we have to do, use the minimum set of
    mappings to map a buffer because of the extremely small TLBs in all the
    IOMMUs we have to support, use special virtual alignments and direct
    various multimedia flows through certain IOMMUs. To support this we:

    1. Use the genalloc lib to allocate virtual space for our IOMMUs,
    allowing virtual alignment to be specified.

    2. Have a maxmunch allocator that manages our own physical pool.

    I think I may be able to support this using the iommu interface and
    some util functions. The big thing that's lost is the unified topology
    management, but as demonstrated that may fall out from a refactor.

    Anyhow, sounds like a few things to try. Thanks for the feedback so
    far. I'll do some refactoring and see what's missing.

    Sent by an employee of the Qualcomm Innovation Center, Inc.
    The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

     \ /
      Last update: 2010-07-03 08:39    [W:0.019 / U:11.800 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site