Skip to content

Commit 95f4639

Browse files
committed
dma-buf: heaps: Support carved-out heaps and ECC related-flags
Hi, This series is the follow-up of the discussion that John and I had a few months ago here: https://lore.kernel.org/all/CANDhNCquJn6bH3KxKf65BWiTYLVqSd9892-xtFDHHqqyrroCMQ@mail.gmail.com/ The initial problem we were discussing was that I'm currently working on a platform which has a memory layout with ECC enabled. However, enabling the ECC has a number of drawbacks on that platform: lower performance, increased memory usage, etc. So for things like framebuffers, the trade-off isn't great and thus there's a memory region with ECC disabled to allocate from for such use cases. After a suggestion from John, I chose to start using heap allocations flags to allow for userspace to ask for a particular ECC setup. This is then backed by a new heap type that runs from reserved memory chunks flagged as such, and the existing DT properties to specify the ECC properties. We could also easily extend this mechanism to support more flags, or through a new ioctl to discover which flags a given heap supports. I submitted a draft PR to the DT schema for the bindings used in this PR: devicetree-org/dt-schema#138 Let me know what you think, Maxime To: Rob Herring <robh@kernel.org> To: Saravana Kannan <saravanak@google.com> To: Sumit Semwal <sumit.semwal@linaro.org> To: Benjamin Gaignard <benjamin.gaignard@collabora.com> To: Brian Starkey <Brian.Starkey@arm.com> To: John Stultz <jstultz@google.com> To: T.J. Mercier <tjmercier@google.com> To: Christian König <christian.koenig@amd.com> Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com> Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Maxime Ripard <mripard@kernel.org> --- Changes in v2: - EDITME: describe what is new in this series revision. - EDITME: use bulletpoints and terse descriptions. - Link to v1: https://lore.kernel.org/r/20240515-dma-buf-ecc-heap-v1-0-54cbbd049511@kernel.org --- b4-submit-tracking --- # This section is used internally by b4 prep for tracking purposes. { "series": { "revision": 2, "change-id": "20240515-dma-buf-ecc-heap-28a311d2c94e", "prefixes": [], "history": { "v1": [ "20240515-dma-buf-ecc-heap-v1-0-54cbbd049511@kernel.org" ] } } }
1 parent a38297e commit 95f4639

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)