On 2017/11/7 23:58, Christoph Hellwig wrote: > On Tue, Nov 07, 2017 at 08:48:38AM -0700, Jason Gunthorpe wrote: >> Can't you just use vmalloc and dma_map that? Other drivers follow that >> approach.. > You can't easily due to the flushing requirements. We used to do that > in XFS and it led to problems. You need the page allocator + vmap + > invalidate_kernel_vmap_range + flush_kernel_vmap_range to get the > cache flushing right. > > . Hi, Christoph Hellwig Thanks for your suggestion. Regards Wei Hu
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable supp... Wei Hu (Xavier)
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable... Leon Romanovsky
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU en... Wei Hu (Xavier)
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable... Jason Gunthorpe
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU en... Christoph Hellwig
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMM... Jason Gunthorpe
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMM... Wei Hu (Xavier)
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU en... Wei Hu (Xavier)
- Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable... Wei Hu (Xavier)