NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/42980 CVS commit: src/sys/arch

The following reply was made to PR port-amd64/42980; it has been noted by GNATS.

From: Manuel Bouyer <>
Subject: PR/42980 CVS commit: src/sys/arch
Date: Mon, 22 Mar 2010 22:03:30 +0000

 Module Name:   src
 Committed By:  bouyer
 Date:          Mon Mar 22 22:03:30 UTC 2010
 Modified Files:
        src/sys/arch/x86/x86: bus_dma.c
        src/sys/arch/xen/x86: xen_bus_dma.c
 Log Message:
 bus_dmamem_alloc() may not get a boundary smaller than size, but
 it's perfectly valid for bus_dmamap_create() to do so (a contigous
 transfers will then split in multiple segment).
 Fix _xen_bus_dmamem_alloc_range() and _bus_dmamem_alloc_range() to
 allow a boundary limit smaller than size:
 - compute appropriate boundary for uvm_pglistalloc(), wich doesn't
   accept boundary < size
 - also take care of boundary when deciding to start a new segment.
 While there, remove useless boundary argument to _xen_alloc_contig().
 Fix the boundary-related issue of PR port-amd64/42980
 To generate a diff of this commit:
 cvs rdiff -u -r1.53 -r1.54 src/sys/arch/x86/x86/bus_dma.c
 cvs rdiff -u -r1.20 -r1.21 src/sys/arch/xen/x86/xen_bus_dma.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index