Thread (9 messages) 9 messages, 3 authors, 2019-06-25

Re: [PATCH 2/3] au1200fb: fix DMA API abuse

flat view

From: Manuel Lauss <manuel.lauss@gmail.com>
Date: 2019-05-15 11:11:19
Also in: linux-mips, lkml

Servus Christoph,

On Thu, May 9, 2019 at 7:39 PM Christoph Hellwig [off-list ref] wrote:
Virtual addresses return from dma(m)_alloc_attrs are opaque in what
backs then, and drivers must not poke into them.  Similarly caching
modes are not supposed to be directly set by the driver.  Switch the
driver to use the generic DMA API mmap helper to avoid these problems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/video/fbdev/au1200fb.c | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)
Runs fine on my test system.

Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help