From nobody@FreeBSD.org  Wed Mar 13 16:28:58 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id F190E37B416
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Mar 2002 16:28:57 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2E0Svx28614;
	Wed, 13 Mar 2002 16:28:57 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203140028.g2E0Svx28614@freefall.freebsd.org>
Date: Wed, 13 Mar 2002 16:28:57 -0800 (PST)
From: Greg Johnson <gjohnson@research.canon.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bus_dmamem_free does not call contigfree
X-Send-Pr-Version: www-1.0

>Number:         35876
>Category:       kern
>Synopsis:       bus_dmamem_free does not call contigfree
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 13 16:30:01 PST 2002
>Closed-Date:    Thu May 15 23:12:23 PDT 2003
>Last-Modified:  Thu May 15 23:12:23 PDT 2003
>Originator:     Greg Johnson
>Release:        4.5-RELEASE
>Organization:
Canon Information Systems Research Australia
>Environment:
FreeBSD calvert.research.canon.com.au 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Thu Feb 21 11:21:40 EST 2002     root@calvert.research.canon.com.au:/usr/obj/usr/src/sys/CALVERT  i386

>Description:
bus_dmamem_alloc calls contigmalloc when allocating memory that
is more than a single page in size.

bus_dmamem_free does nothing when freeing allocated memory that
is more than a single page in size. The memory remains wired and
does not get re-allocated.
>How-To-Repeat:
Allocate more than a page of memory using bus_dmamem_alloc the
try to free it using bus_dmamem_free. Note that amount of wired
memory before during and after.
>Fix:
Have bus_dmamem_free call contigfree for the case where the ammount
of memory is more that a single page.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Thu May 15 23:10:27 PDT 2003 
State-Changed-Why:  
This issue has been fixed.  Check CVS log for rev. 1.24 of: 
sys/i386/i386/busdma_machdep.c.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35876 
>Unformatted:
