Re: [PATCH 1/4] dma-mapping: add a new dma_need_sync API

2020-07-07 Thread Jonathan Lemon
On Tue, Jul 07, 2020 at 08:47:30AM +0200, Christoph Hellwig wrote: > On Mon, Jul 06, 2020 at 12:42:27PM -0700, Jonathan Lemon wrote: > > On Mon, Jun 29, 2020 at 03:03:56PM +0200, Christoph Hellwig wrote: > > > Add a new API to check if calls to dma_sync_single_for_{device,cpu}

Re: the XSK buffer pool needs be to reverted

2020-07-06 Thread Jonathan Lemon
On Wed, Jul 01, 2020 at 10:46:40AM +0100, Robin Murphy wrote: > On 2020-06-30 20:08, Jonathan Lemon wrote: > > On Mon, Jun 29, 2020 at 02:15:16PM +0100, Robin Murphy wrote: > > > On 2020-06-27 08:02, Christoph Hellwig wrote: > > > > On Fri, Jun 26, 2020 at 01:54:12

Re: [PATCH 1/4] dma-mapping: add a new dma_need_sync API

2020-07-06 Thread Jonathan Lemon
On Mon, Jun 29, 2020 at 03:03:56PM +0200, Christoph Hellwig wrote: > Add a new API to check if calls to dma_sync_single_for_{device,cpu} are > required for a given DMA streaming mapping. > > +:: > + > + bool > + dma_need_sync(struct device *dev, dma_addr_t dma_addr); > + > +Returns %true i

Re: the XSK buffer pool needs be to reverted

2020-06-30 Thread Jonathan Lemon
On Mon, Jun 29, 2020 at 02:15:16PM +0100, Robin Murphy wrote: > On 2020-06-27 08:02, Christoph Hellwig wrote: > > On Fri, Jun 26, 2020 at 01:54:12PM -0700, Jonathan Lemon wrote: > > > On Fri, Jun 26, 2020 at 09:47:25AM +0200, Christoph Hellwig wrote: > > > > >

Re: the XSK buffer pool needs be to reverted

2020-06-26 Thread Jonathan Lemon
On Fri, Jun 26, 2020 at 09:47:25AM +0200, Christoph Hellwig wrote: > > Note that this is somewhat urgent, as various of the APIs that the code > is abusing are slated to go away for Linux 5.9, so this addition comes > at a really bad time. Could you elaborate on what is upcoming here? Also, on a

Re: [PATCH net] xsk: remove cheap_dma optimization

2020-06-26 Thread Jonathan Lemon
[1] https://lore.kernel.org/netdev/20200626074725.ga21...@lst.de/ > > Cc: Christoph Hellwig > Fixes: 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API") > Signed-off-by: Björn Töpel Acked-by: Jonathan Lemon ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

Re: [PATCH v2 3/3] dpaa2_eth: use new unmap and sync dma api variants

2019-10-27 Thread Jonathan Lemon
On 24 Oct 2019, at 5:41, Laurentiu Tudor wrote: From: Laurentiu Tudor Convert this driver to usage of the newly introduced dma unmap and sync DMA APIs. This will get rid of the unsupported direct usage of iommu_iova_to_phys() API. Signed-off-by: Laurentiu Tudor --- .../net/ethernet/frees