search for: swiotlb_pool

Displaying 5 results from an estimated 5 matches for "swiotlb_pool".

2020 Apr 29
0
[PATCH 1/5] swiotlb: Introduce concept of swiotlb_pool
Hi Srivatsa, Thank you for the patch! Yet something to improve: [auto build test ERROR on vhost/linux-next] [also build test ERROR on xen-tip/linux-next linus/master v5.7-rc3 next-20200428] [cannot apply to swiotlb/linux-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base
2020 Apr 29
0
[RFC PATCH] virtio: virtio_pool can be static
...virtio/virtio_bounce.c b/drivers/virtio/virtio_bounce.c index 3de8e0eb71e48..5a68d48667c42 100644 --- a/drivers/virtio/virtio_bounce.c +++ b/drivers/virtio/virtio_bounce.c @@ -19,7 +19,7 @@ static phys_addr_t bounce_buf_paddr; static void *bounce_buf_vaddr; static size_t bounce_buf_size; -struct swiotlb_pool *virtio_pool; +static struct swiotlb_pool *virtio_pool; #define VIRTIO_MAX_BOUNCE_SIZE (16*4096) @@ -76,7 +76,7 @@ static void virtio_unmap_page(struct device *dev, dma_addr_t dev_addr, size, dir, attrs); } -size_t virtio_max_mapping_size(struct device *dev) +static size_t virtio_max_...
2020 Apr 30
0
[PATCH 3/5] swiotlb: Add alloc and free APIs
...return DMA_MAPPING_ERROR; ^~~~~~~~~~~~~~~~~ APM_NO_ERROR include/linux/swiotlb.h:231:9: note: each undeclared identifier is reported only once for each function it appears in vim +231 include/linux/swiotlb.h 226 227 static inline phys_addr_t swiotlb_alloc(struct swiotlb_pool *pool, 228 size_t alloc_size, unsigned long tbl_dma_addr, 229 unsigned long mask) 230 { > 231 return DMA_MAPPING_ERROR; 232 } 233 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org -------------- next part --...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...linux/swiotlb.h:235:1: warning: control reaches end of non-void function [-Wreturn-type] 235 | } | ^ vim +235 include/linux/swiotlb.h 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 229 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 230 static inline phys_addr_t swiotlb_alloc(struct swiotlb_pool *pool, 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 231 size_t alloc_size, unsigned long tbl_dma_addr, 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 232 unsigned long mask) 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 233 { 9ab4c39d9f9298 Srivatsa Vaddagiri 2020-04-28 234 return DMA_MAP...
2020 Apr 28
0
[PATCH 5/5] virtio: Add bounce DMA ops
...> +#include <linux/dma-mapping.h> > +#include <linux/of_reserved_mem.h> > +#include <linux/of.h> > +#include <linux/of_fdt.h> > + > +static phys_addr_t bounce_buf_paddr; > +static void *bounce_buf_vaddr; > +static size_t bounce_buf_size; > +struct swiotlb_pool *virtio_pool; > + > +#define VIRTIO_MAX_BOUNCE_SIZE (16*4096) > + > +static void *virtio_alloc_coherent(struct device *dev, size_t size, > + dma_addr_t *dma_handle, gfp_t gfp_flags, unsigned long attrs) > +{ > + phys_addr_t addr; > + > + if (!virtio_pool) > + return...