Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Christiano F. Haesbaert
I prefer a switch too, it shows you acknowledged those variants, anyhow i think the current idiom is bad and should be changed.

Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Brad Smith
On Wed, Sep 26, 2012 at 03:32:37PM -0400, Brad Smith wrote: Simplify the gem(4) variant detection code a bit. OK? How about this.. Index: if_gem_pci.c === RCS file: /home/cvs/src/sys/dev/pci/if_gem_pci.c,v retrieving revision

Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Christiano F. Haesbaert
On Fri, Sep 28, 2012 at 02:42:18AM -0400, Brad Smith wrote: On Wed, Sep 26, 2012 at 03:32:37PM -0400, Brad Smith wrote: Simplify the gem(4) variant detection code a bit. OK? How about this.. Index: if_gem_pci.c ===

Re: Threads related SIGSEGV in random.c (diff, v2)

2012-09-28 Thread Philip Guenther
On Thu, 27 Sep 2012, Alexey Suslikov wrote: On Thursday, September 27, 2012, Alexey Suslikov wrote: On Thursday, September 27, 2012, Philip Guenther wrote: On Thu, 27 Sep 2012, Alexey Suslikov wrote: Removing only local variables part reverts us to previous behavior (i.e. crashes).

Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Kenneth R Westerback
On Fri, Sep 28, 2012 at 09:31:34AM +0200, Christiano F. Haesbaert wrote: On Fri, Sep 28, 2012 at 02:42:18AM -0400, Brad Smith wrote: On Wed, Sep 26, 2012 at 03:32:37PM -0400, Brad Smith wrote: Simplify the gem(4) variant detection code a bit. OK? How about this.. Index:

[hppa64] mkboot fix

2012-09-28 Thread Alexander Polakov
This allows mkboot make bootable lif's. mkboot compiled on amd64, tested with rp2470. Index: mkboot.c === RCS file: /cvs/src/sys/arch/hppa64/stand/mkboot/mkboot.c,v retrieving revision 1.2 diff -u -p -r1.2 mkboot.c --- mkboot.c27

Re: gem(4): simplify gem_attach_pci() variant detection code a bit

2012-09-28 Thread Stuart Henderson
On 2012/09/28 10:08, Kenneth R Westerback wrote: This is better IMHO. I was mildly concerned about the previous versions that seemed to recognize previously unknown chips. ok krw@ The driver won't attach to unknown chips anyway, if someone adds a new id to gem_pci_devices[], either the

10月26日北京会议通知

2012-09-28 Thread dsqebi
23:13:06 [demime 1.01d removed an attachment of type application/octet-stream which had a name of =?utf-8?B?56eR5oqA6aG555uu6LWE6YeR55Sz5oql5LiO55+l6K+G5Lqn5p2D566h55CGKOWMl+S6rCkuZG9j?=]

802.11 power save fixes

2012-09-28 Thread Nathanael Rensen
I enabled power save for an rt2860 AP using the following diff: Index: sys/dev/ic/rt2860.c === RCS file: /cvs/src/sys/dev/ic/rt2860.c,v retrieving revision 1.65 diff -u -p -r1.65 sys/dev/ic/rt2860.c --- sys/dev/ic/rt2860.c 23 Oct

[PATCH, TEST] Make functions in random.c thread safe

2012-09-28 Thread Alexey Suslikov
Hi. With input from tedu@, guenther@ and others, below are: 1) test case; 2) backtrace for test case; 3) locking diff; 4) dmesg (amd64 GENERIC.MP built from 2012-09-28 CVS). Diff introduces no changes to srandomdev(): correct me if I'm wrong, but no mutex can be used since sysctl can sleep.