Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe Use 64bit DMA tag. If not, a lot of bounce...
details: https://anonhg.NetBSD.org/src/rev/cf980db77158
branches: trunk
changeset: 350735:cf980db77158
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jan 18 08:23:03 2017 +0000
description:
Use 64bit DMA tag. If not, a lot of bounce buffer is allocated.
Fixes PR#49968 reported by Hauke.
XXX pullup-[67].
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 508d7c9138fa -r cf980db77158 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 18 08:15:22 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 18 08:23:03 2017 +0000
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*$FreeBSD: head/sys/dev/ixgbe/if_ix.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixgbe.c,v 1.59 2017/01/05 05:53:23 msaitoh Exp $*/
+/*$NetBSD: ixgbe.c,v 1.60 2017/01/18 08:23:03 msaitoh Exp $*/
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -466,7 +466,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