diff options
author | 2007-05-27 21:08:07 +0000 | |
---|---|---|
committer | 2007-05-27 21:08:07 +0000 | |
commit | 5078e2b38f353c07f15602a5dd9ddbff754a25bf (patch) | |
tree | 0242b40e184a902d8a290cc674b41e7bef73e45a | |
parent | add pmap_(un)map_nc_direct() macro's to match the non-nc versions (diff) | |
download | wireguard-openbsd-5078e2b38f353c07f15602a5dd9ddbff754a25bf.tar.xz wireguard-openbsd-5078e2b38f353c07f15602a5dd9ddbff754a25bf.zip |
remove two TODO items:
- map the GART page table uncached
- disable table walk probes
-rw-r--r-- | sys/arch/amd64/pci/iommu.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c index 993ed28d72f..b6954be435a 100644 --- a/sys/arch/amd64/pci/iommu.c +++ b/sys/arch/amd64/pci/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.18 2007/02/09 04:48:10 jason Exp $ */ +/* $OpenBSD: iommu.c,v 1.19 2007/05/27 21:08:07 jason Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -26,11 +26,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -/* - * TODO: - * - map the PTE uncacheable and disable table walk probes - */ - #include <sys/types.h> #include <sys/param.h> #include <sys/time.h> @@ -296,7 +291,7 @@ amdgart_probe(struct pcibus_attach_args *pba) goto err; } ptepa = VM_PAGE_TO_PHYS(TAILQ_FIRST(&plist)); - pte = (u_int32_t *)pmap_map_direct(TAILQ_FIRST(&plist)); + pte = (u_int32_t *)pmap_map_nc_direct(TAILQ_FIRST(&plist)); ex = extent_create("iommu", dvabase, dvabase + mapsize - 1, M_DEVBUF, NULL, NULL, EX_NOWAIT | EX_NOCOALESCE); @@ -359,7 +354,7 @@ amdgart_probe(struct pcibus_attach_args *pba) v = pci_conf_read(pba->pba_pc, tag, GART_APCTRL); v |= GART_APCTRL_ENABLE; - v &= ~(GART_APCTRL_DISIO | GART_APCTRL_DISTBL); + v &= ~GART_APCTRL_DISIO; pci_conf_write(pba->pba_pc, tag, GART_APCTRL, v); amdgart_softcs[count].g_pc = pba->pba_pc; |