Commit 5f9d15ca authored by John Stultz's avatar John Stultz Committed by Hridya Valsaraju
Browse files

BACKPORT: dma-buf: system_heap: Rework system heap to use sgtables instead of pagelists



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>
Bug: 173440990
(cherry picked from commit 38129575
git: //anongit.freedesktop.org/drm/drm-misc tags/drm-misc-next-2020-11-27)
Link: https://lore.kernel.org/patchwork/patch/1343069/


Change-Id: I69401e169ad766a4a4c46751ffaace51582b5a8c
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
[hridya: patch needed minor rebase to accommodate the kernel allocation
interface]
Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
parent de4163f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment