Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2013 13:08:59 GMT
From:      Svatopluk Kraus <onwahe@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   arm/182544: [patch] ARM busdma_machdep-v6.c
Message-ID:  <201310011308.r91D8xuE054852@oldred.freebsd.org>
Resent-Message-ID: <201310011310.r91DA0OJ030995@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310011308.r91D8xuE054852>