Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2009 18:54:32 +0200
From:      Hans Petter Selasky <hselasky@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Contigmalloc regression seen on latest 7.x and 8.x branches
Message-ID:  <200906291854.33113.hselasky@freebsd.org>

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

I know there has been some changes in the contigmalloc area this year. It 
appears to me like if a bug has sneaked in. My PCI driver is trying to 
allocate 32K aligned to 32K. I've added some debug prints to isolate the 
failing case:

contigmalloc: size=0x00008000, flag=2, low=0x00000000 high=0xffffffff 
alignment=0x00008000 boundary=0x00000000
contigmalloc: ret=0xe5af2000
bus_dmamem_alloc failed to align memory properly.

> uname -a
FreeBSD xxxx 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Mon Jun 29 18:43:03 CEST 2009     
xxx@xxx:/usr/obj/usr/8-current/src/sys/custom  i386

It should be quite trivial to reproduce. Simply make a KLD that calls 
contigmalloc() with the parameters given above.

Anyone have any patches?

--HPS



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