Re: DMA-heap driver hints

2023-01-25 Thread James Jones
On 1/24/23 15:14, T.J. Mercier wrote: On Mon, Jan 23, 2023 at 11:49 PM Christian König wrote: Am 24.01.23 um 04:56 schrieb James Jones: On 1/23/23 08:58, Laurent Pinchart wrote: Hi Christian, On Mon, Jan 23, 2023 at 05:29:18PM +0100, Christian König wrote: Am 23.01.23 um 14:55 schrieb Laur

Re: DMA-heap driver hints

2023-01-25 Thread John Stultz
Sorry for the delay, this was almost ready to send, but then got forgotten in my drafts folder. On Mon, Jan 23, 2023 at 11:15 PM Christian König wrote: > Am 24.01.23 um 06:19 schrieb John Stultz: > > On Mon, Jan 23, 2023 at 8:29 AM Christian König > > wrote: > >> Am 23.01.23 um 14:55 schrieb Lau

Re: DMA-heap driver hints

2023-01-24 Thread T.J. Mercier
On Mon, Jan 23, 2023 at 11:49 PM Christian König wrote: > > Am 24.01.23 um 04:56 schrieb James Jones: > > On 1/23/23 08:58, Laurent Pinchart wrote: > >> Hi Christian, > >> > >> On Mon, Jan 23, 2023 at 05:29:18PM +0100, Christian König wrote: > >>> Am 23.01.23 um 14:55 schrieb Laurent Pinchart: > >

Re: DMA-heap driver hints

2023-01-23 Thread Christian König
Am 24.01.23 um 04:56 schrieb James Jones: On 1/23/23 08:58, Laurent Pinchart wrote: Hi Christian, On Mon, Jan 23, 2023 at 05:29:18PM +0100, Christian König wrote: Am 23.01.23 um 14:55 schrieb Laurent Pinchart: Hi Christian, CC'ing James as I think this is related to his work on the unix devi

Re: DMA-heap driver hints

2023-01-23 Thread Christian König
Am 24.01.23 um 06:19 schrieb John Stultz: On Mon, Jan 23, 2023 at 8:29 AM Christian König wrote: Am 23.01.23 um 14:55 schrieb Laurent Pinchart: - I assume some drivers will be able to support multiple heaps. How do you envision this being implemented ? I don't really see an use case for t

Re: DMA-heap driver hints

2023-01-23 Thread John Stultz
On Mon, Jan 23, 2023 at 8:29 AM Christian König wrote: > Am 23.01.23 um 14:55 schrieb Laurent Pinchart: > > - I assume some drivers will be able to support multiple heaps. How do > >you envision this being implemented ? > > I don't really see an use case for this. > > We do have some drivers w

Re: DMA-heap driver hints

2023-01-23 Thread John Stultz
On Mon, Jan 23, 2023 at 5:55 AM Laurent Pinchart wrote: > > Hi Christian, > > CC'ing James as I think this is related to his work on the unix device > memory allocator ([1]). > > [1] > https://lore.kernel.org/dri-devel/8b555674-1c5b-c791-4547-2ea7c16ae...@nvidia.com/ > > On Mon, Jan 23, 2023 at 0

Re: DMA-heap driver hints

2023-01-23 Thread James Jones
On 1/23/23 08:58, Laurent Pinchart wrote: Hi Christian, On Mon, Jan 23, 2023 at 05:29:18PM +0100, Christian König wrote: Am 23.01.23 um 14:55 schrieb Laurent Pinchart: Hi Christian, CC'ing James as I think this is related to his work on the unix device memory allocator ([1]). Thank you for

Re: DMA-heap driver hints

2023-01-23 Thread Laurent Pinchart
Hi Christian, On Mon, Jan 23, 2023 at 05:29:18PM +0100, Christian König wrote: > Am 23.01.23 um 14:55 schrieb Laurent Pinchart: > > Hi Christian, > > > > CC'ing James as I think this is related to his work on the unix device > > memory allocator ([1]). > > > > [1] > > https://lore.kernel.org/dri-

Re: DMA-heap driver hints

2023-01-23 Thread Christian König
Am 23.01.23 um 14:55 schrieb Laurent Pinchart: Hi Christian, CC'ing James as I think this is related to his work on the unix device memory allocator ([1]). [1] https://lore.kernel.org/dri-devel/8b555674-1c5b-c791-4547-2ea7c16ae...@nvidia.com/ On Mon, Jan 23, 2023 at 01:37:54PM +0100, Christia

Re: DMA-heap driver hints

2023-01-23 Thread Laurent Pinchart
Hi Christian, CC'ing James as I think this is related to his work on the unix device memory allocator ([1]). [1] https://lore.kernel.org/dri-devel/8b555674-1c5b-c791-4547-2ea7c16ae...@nvidia.com/ On Mon, Jan 23, 2023 at 01:37:54PM +0100, Christian König wrote: > Hi guys, > > this is just an RF

DMA-heap driver hints

2023-01-23 Thread Christian König
Hi guys, this is just an RFC! The last time we discussed the DMA-buf coherency problem [1] we concluded that DMA-heap first needs a better way to communicate to userspace which heap to use for a certain device. As far as I know userspace currently just hard codes that information which is certain