arm/182544: [patch] ARM busdma_machdep-v6.c

Svatopluk Kraus onwahe at gmail.com
Tue Oct 1 13:10:00 UTC 2013


>Number:         182544
>Category:       arm
>Synopsis:       [patch] ARM busdma_machdep-v6.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-arm
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 01 13:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Svatopluk Kraus
>Release:        current
>Organization:
>Environment:
>Description:
See my patch. 
(1) maxsize should be in bytes
(2) bad comments style corrected

>How-To-Repeat:

>Fix:
Index: sys/arm/arm/busdma_machdep-v6.c
===================================================================
--- sys/arm/arm/busdma_machdep-v6.c	(revision 255665)
+++ sys/arm/arm/busdma_machdep-v6.c	(working copy)
@@ -426,7 +426,11 @@
 	 || newtag->alignment > 1)
 		newtag->flags |= BUS_DMA_COULD_BOUNCE;
 	else
-		maxsize = 2; /* Need at most 2 bounce pages for unaligned access on cache line boundaries */
+		/* 
+		 * Need at most 2 bounce pages for unaligned access
+		 * on cache line boundaries
+	         */
+		maxsize = 2 * PAGE_SIZE;
 
 	if ((flags & BUS_DMA_ALLOCNOW) != 0) {
 		struct bounce_zone *bz;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-arm mailing list