Re: [PATCH v2 01/21] dma-mapping: Allow map_sg() ops to return negative error codes

2021-07-25 Thread Christoph Hellwig
> +int dma_map_sgtable(struct device *dev, struct sg_table *sgt, > + enum dma_data_direction dir, unsigned long attrs) > +{ > + int nents; > + > + nents = __dma_map_sg_attrs(dev, sgt->sgl, sgt->orig_nents, dir, attrs); > + if (nents == 0) > + return -EIO; >

[GIT PULL] dma-mapping fix for Linux 5.14

2021-07-25 Thread Christoph Hellwig
The following changes since commit d936eb23874433caa3e3d841cfa16f5434b85dcf: Revert "Makefile: Enable -Wimplicit-fallthrough for Clang" (2021-07-15 18:05:31 -0700) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.14-1 for you to

Re: [PATCH v4 3/3] iommu: dart: Add DART iommu driver

2021-07-25 Thread Sven Peter via iommu
On Mon, Jul 19, 2021, at 20:15, Robin Murphy wrote: > On 2021-07-15 17:41, Sven Peter via iommu wrote: > [...] > >>> + u64 sw_bypass_cpu_start; > >>> + u64 sw_bypass_dma_start; > >>> + u64 sw_bypass_len; > >>> + > >>> + struct list_head streams; > >> > >> I'm staring to think this could just be

Re: [GIT PULL] dma-mapping fix for Linux 5.14

2021-07-25 Thread Christoph Hellwig
On Sun, Jul 25, 2021 at 09:50:29AM -0700, Linus Torvalds wrote: > On Sat, Jul 24, 2021 at 11:03 PM Christoph Hellwig wrote: > > > > dma-mapping fix for Lonux 5.14 > > We're calling it "Lonux" now? Only on weekends :) > > - handle vmalloc addresses in dma_common_{mmap,get_sgtable} > >

Re: [GIT PULL] dma-mapping fix for Linux 5.14

2021-07-25 Thread Linus Torvalds
On Sat, Jul 24, 2021 at 11:03 PM Christoph Hellwig wrote: > > dma-mapping fix for Lonux 5.14 We're calling it "Lonux" now? > - handle vmalloc addresses in dma_common_{mmap,get_sgtable} > (Roman Skakun) I've pulled this, but my reaction is that we've tried to avoid this in the past. Why

Re: [RFC 3/5] dma-mapping: Enable global non-coherent pool support for RISC-V

2021-07-25 Thread Rob Herring
On Fri, Jul 23, 2021 at 3:40 PM Atish Patra wrote: > > Currently, linux,dma-default is used to reserve a global non-coherent pool > to allocate memory for dma operations. This can be useful for RISC-V as > well as the ISA specification doesn't specify a method to modify PMA > attributes or page

Re: [RFC v2] /dev/iommu uAPI proposal

2021-07-25 Thread David Gibson
On Fri, Jul 09, 2021 at 07:48:44AM +, Tian, Kevin wrote: > /dev/iommu provides an unified interface for managing I/O page tables for > devices assigned to userspace. Device passthrough frameworks (VFIO, vDPA, > etc.) are expected to use this interface instead of creating their own logic >

Re: [GIT PULL] dma-mapping fix for Linux 5.14

2021-07-25 Thread pr-tracker-bot
The pull request you sent on Sun, 25 Jul 2021 08:03:21 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.14-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/04ca88d056b44efee1e7635c74c0be3705efc72c Thank you! -- Deet-doot-dot, I am a