[net PATCH] fib_trie: Correct /proc/net/route off by one error

2016-11-04 Thread Alexander Duyck
canonical.com> Reported-by: Jason Baron <jba...@akamai.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- net/ipv4/fib_trie.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c i

Re: [PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Alexander Duyck
On Fri, Nov 4, 2016 at 12:07 PM, Jason Baron <jba...@akamai.com> wrote: > > > On 11/04/2016 02:43 PM, Alexander Duyck wrote: >> >> On Fri, Nov 4, 2016 at 7:45 AM, Jason Baron <jba...@akamai.com> wrote: >>> >>> From: Jason Baron <jba...@akamai

Re: [PATCH net] fib_trie: correct /proc/net/route for large read buffer

2016-11-04 Thread Alexander Duyck
er than iter->pos. > > Fix by properly handling the iter->pos == pos case. > > Fixes: 25b97c016b26 ("ipv4: off-by-one in continuation handling in > /proc/net/route") > Cc: Andy Whitcroft <a...@canonical.com> > Cc: Alexander Duyck <alexander.h.du...@intel.com&

Re: [PATCH] e1000e: free IRQ when the link is up or down

2016-11-02 Thread Alexander Duyck
On Wed, Nov 2, 2016 at 2:08 PM, Tyler Baicar wrote: > Move IRQ free code so that it will happen regardless of the > link state. Currently the e1000e driver only releases its IRQ > if the link is up. This is not sufficient because it is > possible for a link to go down

[mm PATCH v2 22/26] arch/xtensa: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Max Filippov <jcmvb...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[mm PATCH v2 21/26] arch/tile: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Chris Metcalf <cmetc...@mellanox.com> Signed-off-by: Alexander Duyck <alexander.h.du...@

[mm PATCH v2 11/26] arch/m68k: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
ed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/m68k/kernel/dma.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/m68k/kernel/dma.c b/arch/m68k/kernel/dma.c index 8cf97cb..0707006 100644 --- a/arch/m68k/kernel/dma.c +++ b/arch/m68k/kernel/dma.c @@ -

[mm PATCH v2 10/26] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Richard Kuo <r...@codeaurora.org> Cc: linux-hexa...@vger.kernel.org Signed-off-by: Alexander

[mm PATCH v2 09/26] arch/frv: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/frv/mb93090-mb00/pci-dma-nommu.c

[mm PATCH v2 08/26] arch/c6x: Add option to skip sync on DMA map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Mark Salter <msal...@redhat.com> Signed-off-by: Alexander Duyck <alexander.h.du...@

[mm PATCH v2 04/26] arch/arc: Add option to skip sync on DMA mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Acked-by: Vineet Gupta <vgu...@synopsys.com> Signed-off-by: Alexander Duyck <alexa

[mm PATCH v2 14/26] arch/mips: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
x-m...@linux-mips.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/mips/loongson64/common/dma-swiotlb.c |2 +- arch/mips/mm/dma-default.c|8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/mips/loongson64/common/dma-swio

[mm PATCH v2 19/26] arch/sh: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
t; Cc: linux...@vger.kernel.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/sh/kernel/dma-nommu.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/dma-nommu.c b/arch/sh/kernel/dma-nommu.c index eadb669..47fee3b 100644 --- a/arch/sh/kernel

[mm PATCH v2 20/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "David S. Miller" <da...@davemloft.net> Cc: sparcli...@vger.kernel.org Signed-off-by:

[mm PATCH v2 16/26] arch/openrisc: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Jonas Bonn <jo...@southpole.se> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[mm PATCH v2 12/26] arch/metag: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: James Hogan <james.ho...@imgtec.com> Cc: linux-me...@vger.kernel.org Signed-off-by: Alexander

[mm PATCH v2 18/26] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-11-02 Thread Alexander Duyck
Cc: Michael Ellerman <m...@ellerman.id.au> Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/powerpc/kernel/dma.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/ke

[mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-02 Thread Alexander Duyck
d.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- v1: Found different fix for avoiding lines longer than 80 characters Dropped code that moved section to a label at end of function. Split out mapping error fix to separate patch. drivers/xen/swiotlb-

[mm PATCH v2 13/26] arch/microblaze: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Michal Simek <mon...@monstr.eu> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[mm PATCH v2 05/26] arch/arm: Add option to skip sync on DMA map and unmap

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Russell King <li...@armlinux.org.uk> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> -

[mm PATCH v2 25/26] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-11-02 Thread Alexander Duyck
to before we perform the prefetch and allocate the skbuff so that we can actually make use of it. Acked-by: Jeff Kirsher <jeffrey.t.kirs...@intel.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb_main.c | 53 ++--

[mm PATCH v2 26/26] igb: Update code to better handle incrementing page count

2016-11-02 Thread Alexander Duyck
. In addition if we eventually move this over to using build_skb the gains will be more noticeable. Acked-by: Jeff Kirsher <jeffrey.t.kirs...@intel.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb.h |7 ++- drivers/net/et

[mm PATCH v2 23/26] dma: Add calls for dma_map_page_attrs and dma_unmap_page_attrs

2016-11-02 Thread Alexander Duyck
taking care of the sync_for_cpu and sync_for_device from the driver there isn't much need to handle this in the map/unmap calls as well. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/dma-mapping.h | 20 +--- 1 file changed, 13 insertions

[mm PATCH v2 00/26] Add support for DMA writable pages being writable by the network stack

2016-11-02 Thread Alexander Duyck
Acked-by Submitting patches to mm instead of net-next --- Alexander Duyck (26): swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC arch/arc

[mm PATCH v2 24/26] mm: Add support for releasing multiple instances of a page

2016-11-02 Thread Alexander Duyck
having to do any workarounds for the fact that there is no function that frees multiple references. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/gfp.h |2 ++ mm/page_alloc.c | 14 ++ 2 files changed, 16 insertions(+) diff --git a/include

[mm PATCH v2 17/26] arch/parisc: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
x.de> Cc: linux-par...@vger.kernel.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/parisc/kernel/pci-dma.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c index 02d9ed

[mm PATCH v2 02/26] swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function

2016-11-02 Thread Alexander Duyck
as the default is to compare the return value against DMA_ERROR_CODE if no function is defined. Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- v1: Added this patch which was part of an earlier patch. arch/

[mm PATCH v2 15/26] arch/nios2: Add option to skip DMA sync as a part of map and unmap

2016-11-02 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ley Foon Tan <lf...@altera.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[mm PATCH v2 01/26] swiotlb: Drop unused functions swiotlb_map_sg and swiotlb_unmap_sg

2016-11-02 Thread Alexander Duyck
There are no users for swiotlb_map_sg or swiotlb_unmap_sg so we might as well just drop them. Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- v2: Added swiotlb_unmap_sg to functions dropped. include/linux/swio

[mm PATCH v2 06/26] arch/avr32: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Acked-by: Hans-Christian Noren Egtvedt <egtv...@samfundet.no> Signed-off-by: Alexander Duyck <alexa

[mm PATCH v2 07/26] arch/blackfin: Add option to skip sync on DMA map

2016-11-02 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Steven Miao <real...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- a

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-11-02 Thread Alexander Duyck
700 >> >> > On 16-10-27 07:10 PM, David Miller wrote: >> >> From: Alexander Duyck <alexander.du...@gmail.com> >> >> Date: Thu, 27 Oct 2016 18:43:59 -0700 >> >> >> >>> On Thu, Oct 27, 2016 at 6:35 PM, David Miller <da...@davem

Re: [E1000-devel] ixgbe 4.4.6 detected crash

2016-11-01 Thread Alexander Duyck
On Tue, Nov 1, 2016 at 8:16 AM, Matias Vara wrote: > Hi everyone, I am facing an issue with the ixgbe 10G Network card version > 4.4.6. I am in XenServer which is based on CentOS and the issue only appers > on FCOE machines. I am getting the following message during crash:

Re: [net-next PATCH RFC 04/26] arch/arm: Add option to skip sync on DMA map and unmap

2016-10-31 Thread Alexander Duyck
On Mon, Oct 31, 2016 at 3:20 AM, Russell King - ARM Linux <li...@armlinux.org.uk> wrote: > On Mon, Oct 24, 2016 at 08:04:47AM -0400, Alexander Duyck wrote: >> The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA >> APIs in the arch/arm folder. This chang

[net-next PATCH v2 4/4] net: Add support for XPS with QoS via traffic classes

2016-10-28 Thread Alexander Duyck
class via mqprio and then configure the XPS mapping for those queues so that the traffic flows can avoid head-of-line blocking between the individual CPUs if so desired. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- v2: Mostly for loop updates based on changes in p

[net-next PATCH v2 3/4] net: Refactor removal of queues from XPS map and apply on num_tc changes

2016-10-28 Thread Alexander Duyck
-by: Alexander Duyck <alexander.h.du...@intel.com> --- v2: Replaced do/while with for loop Changed order for remove_xps_queue_cpu loop Updated i to reflect count, j to be temporary offset Updated test to check for i < 0 instead of i < offset net/core/

[net-next PATCH v2 2/4] net: Add sysfs value to determine queue traffic class

2016-10-28 Thread Alexander Duyck
traffic class into another. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- v2: Added this patch to the series. include/linux/netdevice.h |1 + net/core/dev.c| 17 + net/core/net-sysfs.c | 20 +++- 3 files chang

[net-next PATCH v2 1/4] net: Move functions for configuring traffic classes out of inline headers

2016-10-28 Thread Alexander Duyck
The functions for configuring the traffic class to queue mappings have other effects that need to be addressed. Instead of trying to export a bunch of new functions just relocate the functions so that we can instrument them directly with the functionality they will need. Signed-off-by: Alexander

[net-next PATCH v2 0/4] Add support for XPS when using DCB

2016-10-28 Thread Alexander Duyck
with for loop Cleaned up several other for for loops throughout the patch --- Alexander Duyck (4): net: Move functions for configuring traffic classes out of inline headers net: Add sysfs value to determine queue traffic class net: Refactor removal of queues from XPS map

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-28 Thread Alexander Duyck
On Fri, Oct 28, 2016 at 11:22 AM, Alexei Starovoitov <alexei.starovoi...@gmail.com> wrote: > On Fri, Oct 28, 2016 at 05:18:12PM +0100, Jakub Kicinski wrote: >> On Fri, 28 Oct 2016 08:56:35 -0700, John Fastabend wrote: >> > On 16-10-27 07:10 PM, David Miller wrote: >

Re: [net-next PATCH 03/27] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-10-28 Thread Alexander Duyck
On Fri, Oct 28, 2016 at 10:34 AM, Konrad Rzeszutek Wilk <konrad.w...@oracle.com> wrote: > On Tue, Oct 25, 2016 at 11:37:03AM -0400, Alexander Duyck wrote: >> As a first step to making DMA_ATTR_SKIP_CPU_SYNC apply to architectures >> beyond just ARM I need to make i

Re: [net-next PATCH 00/27] Add support for DMA writable pages being writable by the network stack

2016-10-28 Thread Alexander Duyck
On Tue, Oct 25, 2016 at 8:36 AM, Alexander Duyck <alexander.h.du...@intel.com> wrote: > The first 22 patches in the set add support for the DMA attribute > DMA_ATTR_SKIP_CPU_SYNC on multiple platforms/architectures. This is needed > so that we can flag the calls to dma_map/unmap_

Re: [Intel-wired-lan] [net-next PATCH 3/3] net: Add support for XPS with QoS via traffic classes

2016-10-28 Thread Alexander Duyck
On Thu, Oct 27, 2016 at 7:38 PM, Tom Herbert <t...@herbertland.com> wrote: > On Thu, Oct 27, 2016 at 8:40 AM, Alexander Duyck > <alexander.h.du...@intel.com> wrote: >> This patch adds support for setting and using XPS when QoS via traffic >> classes is enabled. W

Re: [PATCH net-next RFC WIP] Patch for XDP support for virtio_net

2016-10-27 Thread Alexander Duyck
On Thu, Oct 27, 2016 at 6:35 PM, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Fri, 28 Oct 2016 01:25:48 +0300 > >> On Thu, Oct 27, 2016 at 05:42:18PM -0400, David Miller wrote: >>> From: "Michael S. Tsirkin" >>> Date: Fri, 28

[net-next PATCH 3/3] net: Add support for XPS with QoS via traffic classes

2016-10-27 Thread Alexander Duyck
class via mqprio and then configure the XPS mapping for those queues so that the traffic flows can avoid head-of-line blocking between the individual CPUs if so desired. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/netdevice.h |5 +- net/core

[net-next PATCH 0/3] Add support for XPS when using DCB

2016-10-27 Thread Alexander Duyck
classes and allows us to do a lookup per traffic class for a given CPU. To guarantee the isolation I invalidate the XPS map for any queues that are moved from one traffic class to another, or if we change the number of traffic classes. --- Alexander Duyck (3): net: Move functions

[net-next PATCH 2/3] net: Refactor removal of queues from XPS map and apply on num_tc changes

2016-10-27 Thread Alexander Duyck
-by: Alexander Duyck <alexander.h.du...@intel.com> --- net/core/dev.c | 79 1 file changed, 56 insertions(+), 23 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index d4d45bf..d124081 100644 --- a/net/core/dev.c +++ b/ne

[net-next PATCH 1/3] net: Move functions for configuring traffic classes out of inline headers

2016-10-27 Thread Alexander Duyck
The functions for configuring the traffic class to queue mappings have other effects that need to be addressed. Instead of trying to export a bunch of new functions just relocate the functions so that we can instrument them directly with the functionality they will need. Signed-off-by: Alexander

Re: [PATCH net] arch/powerpc: Update parameters for csum_tcpudp_magic & csum_tcpudp_nofold

2016-10-27 Thread Alexander Duyck
> > Fixes: 01cfbad "ipv4: Update parameters for csum_tcpudp_magic to their > original types" > Cc: Alexander Duyck <adu...@mirantis.com> > Signed-off-by: Ivan Vecera <ivec...@redhat.com> Acked-by: Alexander Duyck <alexander.h.du...@intel.com> > --- >

[net-next PATCH 05/27] arch/arm: Add option to skip sync on DMA map and unmap

2016-10-25 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Russell King <li...@armlinux.org.uk> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> -

[net-next PATCH 04/27] arch/arc: Add option to skip sync on DMA mapping

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Vineet Gupta <vgu...@synopsys.com> Cc: linux-snps-...@lists.infradead.org Signed-off-by: Ale

[net-next PATCH 07/27] arch/blackfin: Add option to skip sync on DMA map

2016-10-25 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Steven Miao <real...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- a

[net-next PATCH 22/27] arch/xtensa: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Max Filippov <jcmvb...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH 01/27] swiotlb: Drop unused function swiotlb_map_sg

2016-10-25 Thread Alexander Duyck
There are no users for swiotlb_map_sg so we might as well just drop it. Acked-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/swiotlb.h |4 lib/swiotlb.c |8 2 files

[net-next PATCH 03/27] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-10-25 Thread Alexander Duyck
d.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/xen/swiotlb-xen.c | 11 +++--- include/linux/swiotlb.h |6 -- lib/swiotlb.c | 48 +++-- 3 files changed, 40 insertions(+), 25 deleti

[net-next PATCH 23/27] dma: Add calls for dma_map_page_attrs and dma_unmap_page_attrs

2016-10-25 Thread Alexander Duyck
taking care of the sync_for_cpu and sync_for_device from the driver there isn't much need to handle this in the map/unmap calls as well. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/dma-mapping.h | 20 +--- 1 file changed, 13 insertions

[net-next PATCH 24/27] mm: Add support for releasing multiple instances of a page

2016-10-25 Thread Alexander Duyck
having to do any workarounds for the fact that there is no function that frees multiple references. Cc: linux...@kvack.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/gfp.h |2 ++ mm/page_alloc.c | 14 ++ 2 files changed, 16 insertions(+)

[net-next PATCH 08/27] arch/c6x: Add option to skip sync on DMA map and unmap

2016-10-25 Thread Alexander Duyck
; Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/c6x/kernel/dma.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/c6x/kernel/dma.c b/arch/c6x/kernel/dma.c index db4a6a3..6752df3 100644 --- a/arch/c6x/kernel/dma.c +++ b/arch/c6x/kernel/dma.

[net-next PATCH 18/27] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
Cc: Michael Ellerman <m...@ellerman.id.au> Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/powerpc/kernel/dma.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/ke

[net-next PATCH 20/27] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "David S. Miller" <da...@davemloft.net> Cc: sparcli...@vger.kernel.org Signed-off-by:

[net-next PATCH 21/27] arch/tile: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Chris Metcalf <cmetc...@mellanox.com> Signed-off-by: Alexander Duyck <alexander.h.du...@

[net-next PATCH 15/27] arch/nios2: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Ley Foon Tan <lf...@altera.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH 19/27] arch/sh: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
t; Cc: linux...@vger.kernel.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/sh/kernel/dma-nommu.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/dma-nommu.c b/arch/sh/kernel/dma-nommu.c index eadb669..47fee3b 100644 --- a/arch/sh/kernel

[net-next PATCH 13/27] arch/microblaze: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Michal Simek <mon...@monstr.eu> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH 00/27] Add support for DMA writable pages being writable by the network stack

2016-10-25 Thread Alexander Duyck
-by for patches that were acked and not changed --- Alexander Duyck (27): swiotlb: Drop unused function swiotlb_map_sg swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC arch/arc: Add option to skip sync on DMA mapping

[net-next PATCH 10/27] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Richard Kuo <r...@codeaurora.org> Cc: linux-hexa...@vger.kernel.org Signed-off-by: Alexander

[net-next PATCH 09/27] arch/frv: Add option to skip sync on DMA map

2016-10-25 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/frv/mb93090-mb00/pci-dma-nommu.c

[net-next PATCH 11/27] arch/m68k: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
ed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/m68k/kernel/dma.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/m68k/kernel/dma.c b/arch/m68k/kernel/dma.c index 8cf97cb..0707006 100644 --- a/arch/m68k/kernel/dma.c +++ b/arch/m68k/kernel/dma.c @@ -

[net-next PATCH 17/27] arch/parisc: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
x.de> Cc: linux-par...@vger.kernel.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/parisc/kernel/pci-dma.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c index 02d9ed

[net-next PATCH 12/27] arch/metag: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: James Hogan <james.ho...@imgtec.com> Cc: linux-me...@vger.kernel.org Signed-off-by: Alexander

[net-next PATCH 14/27] arch/mips: Add option to skip DMA sync as a part of map and unmap

2016-10-25 Thread Alexander Duyck
x-m...@linux-mips.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/mips/loongson64/common/dma-swiotlb.c |2 +- arch/mips/mm/dma-default.c|8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/mips/loongson64/common/dma-swio

[net-next PATCH 06/27] arch/avr32: Add option to skip sync on DMA map

2016-10-25 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Acked-by: Hans-Christian Noren Egtvedt <egtv...@samfundet.no> Signed-off-by: Alexander Duyck <alexa

[net-next PATCH 26/27] igb: Update code to better handle incrementing page count

2016-10-25 Thread Alexander Duyck
. In addition if we eventually move this over to using build_skb the gains will be more noticeable. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb.h |7 ++- drivers/net/ethernet/intel/igb/igb_main.c | 24 +

[net-next PATCH 27/27] igb: Revert "igb: Revert support for build_skb in igb"

2016-10-25 Thread Alexander Duyck
b overhead and padding offset. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb.h | 29 ++ drivers/net/ethernet/intel/igb/igb_main.c | 130 ++--- 2 files changed, 142 insertions(+), 17 deletions(-) diff --g

[net-next PATCH 16/27] arch/openrisc: Add option to skip DMA sync as a part of mapping

2016-10-25 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Jonas Bonn <jo...@southpole.se> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH 25/27] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-10-25 Thread Alexander Duyck
to before we perform the prefetch and allocate the skbuff so that we can actually make use of it. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb_main.c | 53 ++--- 1 file changed, 33 insertions(+), 20 deletions(-)

[net-next PATCH 02/27] swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function

2016-10-25 Thread Alexander Duyck
as the default is to compare the return value against DMA_ERROR_CODE if no function is defined. Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/arm/xen/mm.c |1 - arch/x86/xen/pci-swiotlb-xen.c |1 -

Re: [net-next PATCH RFC 19/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-10-24 Thread Alexander Duyck
On Mon, Oct 24, 2016 at 11:27 AM, David Miller <da...@davemloft.net> wrote: > From: Alexander Duyck <alexander.h.du...@intel.com> > Date: Mon, 24 Oct 2016 08:06:07 -0400 > >> This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to >> avoid

Re: [net-next PATCH RFC 02/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-10-24 Thread Alexander Duyck
On Mon, Oct 24, 2016 at 11:09 AM, Konrad Rzeszutek Wilk <konrad.w...@oracle.com> wrote: > On Mon, Oct 24, 2016 at 08:04:37AM -0400, Alexander Duyck wrote: >> As a first step to making DMA_ATTR_SKIP_CPU_SYNC apply to architectures >> beyond just ARM I need to make i

[net-next PATCH RFC 19/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: "David S. Miller" <da...@davemloft.net> Cc: sparcli...@vger.kernel.org Signed-off-by:

[net-next PATCH RFC 23/26] mm: Add support for releasing multiple instances of a page

2016-10-24 Thread Alexander Duyck
having to do any workarounds for the fact that there is no function that frees multiple references. Cc: linux...@kvack.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/gfp.h |2 ++ mm/page_alloc.c | 14 ++ 2 files changed, 16 insertions(+)

[net-next PATCH RFC 26/26] igb: Revert "igb: Revert support for build_skb in igb"

2016-10-24 Thread Alexander Duyck
b overhead and padding offset. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb.h | 29 ++ drivers/net/ethernet/intel/igb/igb_main.c | 130 ++--- 2 files changed, 142 insertions(+), 17 deletions(-) diff --g

[net-next PATCH RFC 22/26] dma: Add calls for dma_map_page_attrs and dma_unmap_page_attrs

2016-10-24 Thread Alexander Duyck
taking care of the sync_for_cpu and sync_for_device from the driver there isn't much need to handle this in the map/unmap calls as well. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/dma-mapping.h | 20 +--- 1 file changed, 13 insertions

[net-next PATCH RFC 20/26] arch/tile: Add option to skip DMA sync as a part of map and unmap

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Chris Metcalf <cmetc...@mellanox.com> Signed-off-by: Alexander Duyck <alexander.h.du...@

[net-next PATCH RFC 24/26] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-10-24 Thread Alexander Duyck
to before we perform the prefetch and allocate the skbuff so that we can actually make use of it. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb_main.c | 53 ++--- 1 file changed, 33 insertions(+), 20 deletions(-)

[net-next PATCH RFC 15/26] arch/openrisc: Add option to skip DMA sync as a part of mapping

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Jonas Bonn <jo...@southpole.se> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH RFC 09/26] arch/hexagon: Add option to skip DMA sync as a part of mapping

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Richard Kuo <r...@codeaurora.org> Cc: linux-hexa...@vger.kernel.org Signed-off-by: Alexander

[net-next PATCH RFC 08/26] arch/frv: Add option to skip sync on DMA map

2016-10-24 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/frv/mb93090-mb00/pci-dma-nommu.c

[net-next PATCH RFC 21/26] arch/xtensa: Add option to skip DMA sync as a part of mapping

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it via a sync_for_cpu or sync_for_device call. Cc: Max Filippov <jcmvb...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com&g

[net-next PATCH RFC 25/26] igb: Update code to better handle incrementing page count

2016-10-24 Thread Alexander Duyck
. In addition if we eventually move this over to using build_skb the gains will be more noticeable. Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/net/ethernet/intel/igb/igb.h |7 ++- drivers/net/ethernet/intel/igb/igb_main.c | 24 +

[net-next PATCH RFC 00/26] Add support for DMA writable pages being writable by the network stack

2016-10-24 Thread Alexander Duyck
it to this patch set. If needed I can look into breaking this into a smaller set of patches but this set is all that should be needed to then start looking at putting together a DMA page pool per device which I know is something Jesper has been working on. --- Alexander Duyck (26): swiotlb

[net-next PATCH RFC 02/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-10-24 Thread Alexander Duyck
d.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- drivers/xen/swiotlb-xen.c | 40 ++ include/linux/swiotlb.h |6 -- lib/swiotlb.c | 48 +++-- 3 files

[net-next PATCH RFC 13/26] arch/mips: Add option to skip DMA sync as a part of map and unmap

2016-10-24 Thread Alexander Duyck
x-m...@linux-mips.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/mips/loongson64/common/dma-swiotlb.c |2 +- arch/mips/mm/dma-default.c|8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/mips/loongson64/common/dma-swio

[net-next PATCH RFC 01/26] swiotlb: Drop unused function swiotlb_map_sg

2016-10-24 Thread Alexander Duyck
There are no users for swiotlb_map_sg so we might as well just drop it. Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- include/linux/swiotlb.h |4 lib/swiotlb.c |8 2 files changed,

[net-next PATCH RFC 10/26] arch/m68k: Add option to skip DMA sync as a part of mapping

2016-10-24 Thread Alexander Duyck
ed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/m68k/kernel/dma.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/m68k/kernel/dma.c b/arch/m68k/kernel/dma.c index 8cf97cb..0707006 100644 --- a/arch/m68k/kernel/dma.c +++ b/arch/m68k/kernel/dma.c @@ -

[net-next PATCH RFC 07/26] arch/c6x: Add option to skip sync on DMA map and unmap

2016-10-24 Thread Alexander Duyck
6x-...@linux-c6x.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/c6x/kernel/dma.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/c6x/kernel/dma.c b/arch/c6x/kernel/dma.c index db4a6a3..d28df74 100644 --- a/arch/c6x/kerne

[net-next PATCH RFC 06/26] arch/blackfin: Add option to skip sync on DMA map

2016-10-24 Thread Alexander Duyck
The use of DMA_ATTR_SKIP_CPU_SYNC was not consistent across all of the DMA APIs in the arch/arm folder. This change is meant to correct that so that we get consistent behavior. Cc: Steven Miao <real...@gmail.com> Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- a

[net-next PATCH RFC 05/26] arch/avr32: Add option to skip sync on DMA map

2016-10-24 Thread Alexander Duyck
; Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/avr32/mm/dma-coherent.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/avr32/mm/dma-coherent.c b/arch/avr32/mm/dma-coherent.c index 58610d0..54534e5 100644 --- a/arch/avr32/mm/dma-coherent.c +++ b

[net-next PATCH RFC 03/26] arch/arc: Add option to skip sync on DMA mapping

2016-10-24 Thread Alexander Duyck
This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to avoid invoking cache line invalidation if the driver will just handle it later via a sync_for_cpu or sync_for_device call. Cc: Vineet Gupta <vgu...@synopsys.com> Cc: linux-snps-...@lists.infradead.org Signed-off-by: Ale

[net-next PATCH RFC 17/26] arch/powerpc: Add option to skip DMA sync as a part of mapping

2016-10-24 Thread Alexander Duyck
Cc: Michael Ellerman <m...@ellerman.id.au> Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Alexander Duyck <alexander.h.du...@intel.com> --- arch/powerpc/kernel/dma.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/ke

<    3   4   5   6   7   8   9   10   11   12   >