Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci If bus_dmatag_subregion(), actually fall back on...



details:   https://anonhg.NetBSD.org/src/rev/73190d7f4afd
branches:  trunk
changeset: 969950:73190d7f4afd
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Mar 07 07:33:39 2020 +0000

description:
If bus_dmatag_subregion(), actually fall back on the base 64-bit
DMA tag.

diffstat:

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

diffs (26 lines):

diff -r 20ce4a28e855 -r 73190d7f4afd sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c     Sat Mar 07 06:27:19 2020 +0000
+++ b/sys/dev/pci/if_stge.c     Sat Mar 07 07:33:39 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_stge.c,v 1.83 2020/03/02 15:13:23 thorpej Exp $     */
+/*     $NetBSD: if_stge.c,v 1.84 2020/03/07 07:33:39 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.83 2020/03/02 15:13:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.84 2020/03/07 07:33:39 thorpej Exp $");
 
 
 #include <sys/param.h>
@@ -456,6 +456,7 @@
                        aprint_error_dev(self,
                            "WARNING: failed to restrict dma range,"
                            " falling back to parent bus dma range\n");
+                       sc->sc_dmat = pa->pa_dmat64;
                }
        } else {
                sc->sc_dmat = pa->pa_dmat;



Home | Main Index | Thread Index | Old Index