[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250820-gainful-cuttlefish-of-pleasure-b3ecc0@houat>
Date: Wed, 20 Aug 2025 17:22:18 +0200
From: Maxime Ripard <mripard@...nel.org>
To: Charan Teja Kalla <quic_charante@...cinc.com>
Cc: Rob Herring <robh@...nel.org>, Saravana Kannan <saravanak@...gle.com>,
Sumit Semwal <sumit.semwal@...aro.org>, Benjamin Gaignard <benjamin.gaignard@...labora.com>,
Brian Starkey <Brian.Starkey@....com>, John Stultz <jstultz@...gle.com>,
"T.J. Mercier" <tjmercier@...gle.com>, Christian König <christian.koenig@....com>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Andrew Davis <afd@...com>,
Jared Kangas <jkangas@...hat.com>, Mattijs Korpershoek <mkorpershoek@...nel.org>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linaro-mm-sig@...ts.linaro.org
Subject: Re: [PATCH v5 2/2] dma-buf: heaps: Introduce a new heap for reserved
memory
Hi,
On Fri, Aug 08, 2025 at 03:46:21PM +0530, Charan Teja Kalla wrote:
> On 6/17/2025 5:55 PM, Maxime Ripard wrote:
> > +static void carveout_heap_dma_buf_release(struct dma_buf *buf)
> > +{
> > + struct carveout_heap_buffer_priv *buffer_priv = buf->priv;
> > + struct carveout_heap_priv *heap_priv = buffer_priv->heap;
> > + unsigned long len = buffer_priv->num_pages * PAGE_SIZE;
> > +
> > + gen_pool_free(heap_priv->pool, buffer_priv->paddr, len);
>
> Just checking If clearing of the memory is missed before releasing it to
> the free pool. If not, isn't it a leak of data when the heap is being
> used by the multiple apps.
>
> BTW, thanks for these patches.
Thanks for the review. Note that we've since moved to another approach
here:
https://lore.kernel.org/r/20250721-dma-buf-ecc-heap-v7-0-031836e1a942@kernel.org
Maxime
Download attachment "signature.asc" of type "application/pgp-signature" (274 bytes)
Powered by blists - more mailing lists