removal of NGROUPS_MAX dependancy from base

2009-02-13 Thread ttw+bsd
attached is the first in a series of patches that is intended to remove the current limitation on group membership. this patch should remove the dependancy on the definition of NGROUPS_MAX as a static constant and implement it as a writable sysconf variable of the same. it should also make the

bus_dmamem_alloc() and BUS_DMA_WAITOK

2009-02-13 Thread Patrick Lamaizière
Hello, I would like to know if it is safe to use the BUS_DMA_WAITOK flag with bus_dmamem_alloc(), in the context of the device_attach routine? Many drivers use BUS_DMA_NOWAIT. I need a 32Ko buffer and on low memory my driver cannot attach (bus_dmamem_alloc returns ENOMEM). Will BUS_DMA_WAITOK

Re: bus_dmamem_alloc() and BUS_DMA_WAITOK

2009-02-13 Thread John Baldwin
On Friday 13 February 2009 9:22:05 am Patrick Lamaizière wrote: Hello, I would like to know if it is safe to use the BUS_DMA_WAITOK flag with bus_dmamem_alloc(), in the context of the device_attach routine? Many drivers use BUS_DMA_NOWAIT. Yes, it is ok to use in an attach routine. I need

Tyan S2895 7.1 amd64 4Gb RAM support?

2009-02-13 Thread Karl Pielorz
Hi, I've a Tyan S2895 (bios 1.04), w/10Gb of ECC RAM onboard using 2 * Opteron 285's. The machine used to run WinXP x64, and Vista x64 (mostly doing video production, ray tracing etc.) I recently switched this machine to FreeBSD 7.1 amd64 - to run ZFS on it, but I've been having horrific

TUNABLE_INT question

2009-02-13 Thread Roman Divacky
hi #define TUNABLE_INT(path, var) \ static struct tunable_int __CONCAT(__tunable_int_, __LINE__) = { \ (path), \ (var), \ };

Re: Tyan S2895 7.1 amd64 4Gb RAM support?

2009-02-13 Thread Max Laier
On Friday 13 February 2009 19:00:31 Karl Pielorz wrote: Hi, I've a Tyan S2895 (bios 1.04), w/10Gb of ECC RAM onboard using 2 * Opteron 285's. The machine used to run WinXP x64, and Vista x64 (mostly doing video production, ray tracing etc.) I recently switched this machine to FreeBSD 7.1

Re: TUNABLE_INT question

2009-02-13 Thread Ryan Stone
__FILE__ is a string so you can't concat that with anything to produce an identifier. In any case, the variable is static so there can't be any collision problems with other files. Ryan Stone ___ freebsd-hackers@freebsd.org mailing list

Re: TUNABLE_INT question

2009-02-13 Thread Roman Divacky
On Fri, Feb 13, 2009 at 03:55:44PM -0500, Ryan Stone wrote: __FILE__ is a string so you can't concat that with anything to produce an identifier. In any case, the variable is static so there can't be any collision problems with other files. I was talking about the SYSINIT parameter. thats a