From e114a7d535d9556711850526427cc7407846197f Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sun, 3 May 2015 01:26:44 +0000 Subject: [PATCH] coherent dma tag doesnt quite work --- sys/arch/arm/nvidia/tegra_pcie.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/nvidia/tegra_pcie.c b/sys/arch/arm/nvidia/tegra_pcie.c index 2d1502af9d6b..dfb9690ffb78 100644 --- a/sys/arch/arm/nvidia/tegra_pcie.c +++ b/sys/arch/arm/nvidia/tegra_pcie.c @@ -1,4 +1,4 @@ -/* $NetBSD: tegra_pcie.c,v 1.1 2015/05/03 01:07:44 jmcneill Exp $ */ +/* $NetBSD: tegra_pcie.c,v 1.2 2015/05/03 01:26:44 jmcneill Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -29,7 +29,7 @@ #include "locators.h" #include -__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.1 2015/05/03 01:07:44 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.2 2015/05/03 01:26:44 jmcneill Exp $"); #include #include @@ -124,7 +124,11 @@ tegra_pcie_attach(device_t parent, device_t self, void *aux) int error; sc->sc_dev = self; +#if notyet sc->sc_dmat = tio->tio_coherent_dmat; +#else + sc->sc_dmat = tio->tio_dmat; +#endif sc->sc_bst = tio->tio_bst; sc->sc_intr = loc->loc_intr; if (bus_space_map(sc->sc_bst, TEGRA_PCIE_AFI_BASE, TEGRA_PCIE_AFI_SIZE,