diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-11 23:38:52 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-03-11 23:38:52 +0000 |
commit | 7aac46a827ca86dd4536aaeafda2fc5d206e31da (patch) | |
tree | fc6a2b88450b735ad460bcef2e2ba42a1f19d07d /sys | |
parent | 02dea2236c1bbb1a336a51b1e04dad6ffa7ae481 (diff) |
Attach iommu on AMD family 10h processors (e.g. phenom) too.
11h (Turion) still needs testing, so isn't part of this commit.
ok reyk@, marco@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/pci/iommu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c index d8a662a003b..1b00fc90b41 100644 --- a/sys/arch/amd64/pci/iommu.c +++ b/sys/arch/amd64/pci/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.25 2009/03/10 23:28:42 oga Exp $ */ +/* $OpenBSD: iommu.c,v 1.26 2009/03/11 23:38:51 oga Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -229,7 +229,8 @@ amdgart_ok(pci_chipset_tag_t pc, pcitag_t tag) v = pci_conf_read(pc, tag, PCI_ID_REG); if (PCI_VENDOR(v) != PCI_VENDOR_AMD) return (0); - if (PCI_PRODUCT(v) != PCI_PRODUCT_AMD_AMD64_0F_MISC) + if (PCI_PRODUCT(v) != PCI_PRODUCT_AMD_AMD64_0F_MISC && + PCI_PRODUCT(v) != PCI_PRODUCT_AMD_AMD64_10_MISC) return (0); v = pci_conf_read(pc, tag, GART_APCTRL); |