Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 23 14:23:09 UTC 2014

Modified Files:
        src/sys/dev/pci: agp_i810.c

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/dev/pci/agp_i810.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/agp_i810.c
diff -u src/sys/dev/pci/agp_i810.c:1.107 src/sys/dev/pci/agp_i810.c:1.108
--- src/sys/dev/pci/agp_i810.c:1.107	Tue Jul  1 16:27:25 2014
+++ src/sys/dev/pci/agp_i810.c	Wed Jul 23 14:23:09 2014
@@ -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 @@ agp_i810_bind_memory_dcache(struct agp_s
 
 	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;

Reply via email to