Re: [PATCH v4 3/7] dma-buf: heaps: restricted_heap: Add private heap ops

2024-01-31 Thread Joakim Bech
On Fri, Jan 12, 2024 at 05:23:07PM -0800, John Stultz wrote: > On Fri, Jan 12, 2024 at 4:13 PM Jeffrey Kardatzke > wrote: > > On Fri, Jan 12, 2024 at 3:51 PM John Stultz wrote: > > > > > > On Fri, Jan 12, 2024 at 3:27 PM Jeffrey Kardatzke > > > wrote: > > > > On Fri, Jan 12, 2024 at 2:52 PM

Re: [PATCH v4 3/7] dma-buf: heaps: restricted_heap: Add private heap ops

2024-01-31 Thread Joakim Bech
On Fri, Jan 12, 2024 at 05:20:10PM +0800, Yong Wu wrote: > Add "struct restricted_heap_ops". For the restricted memory, totally there > are two steps: > a) memory_alloc: Allocate the buffer in kernel; > b) memory_restrict: Restrict/Protect/Secure that buffer. > The memory_alloc is mandatory while

Re: [PATCH v4 2/7] dma-buf: heaps: Initialize a restricted heap

2024-01-31 Thread Joakim Bech
On Fri, Jan 12, 2024 at 05:20:09PM +0800, Yong Wu wrote: > Initialize a restricted heap. Currently just add a null heap, Prepare for > the later patches. > > Signed-off-by: Yong Wu > --- > drivers/dma-buf/heaps/Kconfig | 9 > drivers/dma-buf/heaps/Makefile | 3 +- >

Re: [PATCH v3 0/7] dma-buf: heaps: Add secure heap

2023-12-13 Thread Joakim Bech
On Wed, Dec 13, 2023 at 01:38:25PM +0200, Pekka Paalanen wrote: > On Wed, 13 Dec 2023 11:15:49 +0100 > Joakim Bech wrote: > > > On Wed, Dec 13, 2023 at 11:05:17AM +0200, Pekka Paalanen wrote: > > > On Tue, 12 Dec 2023 16:36:35 + > > > Simon Ser wrote: &

Re: [PATCH v3 0/7] dma-buf: heaps: Add secure heap

2023-12-13 Thread Joakim Bech
On Wed, Dec 13, 2023 at 11:05:17AM +0200, Pekka Paalanen wrote: > On Tue, 12 Dec 2023 16:36:35 + > Simon Ser wrote: > > > Is there a chance to pick a better name than "secure" here? > > > > "Secure" is super overloaded, it's not clear at all what it means from > > just the name. Something

Re: [PATCH 4/9] dma-buf: heaps: Initialise MediaTek secure heap

2023-09-27 Thread Joakim Bech
On Mon, Sep 11, 2023 at 10:30:33AM +0800, Yong Wu wrote: > Initialise a mtk_svp heap. Currently just add a null heap, Prepare for > the later patches. > > Signed-off-by: Yong Wu > --- > drivers/dma-buf/heaps/Kconfig | 8 ++ > drivers/dma-buf/heaps/Makefile | 1 + >

Re: [PATCH 6/9] dma-buf: heaps: mtk_sec_heap: Add tee service call for buffer allocating/freeing

2023-09-27 Thread Joakim Bech
On Mon, Sep 11, 2023 at 10:30:35AM +0800, Yong Wu wrote: > Add TEE service call for secure memory allocating/freeing. > > Signed-off-by: Anan Sun > Signed-off-by: Yong Wu > --- > drivers/dma-buf/heaps/mtk_secure_heap.c | 69 - > 1 file changed, 68 insertions(+), 1

Re: [PATCH 5/9] dma-buf: heaps: mtk_sec_heap: Initialise tee session

2023-09-27 Thread Joakim Bech
On Mon, Sep 25, 2023 at 12:49:50PM +, Yong Wu (吴勇) wrote: > On Tue, 2023-09-12 at 11:32 +0200, AngeloGioacchino Del Regno wrote: > > Il 12/09/23 08:17, Yong Wu (吴勇) ha scritto: > > > On Mon, 2023-09-11 at 11:29 +0200, AngeloGioacchino Del Regno > > > wrote: > > > > Il 11/09/23 04:30, Yong Wu