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
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
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&
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
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
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...@
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
@@ -
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
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
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...@
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
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
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
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:
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
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
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
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-
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
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>
-
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 ++--
. 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
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
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
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
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
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/
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
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
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
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
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
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:
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
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
-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/
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
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
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
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:
>
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
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_
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
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
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
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
-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
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
>
> 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>
> ---
>
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>
-
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
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
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
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
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
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
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(+)
;
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.
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
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:
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...@
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
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
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
-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
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
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
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
@@ -
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
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
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
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
. 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 +
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
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
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(-)
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 -
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
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
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:
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(+)
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
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
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...@
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(-)
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
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
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
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
. 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 +
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
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
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
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,
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
@@ -
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
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
;
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
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
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
701 - 800 of 1597 matches
Mail list logo