Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use the 64-bit PCI DMA tag, if available.



details:   https://anonhg.NetBSD.org/src/rev/079721d1b6fd
branches:  trunk
changeset: 745369:079721d1b6fd
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Feb 29 21:31:55 2020 +0000

description:
Use the 64-bit PCI DMA tag, if available.

diffstat:

 sys/dev/pci/if_txp.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 0d259e9238bf -r 079721d1b6fd sys/dev/pci/if_txp.c
--- a/sys/dev/pci/if_txp.c      Sat Feb 29 21:30:19 2020 +0000
+++ b/sys/dev/pci/if_txp.c      Sat Feb 29 21:31:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_txp.c,v 1.63 2020/01/30 06:10:26 thorpej Exp $ */
+/* $NetBSD: if_txp.c,v 1.64 2020/02/29 21:31:55 thorpej Exp $ */
 
 /*
  * Copyright (c) 2001
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.63 2020/01/30 06:10:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.64 2020/02/29 21:31:55 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -236,7 +236,10 @@
                return;
        }
 
-       sc->sc_dmat = pa->pa_dmat;
+       if (pci_dma64_available(pa))
+               sc->sc_dmat = pa->pa_dmat64;
+       else
+               sc->sc_dmat = pa->pa_dmat;
 
        /*
         * Allocate our interrupt.



Home | Main Index | Thread Index | Old Index