diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-10-09 13:22:55 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-10-09 13:22:55 +0000 |
commit | 548fb0da232b0b4f1d5d034d579cbd0546017b81 (patch) | |
tree | f2effea70e8210cec218e1f990eb4c83aff02a25 | |
parent | 230f885abb8fb82ae220426f5b5d38dd62a778cf (diff) |
Remove evil hack. I've never seen the printf fire, and xenocara no longer
contains any code that can manipulate the affected register directly.
ok jsg@
-rw-r--r-- | sys/dev/pci/agp_i810.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 91c4b3f6f70..f881417f28f 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp_i810.c,v 1.90 2015/09/09 19:47:11 deraadt Exp $ */ +/* $OpenBSD: agp_i810.c,v 1.91 2015/10/09 13:22:54 kettenis Exp $ */ /*- * Copyright (c) 2000 Doug Rabson @@ -709,7 +709,7 @@ int agp_i810_bind_memory(void *sc, struct agp_memory *mem, bus_size_t offset) { struct agp_i810_softc *isc = sc; - u_int32_t regval, i; + u_int32_t i; if (mem->am_is_bound != 0) return (EINVAL); @@ -722,20 +722,6 @@ agp_i810_bind_memory(void *sc, struct agp_memory *mem, bus_size_t offset) return (EINVAL); } - /* - * XXX evil hack: the PGTBL_CTL appearently gets overwritten by the - * X server for mysterious reasons which leads to crashes if we write - * to the GTT through the MMIO window. - * Until the issue is solved, simply restore it. - */ - regval = READ4(AGP_I810_PGTBL_CTL); - if (regval != (isc->gatt->ag_physical | 1)) { - printf("agp_i810_bind_memory: PGTBL_CTL is 0x%x - fixing\n", - regval); - WRITE4(AGP_I810_PGTBL_CTL, isc->gatt->ag_physical | - INTEL_ENABLED); - } - if (mem->am_type == 2) { for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) agp_i810_bind_page(isc, isc->isc_apaddr + offset + i, |