• John Stultz's avatar
    dma-buf: system_heap: Rework system heap to use sgtables instead of pagelists · 38129575
    John Stultz authored
    In preparation for some patches to optmize the system
    heap code, rework the dmabuf exporter to utilize sgtables rather
    then pageslists for tracking the associated pages.
    
    This will allow for large order page allocations, as well as
    more efficient page pooling.
    
    In doing so, the system heap stops using the heap-helpers logic
    which sadly is not quite as generic as I was hoping it to be, so
    this patch adds heap specific implementations of the dma_buf_ops
    function handlers.
    
    Cc: Sumit Semwal <sumit.semwal@linaro.org>
    Cc: Liam Mark <lmark@codeaurora.org>
    Cc: Laura Abbott <labbott@kernel.org>
    Cc: Brian Starkey <Brian.Starkey@arm.com>
    Cc: Hridya Valsaraju <hridya@google.com>
    Cc: Suren Baghdasaryan <surenb@google.com>
    Cc: Sandeep Patil <sspatil@google.com>
    Cc: Daniel Mentz <danielmentz@google.com>
    Cc: Chris Goldsworthy <cgoldswo@codeaurora.org>
    Cc: Ørjan Eide <orjan.eide@arm.com>
    Cc: Robin Murphy <robin.murphy@arm.com>
    Cc: Ezequiel Garcia <ezequiel@collabora.com>
    Cc: Simon Ser <contact@emersion.fr>
    Cc: James Jones <jajones@nvidia.com>
    Cc: linux-media@vger.kernel.org
    Cc: dri-devel@lists.freedesktop.org
    Reviewed-by: default avatarBrian Starkey <brian.starkey@arm.com>
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20201121235002.69945-2-john.stultz@linaro.org
    38129575
system_heap.c 8.45 KB