Re: [BUG] dma-ranges, reserved memory regions, dma_alloc_coherent: possible bug?

2019-10-29 Thread Daniele Alessandrelli
On Tue, Oct 29, 2019 at 9:43 AM Daniele Alessandrelli wrote: > > On Mon, Oct 28, 2019 at 10:59 AM Vladimir Murzin > wrote: > > > > @Daniele, it'd be handy to know if that fix issue for you... > > > > Apologies, I've been traveling for the last f

Re: [BUG] dma-ranges, reserved memory regions, dma_alloc_coherent: possible bug?

2019-10-29 Thread Daniele Alessandrelli
On Mon, Oct 28, 2019 at 10:59 AM Vladimir Murzin wrote: > > @Daniele, it'd be handy to know if that fix issue for you... > Apologies, I've been traveling for the last few days and haven't managed to try it yet. I'll do it later today though and let you know. Regards, Daniele ___

[BUG] dma-ranges, reserved memory regions, dma_alloc_coherent: possible bug?

2019-10-14 Thread Daniele Alessandrelli
Hi, It looks like dma_alloc_coherent() is setting the dma_handle output parameter to the memory physical address and not the device bus address when the device is using reserved memory regions for DMA allocation. This is despite using 'dma_ranges' in the device tree to describe the DMA memory mapp