Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Bind i810 dcache pages at the requested offset, ...
details: https://anonhg.NetBSD.org/src/rev/38c137dec4a7
branches: trunk
changeset: 330836:38c137dec4a7
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 23 14:23:09 2014 +0000
description:
Bind i810 dcache pages at the requested offset, not at VA start.
>From John D Baker in PR xsrc/48344.
XXX pullup to 6 (by patch)
diffstat:
sys/dev/pci/agp_i810.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r ebec5a0e2c6f -r 38c137dec4a7 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c Wed Jul 23 13:17:18 2014 +0000
+++ b/sys/dev/pci/agp_i810.c Wed Jul 23 14:23:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: agp_i810.c,v 1.107 2014/07/01 16:27:25 riastradh Exp $ */
+/* $NetBSD: agp_i810.c,v 1.108 2014/07/23 14:23:09 riastradh Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.107 2014/07/01 16:27:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.108 2014/07/23 14:23:09 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1323,8 +1323,7 @@
KASSERT((mem->am_size & (AGP_PAGE_SIZE - 1)) == 0);
for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) {
- /* XXX No offset? */
- error = agp_i810_write_gtt_entry(isc, i,
+ error = agp_i810_write_gtt_entry(isc, offset + i,
i | I810_GTT_PTE_VALID | I810_GTT_PTE_DCACHE);
if (error)
goto fail0;
Home |
Main Index |
Thread Index |
Old Index