Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-08-25 Thread Kunihiko Hayashi
Hi John, On 2020/08/22 3:32, John Stultz wrote: On Fri, Aug 21, 2020 at 2:14 AM Kunihiko Hayashi wrote: On 2020/08/01 4:38, John Stultz wrote: On Fri, Jul 31, 2020 at 2:32 AM Kunihiko Hayashi wrote: On 2020/07/29 4:17, John Stultz wrote: Do you have a upstream driver that you plan to

Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-08-21 Thread John Stultz
On Fri, Aug 21, 2020 at 2:14 AM Kunihiko Hayashi wrote: > > On 2020/08/01 4:38, John Stultz wrote: > > On Fri, Jul 31, 2020 at 2:32 AM Kunihiko Hayashi > > wrote: > >> On 2020/07/29 4:17, John Stultz wrote: > >>> Do you have a upstream driver that you plan to make use this new call? > >> > >>

Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-08-21 Thread Kunihiko Hayashi
On 2020/08/01 4:38, John Stultz wrote: On Fri, Jul 31, 2020 at 2:32 AM Kunihiko Hayashi wrote: On 2020/07/29 4:17, John Stultz wrote: Do you have a upstream driver that you plan to make use this new call? Unfortunately I don't have an upstream driver using this call. This call is called

Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-07-31 Thread John Stultz
On Fri, Jul 31, 2020 at 2:32 AM Kunihiko Hayashi wrote: > On 2020/07/29 4:17, John Stultz wrote: > > Do you have a upstream driver that you plan to make use this new call? > > Unfortunately I don't have an upstream driver using this call. > > This call is called from dma-buf heaps "importer" or

Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-07-31 Thread Kunihiko Hayashi
Hi John, Thank you for your comment. On 2020/07/29 4:17, John Stultz wrote: On Thu, Jul 16, 2020 at 6:10 PM Kunihiko Hayashi wrote: Current dma-buf heaps can handle only default CMA. This introduces dma_heap_add_cma() function to attach CMA heaps that belongs to a device. At first, the

Re: [PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-07-28 Thread John Stultz
On Thu, Jul 16, 2020 at 6:10 PM Kunihiko Hayashi wrote: > > Current dma-buf heaps can handle only default CMA. This introduces > dma_heap_add_cma() function to attach CMA heaps that belongs to a device. > > At first, the driver calls of_reserved_mem_device_init() to set > memory-region property

[PATCH] dma-buf: heaps: Introduce dma_heap_add_cma() for non-default CMA heap

2020-07-16 Thread Kunihiko Hayashi
Current dma-buf heaps can handle only default CMA. This introduces dma_heap_add_cma() function to attach CMA heaps that belongs to a device. At first, the driver calls of_reserved_mem_device_init() to set memory-region property associated with reserved-memory defined as CMA to the device. And