search for: virtio_bounce_setup

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

2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...e COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <lkp at intel.com> All errors (new ones prefixed by >>): drivers/virtio/virtio_bounce.c: In function 'virtio_bounce_setup': >> drivers/virtio/virtio_bounce.c:144:7: error: implicit declaration of function 'of_get_flat_dt_prop' [-Werror=implicit-function-declaration] 144 | if (!of_get_flat_dt_prop(node, "no-map", NULL)) | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being t...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...o restrict the access provided to > backend driver is to make use of a bounce buffer. The bounce > buffer is accessible to both backend and frontend drivers. All IO > buffers that are in private space of guest 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_DEC...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...+ > +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 *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_DEC...