svn commit: r213014 - stable/8/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Wed Sep 22 19:55:38 UTC 2010


Author: marius
Date: Wed Sep 22 19:55:37 2010
New Revision: 213014
URL: http://svn.freebsd.org/changeset/base/213014

Log:
  MFC: r212663
  
  - 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:
  stable/8/sys/sparc64/sparc64/vm_machdep.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/sparc64/sparc64/vm_machdep.c
==============================================================================
--- stable/8/sys/sparc64/sparc64/vm_machdep.c	Wed Sep 22 19:41:01 2010	(r213013)
+++ stable/8/sys/sparc64/sparc64/vm_machdep.c	Wed Sep 22 19:55:37 2010	(r213014)
@@ -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-all mailing list