Re: [PATCH v4 0/3] dma-buf: heaps: Use constant name for CMA heap

2025-07-07 Thread Jared Kangas
On Tue, Jun 10, 2025 at 06:12:28AM -0700, Jared Kangas wrote: > Hi all, > > This patch series is based on a previous discussion around CMA heap > naming. [1] The heap's name depends on the device name, which is > generally "reserved", "linux,cma", or &quo

[PATCH v4 2/3] dma-buf: heaps: Parameterize heap name in __add_cma_heap()

2025-06-10 Thread Jared Kangas
Prepare for the introduction of a fixed-name CMA heap by replacing the unused void pointer parameter in __add_cma_heap() with the heap name. Reviewed-by: Maxime Ripard Signed-off-by: Jared Kangas --- drivers/dma-buf/heaps/cma_heap.c | 18 +++--- 1 file changed, 11 insertions(+), 7

[PATCH v4 3/3] dma-buf: heaps: Give default CMA heap a fixed name

2025-06-10 Thread Jared Kangas
simplify naming, unconditionally name it "default_cma_region", but keep a legacy node in place backed by the same underlying allocator for backwards compatibility. Reviewed-by: Maxime Ripard Signed-off-by: Jared Kangas --- Documentation/userspace-api/dma-buf-heaps.rst | 7 +--

[PATCH v4 1/3] Documentation: dma-buf: heaps: Fix code markup

2025-06-10 Thread Jared Kangas
Code snippets should be wrapped in double backticks to follow reStructuredText semantics; the use of single backticks uses the :title-reference: role by default, which isn't quite what we want. Add double backticks to code snippets to fix this. Reviewed-by: Maxime Ripard Signed-off-by:

[PATCH v4 0/3] dma-buf: heaps: Use constant name for CMA heap

2025-06-10 Thread Jared Kangas
DhNCroe6ZBtN_o=c71kzffawk-ff5rcdnr9p5h1sgpows...@mail.gmail.com/ Jared Kangas (3): Documentation: dma-buf: heaps: Fix code markup dma-buf: heaps: Parameterize heap name in __add_cma_heap() dma-buf: heaps: Give default CMA heap a fixed name Documentation/userspace-api/dma-buf-heaps.r

[PATCH v3 3/3] dma-buf: heaps: Give default CMA heap a fixed name

2025-05-22 Thread Jared Kangas
simplify naming, unconditionally name it "default_cma_region", but keep a legacy node in place backed by the same underlying allocator for backwards compatibility. Signed-off-by: Jared Kangas --- Documentation/userspace-api/dma-buf-heaps.rst | 7 +-- drivers/dma-buf/heaps/Kconfig

[PATCH v3 2/3] dma-buf: heaps: Parameterize heap name in __add_cma_heap()

2025-05-22 Thread Jared Kangas
Prepare for the introduction of a fixed-name CMA heap by replacing the unused void pointer parameter in __add_cma_heap() with the heap name. Signed-off-by: Jared Kangas --- drivers/dma-buf/heaps/cma_heap.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a

[PATCH v3 0/3] dma-buf: heaps: Use constant name for CMA heap

2025-05-22 Thread Jared Kangas
PS_CMA_LEGACY prompt. - Touch up commit log wording. v2: - Use tabs instead of spaces for large vertical alignment. [1]: https://lore.kernel.org/all/f6412229-4606-41ad-8c05-7bbba2eb6...@ti.com/ [2]: https://lore.kernel.org/all/CANDhNCroe6ZBtN_o=c71kzffawk-ff5rcdnr9p5h1sgpows...@mail.gmail.com

[PATCH v3 1/3] Documentation: dma-buf: heaps: Fix code markup

2025-05-22 Thread Jared Kangas
Code snippets should be wrapped in double backticks to follow reStructuredText semantics; the use of single backticks uses the :title-reference: role by default, which isn't quite what we want. Add double backticks to code snippets to fix this. Signed-off-by: Jared Kangas --- Document

Re: [PATCH v2 2/2] dma-buf: heaps: Give default CMA heap a fixed name

2025-04-24 Thread Jared Kangas
Hi Maxime, On Thu, Apr 24, 2025 at 10:33:58AM +0200, Maxime Ripard wrote: > Hi Jared, > > Thanks for working on this > > On Tue, Apr 22, 2025 at 12:19:39PM -0700, Jared Kangas wrote: > > The CMA heap's name in devtmpfs can vary depending on how the heap is > &g

Re: [PATCH v2 0/2] dma-buf: heaps: Use constant name for CMA heap

2025-04-23 Thread Jared Kangas
Hi Sumit, On Wed, Apr 23, 2025 at 08:53:20PM +0530, Sumit Semwal wrote: > Hello Jared, > > On Wed, 23 Apr 2025 at 00:49, Jared Kangas wrote: > > > > Hi all, > > > > This patch series is based on a previous discussion around CMA heap > > naming. [1] The

[PATCH v2 0/2] dma-buf: heaps: Use constant name for CMA heap

2025-04-22 Thread Jared Kangas
y involved solution for devtmpfs, but if I'm wrong on this, please let me know. Changelog: v2: Use tabs instead of spaces for large vertical alignment. Jared Kangas (2): dma-buf: heaps: Parameterize heap name in __add_cma_heap() dma-buf: heaps: Give default CMA heap a fixed name

[PATCH v2 1/2] dma-buf: heaps: Parameterize heap name in __add_cma_heap()

2025-04-22 Thread Jared Kangas
Prepare for the introduction of a fixed-name CMA heap by replacing the unused void pointer parameter in __add_cma_heap() with the heap name. Signed-off-by: Jared Kangas --- drivers/dma-buf/heaps/cma_heap.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a

[PATCH v2 2/2] dma-buf: heaps: Give default CMA heap a fixed name

2025-04-22 Thread Jared Kangas
naming, just name it "default_cma", and keep a legacy node in place backed by the same underlying structure for backwards compatibility. Signed-off-by: Jared Kangas --- Documentation/userspace-api/dma-buf-heaps.rst | 11 +++ drivers/dma-buf/heaps/Kconfig

[PATCH 2/2] dma-buf: heaps: Give default CMA heap a fixed name

2025-04-22 Thread Jared Kangas
naming, just name it "default_cma", and keep a legacy node in place backed by the same underlying structure for backwards compatibility. Signed-off-by: Jared Kangas --- Documentation/userspace-api/dma-buf-heaps.rst | 11 +++ drivers/dma-buf/heaps/Kconfig

[PATCH 1/2] dma-buf: heaps: Parameterize heap name in __add_cma_heap()

2025-04-22 Thread Jared Kangas
Prepare for the introduction of a fixed-name CMA heap by replacing the unused void pointer parameter in __add_cma_heap() with the heap name. Signed-off-by: Jared Kangas --- drivers/dma-buf/heaps/cma_heap.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a

[PATCH 0/2] dma-buf: heaps: Use constant name for CMA heap

2025-04-22 Thread Jared Kangas
y involved solution for devtmpfs, but if I'm wrong on this, please let me know. Thanks, Jared Jared Kangas (2): dma-buf: heaps: Parameterize heap name in __add_cma_heap() dma-buf: heaps: Give default CMA heap a fixed name Documentation/userspace-api/dma-buf-heaps.rst | 11 --- drive