summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2005-06-08 04:21:24 +0000
committermarc <marc@openbsd.org>2005-06-08 04:21:24 +0000
commit7a14f03f1160b0f55d0f65886565210da6bcfad5 (patch)
tree0bf7a7a26e680f55806193f8e6f256c4f7838aee
parentstop talking about support for the obsolete network protocols (diff)
downloadwireguard-openbsd-7a14f03f1160b0f55d0f65886565210da6bcfad5.tar.xz
wireguard-openbsd-7a14f03f1160b0f55d0f65886565210da6bcfad5.zip
revert enabling iommu on amd64 as it breaks at least one MP host.
OK deraadt@
-rw-r--r--sys/arch/amd64/pci/iommu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c
index 86bc0dc935c..dd6544a6f3b 100644
--- a/sys/arch/amd64/pci/iommu.c
+++ b/sys/arch/amd64/pci/iommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommu.c,v 1.11 2005/06/07 16:40:31 deraadt Exp $ */
+/* $OpenBSD: iommu.c,v 1.12 2005/06/08 04:21:24 marc Exp $ */
/*
* Copyright (c) 2005 Jason L. Wright (jason@thought.net)
@@ -110,6 +110,7 @@ extern paddr_t avail_end;
extern struct extent *iomem_ex;
int amdgarts;
+int amdgart_enable;
struct amdgart_softc {
pci_chipset_tag_t g_pc;
@@ -252,6 +253,9 @@ amdgart_probe(struct pcibus_attach_args *pba)
u_int32_t *pte;
paddr_t ptepa;
+ if (amdgart_enable == 0)
+ return;
+
TAILQ_INIT(&plist);
for (count = 0, dev = 24; dev < 32; dev++) {