Contigmalloc regression seen on latest 7.x and 8.x branches

From: Hans Petter Selasky <hselasky_at_freebsd.org>
Date: Mon, 29 Jun 2009 18:54:32 +0200
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_at_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
Received on Mon Jun 29 2009 - 15:55:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC