Re: [PATCH 04/28] dma-mapping: use vmap insted of reimplementing it

2020-04-08 Thread Christoph Hellwig
On Wed, Apr 08, 2020 at 09:17:36PM +0800, Hillf Danton wrote: > > @@ -62,24 +42,20 @@ void *dma_common_pages_remap(struct page **pages, > > size_t size, > > void *dma_common_contiguous_remap(struct page *page, size_t size, > > pgprot_t prot, const void *caller) > > { > > -

Re: [PATCH 04/28] dma-mapping: use vmap insted of reimplementing it

2020-04-08 Thread Hillf Danton
On Wed, 8 Apr 2020 13:59:02 +0200 Christoph Hellwig wrote: > > @@ -62,24 +42,20 @@ void *dma_common_pages_remap(struct page **pages, size_t > size, > void *dma_common_contiguous_remap(struct page *page, size_t size, > pgprot_t prot, const void *caller) > { > - int

[PATCH 04/28] dma-mapping: use vmap insted of reimplementing it

2020-04-08 Thread Christoph Hellwig
Replace the open coded instance of vmap with the actual function. In the non-contiguous (IOMMU) case this requires an extra find_vm_area, but given that this isn't a fast path function that is a small price to pay. Signed-off-by: Christoph Hellwig --- kernel/dma/remap.c | 48 ---