Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/dev/pci/ixgbe Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/1197369db159
branches:  netbsd-7
changeset: 800149:1197369db159
user:      snj <snj%NetBSD.org@localhost>
date:      Thu Mar 09 06:19:37 2017 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #1370):
        sys/dev/pci/ixgbe/ixgbe.c: revision 1.60
  Use 64bit DMA tag. If not, a lot of bounce buffer is allocated.
Fixes PR#49968 reported by Hauke.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 213211b8e13a -r 1197369db159 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Mar 08 14:22:55 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Mar 09 06:19:37 2017 +0000
@@ -59,7 +59,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 /*$FreeBSD: head/sys/dev/ixgbe/ixgbe.c 279805 2015-03-09 10:29:15Z araujo $*/
-/*$NetBSD: ixgbe.c,v 1.14.2.6 2016/06/14 08:42:34 snj Exp $*/
+/*$NetBSD: ixgbe.c,v 1.14.2.7 2017/03/09 06:19:37 snj Exp $*/
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -522,7 +522,10 @@
        hw = &adapter->hw;
        adapter->osdep.pc = pa->pa_pc;
        adapter->osdep.tag = pa->pa_tag;
-       adapter->osdep.dmat = pa->pa_dmat;
+       if (pci_dma64_available(pa))
+               adapter->osdep.dmat = pa->pa_dmat64;
+       else
+               adapter->osdep.dmat = pa->pa_dmat;
        adapter->osdep.attached = false;
 
        ent = ixgbe_lookup(pa);



Home | Main Index | Thread Index | Old Index