search for: virtio_register_bounce_buffer

Displaying 3 results from an estimated 3 matches for "virtio_register_bounce_buffer".

2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...t;virtio_swiotlb", bounce_buf_paddr, > + bounce_buf_vaddr, bounce_buf_size); > + if (IS_ERR(virtio_pool)) { > + ret = PTR_ERR(virtio_pool); > + virtio_pool = NULL; > + memunmap(bounce_buf_vaddr); > + return ret; > + } > + > + return 0; > +} > + > +int virtio_register_bounce_buffer(phys_addr_t base, size_t size) > +{ > + if (bounce_buf_paddr || !base || size < PAGE_SIZE) > + return -EINVAL; > + > + bounce_buf_paddr = base; > + bounce_buf_size = size; > + > + return 0; > +} > + > +static int __init virtio_bounce_setup(struct reserved_mem *r...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...+144 drivers/virtio/virtio_bounce.c 139 140 static int __init virtio_bounce_setup(struct reserved_mem *rmem) 141 { 142 unsigned long node = rmem->fdt_node; 143 > 144 if (!of_get_flat_dt_prop(node, "no-map", NULL)) 145 return -EINVAL; 146 147 return virtio_register_bounce_buffer(rmem->base, rmem->size); 148 } 149 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org -------------- next part -------------- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 21407 byte...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...VM are bounced to be > accessible to backend. [...] > +static int __init virtio_bounce_setup(struct reserved_mem *rmem) > +{ > + unsigned long node = rmem->fdt_node; > + > + if (!of_get_flat_dt_prop(node, "no-map", NULL)) > + return -EINVAL; > + > + return virtio_register_bounce_buffer(rmem->base, rmem->size); > +} > + > +RESERVEDMEM_OF_DECLARE(virtio, "virtio_bounce_pool", virtio_bounce_setup); Is this special reserved-memory region documented somewhere?