search for: virtio_console_use_dma_mem

Displaying 2 results from an estimated 2 matches for "virtio_console_use_dma_mem".

2012 Jun 01
2
Question regarding Virtio Console and Remoteproc
...modem. This works fine for me, because I can pass the IPC memory region to dma_declare_coherent_memory() so dma_alloc_coherent() will allocate from this memory region. I think I can solve this issue in Virtio Console by changing calls to kmalloc() to something like: if (virtio_has_feature(vdev, VIRTIO_CONSOLE_USE_DMA_MEM)) { dma_addr_t dma; buf = dma_alloc_coherent(dev, size, &dma, GFP_KERNEL); } else buf = kmalloc(count, GFP_KERNEL); I'd like to get the opinion from you virtualization folks on this! If you think it looks reasonable I might start cooking some patches... Regards, Sjur
2012 Jun 01
2
Question regarding Virtio Console and Remoteproc
...modem. This works fine for me, because I can pass the IPC memory region to dma_declare_coherent_memory() so dma_alloc_coherent() will allocate from this memory region. I think I can solve this issue in Virtio Console by changing calls to kmalloc() to something like: if (virtio_has_feature(vdev, VIRTIO_CONSOLE_USE_DMA_MEM)) { dma_addr_t dma; buf = dma_alloc_coherent(dev, size, &dma, GFP_KERNEL); } else buf = kmalloc(count, GFP_KERNEL); I'd like to get the opinion from you virtualization folks on this! If you think it looks reasonable I might start cooking some patches... Regards, Sjur