PERFORCE change 158581 for review

Ulf Lilleengen lulf at FreeBSD.org
Mon Mar 2 01:41:02 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=158581

Change 158581 by lulf at lulf_carrot on 2009/03/02 09:40:24

	- Use uncached segment for tmpaddr.
	- Flush write buffer before sync to make sure.

Affected files ...

.. //depot/projects/avr32/src/sys/avr32/avr32/busdma_machdep.c#3 edit

Differences ...

==== //depot/projects/avr32/src/sys/avr32/avr32/busdma_machdep.c#3 (text+ko) ====

@@ -460,7 +460,8 @@
 		void *tmpaddr = (void *)*vaddr;
 
 		if (tmpaddr) {
-			tmpaddr = (void *)AVR32_PHYS_TO_P1(vtophys(tmpaddr));
+			/* XXX: */
+			tmpaddr = (void *)AVR32_PHYS_TO_P2(vtophys(tmpaddr));
 			newmap->origbuffer = *vaddr;
 			newmap->allocbuffer = tmpaddr;
 			avr32_dcache_wbinv_range((vm_offset_t)*vaddr,
@@ -799,7 +800,7 @@
 	 * Flush the write buffer.
 	 * XXX Is this always necessary?
 	 */
-	//avr32_wbflush();
+	avr32_wbflush();
 
 	op &= (BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
 	if (op == 0)


More information about the p4-projects mailing list