Module Name:    src
Committed By:   jakllsch
Date:           Wed Aug 17 00:22:56 UTC 2016

Modified Files:
        src/sys/arch/arm/nvidia: tegra_pcie.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arm/nvidia/tegra_pcie.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/arch/arm/nvidia/tegra_pcie.c
diff -u src/sys/arch/arm/nvidia/tegra_pcie.c:1.14 src/sys/arch/arm/nvidia/tegra_pcie.c:1.15
--- src/sys/arch/arm/nvidia/tegra_pcie.c:1.14	Sun Dec 13 17:39:19 2015
+++ src/sys/arch/arm/nvidia/tegra_pcie.c	Wed Aug 17 00:22:56 2016
@@ -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 <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/bus.h>
@@ -538,7 +538,7 @@ tegra_pcie_conf_write(void *v, pcitag_t 
 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

Reply via email to