[PATCH 2/7] au1100fb: fix DMA API abuse

2019-04-30 Thread Christoph Hellwig
Virtual addresses return from dma(m)_alloc_coherent are opaque in what backs then, and drivers must not poke into them. Switch the driver to use the generic DMA API mmap helper to avoid these games. Signed-off-by: Christoph Hellwig --- drivers/video/fbdev/au1100fb.c | 24 ---

Re: [PATCH 2/7] au1100fb: fix DMA API abuse

2019-05-06 Thread Bartlomiej Zolnierkiewicz
On 04/30/2019 01:00 PM, Christoph Hellwig wrote: > Virtual addresses return from dma(m)_alloc_coherent are opaque in what > backs then, and drivers must not poke into them. Switch the driver > to use the generic DMA API mmap helper to avoid these games. > > Signed-off-by: Christoph Hellwig Ac

Re: [PATCH 2/7] au1100fb: fix DMA API abuse

2019-05-07 Thread Christoph Hellwig
On Mon, May 06, 2019 at 03:49:35PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 04/30/2019 01:00 PM, Christoph Hellwig wrote: > > Virtual addresses return from dma(m)_alloc_coherent are opaque in what > > backs then, and drivers must not poke into them. Switch the driver > > to use the generic

Re: [PATCH 2/7] au1100fb: fix DMA API abuse

2019-05-07 Thread Manuel Lauss
On Tue, May 7, 2019 at 8:37 AM Christoph Hellwig wrote: > On Mon, May 06, 2019 at 03:49:35PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > On 04/30/2019 01:00 PM, Christoph Hellwig wrote: > > > Virtual addresses return from dma(m)_alloc_coherent are opaque in what > > > backs then, and drivers

Re: [PATCH 2/7] au1100fb: fix DMA API abuse

2019-06-02 Thread Christoph Hellwig
FYI, I've merged this patch into the dma-mapping tree to make progress with the generic uncached segment support for mips.