Module Name:    src
Committed By:   thorpej
Date:           Sat Mar  7 07:33:39 UTC 2020

Modified Files:
        src/sys/dev/pci: if_stge.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/pci/if_stge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_stge.c
diff -u src/sys/dev/pci/if_stge.c:1.83 src/sys/dev/pci/if_stge.c:1.84
--- src/sys/dev/pci/if_stge.c:1.83	Mon Mar  2 15:13:23 2020
+++ src/sys/dev/pci/if_stge.c	Sat Mar  7 07:33:39 2020
@@ -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 @@ stge_attach(device_t parent, device_t se
 			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;

Reply via email to