svn commit: r212663 - head/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Wed Sep 15 15:18:41 UTC 2010


Author: marius
Date: Wed Sep 15 15:18:41 2010
New Revision: 212663
URL: http://svn.freebsd.org/changeset/base/212663

Log:
  - Update the comment in swi_vm() regarding busdma bounce buffers; it's
    unlikely that support for these ever will be implemented on sparc64 as
    the IOMMUs are able to translate to up to the maximum physical address
    supported by the respective machine, bypassing the IOMMU is affected
    by hardware errata and being able to support DMA engines which cannot
    do at least 32-bit DMA does not justify the costs.
  - The page zeroing in uma_small_alloc() may use the VIS-based block zero
    function so take advantage of it.

Modified:
  head/sys/sparc64/sparc64/vm_machdep.c

Modified: head/sys/sparc64/sparc64/vm_machdep.c
==============================================================================
--- head/sys/sparc64/sparc64/vm_machdep.c	Wed Sep 15 15:17:54 2010	(r212662)
+++ head/sys/sparc64/sparc64/vm_machdep.c	Wed Sep 15 15:18:41 2010	(r212663)
@@ -492,10 +492,7 @@ void
 swi_vm(void *v)
 {
 
-	/*
-	 * Nothing to do here yet - busdma bounce buffers are not yet
-	 * implemented.
-	 */
+	/* Nothing to do here - busdma bounce buffers are not implemented. */
 }
 
 void *
@@ -540,7 +537,7 @@ uma_small_alloc(uma_zone_t zone, int byt
 	}
 	va = (void *)TLB_PHYS_TO_DIRECT(pa);
 	if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0)
-		bzero(va, PAGE_SIZE);
+		cpu_block_zero(va, PAGE_SIZE);
 	return (va);
 }
 


More information about the svn-src-head mailing list