From 33332c25ae774e2bca0526ed2c30a61d401e6e40 Mon Sep 17 00:00:00 2001 From: jakllsch Date: Wed, 17 Aug 2016 00:22:56 +0000 Subject: [PATCH] Change tegra_pcie_conf_hook() to only give us the defaults without enabled bus mastering. Previously both bus mastering and ROM decode were enabled at pci_configure_bus() time. Both bus mastering and ROM decode potentially have undesireable side effects. These can best be managed by drivers familiar with their hardware. --- sys/arch/arm/nvidia/tegra_pcie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/nvidia/tegra_pcie.c b/sys/arch/arm/nvidia/tegra_pcie.c index 5c16f7022a7a..f420001ca581 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.14 2015/12/13 17:39:19 jmcneill Exp $ */ +/* $NetBSD: tegra_pcie.c,v 1.15 2016/08/17 00:22:56 jakllsch Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.14 2015/12/13 17:39:19 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tegra_pcie.c,v 1.15 2016/08/17 00:22:56 jakllsch Exp $"); #include #include @@ -538,7 +538,7 @@ tegra_pcie_conf_write(void *v, pcitag_t tag, int offset, pcireg_t val) static int tegra_pcie_conf_hook(void *v, int b, int d, int f, pcireg_t id) { - return PCI_CONF_ALL; + return PCI_CONF_DEFAULT & ~PCI_CONF_ENABLE_BM; } static void