Re: [PATCH RFC 06/12] dma: direct: Provide accessor to dmem region

2025-03-13 Thread Maxime Ripard
On Mon, Mar 10, 2025 at 06:44:51PM +, Robin Murphy wrote: > On 2025-03-10 4:28 pm, Maxime Ripard wrote: > > On Mon, Mar 10, 2025 at 02:56:37PM +, Robin Murphy wrote: > > > On 2025-03-10 12:06 pm, Maxime Ripard wrote: > > > > Consumers of the direct DMA API will have to know which region the

[PATCH RFC 06/12] dma: direct: Provide accessor to dmem region

2025-03-11 Thread Maxime Ripard
Consumers of the direct DMA API will have to know which region their device allocate from in order for them to charge the memory allocation in the right one. Let's provide an accessor for that region. Signed-off-by: Maxime Ripard --- include/linux/dma-direct.h | 2 ++ kernel/dma/direct.c

Re: [PATCH RFC 06/12] dma: direct: Provide accessor to dmem region

2025-03-11 Thread Robin Murphy
On 2025-03-10 4:28 pm, Maxime Ripard wrote: On Mon, Mar 10, 2025 at 02:56:37PM +, Robin Murphy wrote: On 2025-03-10 12:06 pm, Maxime Ripard wrote: Consumers of the direct DMA API will have to know which region their device allocate from in order for them to charge the memory allocation in t

Re: [PATCH RFC 06/12] dma: direct: Provide accessor to dmem region

2025-03-11 Thread Maxime Ripard
On Mon, Mar 10, 2025 at 02:56:37PM +, Robin Murphy wrote: > On 2025-03-10 12:06 pm, Maxime Ripard wrote: > > Consumers of the direct DMA API will have to know which region their > > device allocate from in order for them to charge the memory allocation > > in the right one. > > This doesn't se

Re: [PATCH RFC 06/12] dma: direct: Provide accessor to dmem region

2025-03-11 Thread Robin Murphy
On 2025-03-10 12:06 pm, Maxime Ripard wrote: Consumers of the direct DMA API will have to know which region their device allocate from in order for them to charge the memory allocation in the right one. This doesn't seem to make much sense - dma-direct is not an allocator itself, it just provi