# Re: \[PATCH 12/16\] staging/comedi: mark as broken

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2019-06-14 14:49:30 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2019/06/5629174
- Thread: https://ratatoskr.run/linux-s390/2019/06/5629039/t.md

```text
On Fri, Jun 14, 2019 at 04:02:39PM +0200, Greg KH wrote:
> Perhaps a hint as to how we can fix this up?  This is the first time
> I've heard of the comedi code not handling dma properly.

It can be fixed by:

 a) never calling virt_to_page (or vmalloc_to_page for that matter)
    on dma allocation
 b) never remapping dma allocation with conflicting cache modes
    (no remapping should be doable after a) anyway).

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
