diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2007-05-27 21:08:08 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2007-05-27 21:08:08 +0000 |
commit | dc9ca1095f77ac006e267a8710593f67afe492ae (patch) | |
tree | b3aaacbe0577ecf93996d8659ebe3b7f25409ff7 | |
parent | fd9327dbaa2b3a64e90486e3dcdac596b29f5c5d (diff) |
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; |