lkml.org 
[lkml]   [2019]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v6 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps
    On Wed, Jul 24, 2019 at 07:38:07AM -0400, Laura Abbott wrote:
    > It's not just an optimization for Ion though. Ion was designed to
    > let the callers choose between system and multiple CMA heaps.

    Who cares about ion? That some out of tree android crap that should
    not be relevant for upstream except as an example for how not to design
    things..

    > On other
    > systems there may be multiple CMA regions dedicated to a specific
    > purpose or placed at a specific address. The callers need to
    > be able to choose exactly whether they want a particular CMA region
    > or discontiguous regions.

    At least in cma is only used either with the global pool or a per-device
    cma pool. I think if you want to make this new dma-buf API fit in with
    the rest with the kernel you follow that model, and pass in a struct
    device to select the particular cma area, similar how the DMA allocator
    works.

    \
     
     \ /
      Last update: 2019-07-25 14:49    [W:4.222 / U:0.512 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site