svn commit: r221618 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sun May 8 05:45:06 2011 New Revision: 221618 URL: http://svn.freebsd.org/changeset/base/221618 Log: Properly indent the WAR code i pasted in from ath9k a few months ago. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Modified: head/sys/dev/ath/ath_hal/ar5416

svn commit: r221617 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sun May 8 05:25:42 2011 New Revision: 221617 URL: http://svn.freebsd.org/changeset/base/221617 Log: * Add in a comment about ar5416InitUserSettings() potentially modifying AR_DIAG_SW. There's a hardware workaround which sets disabling some errors early at sta

svn commit: r221616 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sun May 8 03:24:17 2011 New Revision: 221616 URL: http://svn.freebsd.org/changeset/base/221616 Log: Fiddle with the AR5416 1.0 chainmask setup. Apparently all three RX chains need to be enabled before initial calibration is done, even if only two are configured.

svn commit: r221615 - in head: etc/rc.d sys/fs/nfsserver

2011-05-07 Thread Rick Macklem
Author: rmacklem Date: Sun May 8 01:01:27 2011 New Revision: 221615 URL: http://svn.freebsd.org/changeset/base/221615 Log: Change the new NFS server so that it uses vfs.nfsd naming for its sysctls instead of vfs.newnfs. This separates the names from the ones used by the client. Modified:

Re: svn commit: r221550 - head/sys/powerpc/conf

2011-05-07 Thread Attilio Rao
2011/5/6 Attilio Rao : > 2011/5/6 Nathan Whitehorn : >> Author: nwhitehorn >> Date: Fri May  6 20:43:02 2011 >> New Revision: 221550 >> URL: http://svn.freebsd.org/changeset/base/221550 >> >> Log: >>  SMP has worked perfectly for a very long time on 32-bit PowerPC on both >>  UP and SMP hardware. E

Re: svn commit: r221497 - head/release/ia64

2011-05-07 Thread Alexey Dokuchaev
On Thu, May 05, 2011 at 10:29:47PM -0500, Nathan Whitehorn wrote: > I'm cleaning up the release-building code, and am switching them from > mkisofs to makefs, which provides the same functionality. This started > with some irritation with the cdrtools port and a bug in the HFS hybrid > generatio

svn commit: r221608 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 18:42:41 2011 New Revision: 221608 URL: http://svn.freebsd.org/changeset/base/221608 Log: Fix the IS_5416 checks to actually work correctly. I've verified that my AR5416 revision 2.2 (minor revision 0x0A) now matches the correct checks. Modified: head/sy

svn commit: r221607 - head/sys/kern

2011-05-07 Thread Jaakko Heinonen
Author: jh Date: Sat May 7 17:59:07 2011 New Revision: 221607 URL: http://svn.freebsd.org/changeset/base/221607 Log: To avoid duplicated warning, move WITNESS_WARN() added in r221597 to the branch which doesn't call malloc(9). Suggested by: kib Modified: head/sys/kern/kern_environment

Re: svn commit: r221604 - head/usr.sbin/usbdump

2011-05-07 Thread Hans Petter Selasky
On Saturday 07 May 2011 19:13:27 m...@freebsd.org wrote: > On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky wrote: > > On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: > >> - Use memcpy() instead of bcopy(). > > > > - Use memset() instead of bzero(). > > Why? It usually falls t

svn commit: r221606 - head/sys/ia64/ia64

2011-05-07 Thread Marcel Moolenaar
Author: marcel Date: Sat May 7 17:23:13 2011 New Revision: 221606 URL: http://svn.freebsd.org/changeset/base/221606 Log: In pmap_kextract(), return the physical address for PBVM virtual addresses as well (incl. the PBVM page table). Modified: head/sys/ia64/ia64/pmap.c Modified: head/sys/i

Re: svn commit: r221604 - head/usr.sbin/usbdump

2011-05-07 Thread Garrett Cooper
On Sat, May 7, 2011 at 10:13 AM, wrote: > On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky wrote: >> On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: >>>   - Use memcpy() instead of bcopy(). >> >> - Use memset() instead of bzero(). > > Why?  It usually falls through to the same cod

Re: svn commit: r221604 - head/usr.sbin/usbdump

2011-05-07 Thread mdf
On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky wrote: > On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: >>   - Use memcpy() instead of bcopy(). > > - Use memset() instead of bzero(). Why? It usually falls through to the same code in libc. Is there some standardization on memfoo

Re: svn commit: r221604 - head/usr.sbin/usbdump

2011-05-07 Thread Hans Petter Selasky
On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote: > - Use memcpy() instead of bcopy(). - Use memset() instead of bzero(). --HPS ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe,

svn commit: r221605 - head/sys/dev/usb

2011-05-07 Thread Hans Petter Selasky
Author: hselasky Date: Sat May 7 16:32:59 2011 New Revision: 221605 URL: http://svn.freebsd.org/changeset/base/221605 Log: Add new USB ID. Submitted by: Dmitry Luhtionov MFC after:7 days Modified: head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/usbdevs ===

svn commit: r221604 - head/usr.sbin/usbdump

2011-05-07 Thread Hans Petter Selasky
Author: hselasky Date: Sat May 7 16:28:23 2011 New Revision: 221604 URL: http://svn.freebsd.org/changeset/base/221604 Log: Minor usbdump update: - Use memcpy() instead of bcopy(). - Replace all asserts() by standard error messages. - Update usage(). MFC after:7 days Modified:

svn commit: r221603 - in head/sys/dev/ath/ath_hal: . ar5416 ar9001 ar9002

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 15:30:23 2011 New Revision: 221603 URL: http://svn.freebsd.org/changeset/base/221603 Log: Do a HAL capabilities sync pass based on the Atheros HAL. * Shuffle some of the capability numbers around to match the Atheros HAL capability IDs, just for consisten

svn commit: r221602 - in head: bin/sh tools/regression/bin/sh/expansion

2011-05-07 Thread Jilles Tjoelker
Author: jilles Date: Sat May 7 14:32:16 2011 New Revision: 221602 URL: http://svn.freebsd.org/changeset/base/221602 Log: sh: Add UTF-8 support to ${#var}. If the current locale uses UTF-8, ${#var} counts codepoints (more precisely, bytes b with (b & 0xc0) != 0x80). Added: head/tools/r

svn commit: r221601 - head/sys/boot/common

2011-05-07 Thread Andriy Gapon
Author: avg Date: Sat May 7 13:57:30 2011 New Revision: 221601 URL: http://svn.freebsd.org/changeset/base/221601 Log: a whitespace nit Reminder from:kib MFC after:4 days Modified: head/sys/boot/common/interp.c Modified: head/sys/boot/common/interp.c ==

svn commit: r221600 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 13:08:48 2011 New Revision: 221600 URL: http://svn.freebsd.org/changeset/base/221600 Log: Update the ext channel cycpwr threshold 1 register for the extension channel when the channel is HT/40. The new ANI code (primarily for the AR9300/AR9400) in ath9k set

Re: svn commit: r221597 - head/sys/kern

2011-05-07 Thread Kostik Belousov
On Sat, May 07, 2011 at 03:20:48PM +0300, Jaakko Heinonen wrote: > On 2011-05-07, Kostik Belousov wrote: > > > @@ -310,6 +310,7 @@ getenv(const char *name) > > > int len; > > > > > > if (dynamic_kenv) { > > > + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "getenv"); > > >

svn commit: r221599 - head/sys/i386/i386

2011-05-07 Thread Alexander Motin
Author: mav Date: Sat May 7 12:27:25 2011 New Revision: 221599 URL: http://svn.freebsd.org/changeset/base/221599 Log: Don't use MWAIT for short sleeps under XEN, as it was before r212541. This fixes panic during boot in PV mode on Xen 3.2. Modified: head/sys/i386/i386/machdep.c Modified:

Re: svn commit: r221597 - head/sys/kern

2011-05-07 Thread Jaakko Heinonen
On 2011-05-07, Kostik Belousov wrote: > > @@ -310,6 +310,7 @@ getenv(const char *name) > > int len; > > > > if (dynamic_kenv) { > > + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "getenv"); > > mtx_lock(&kenv_lock); > > cp = _getenv_dynamic(name, NULL)

Re: svn commit: r221593 - head/sys/boot/common

2011-05-07 Thread Kostik Belousov
On Sat, May 07, 2011 at 10:40:57AM +, Andriy Gapon wrote: > Author: avg > Date: Sat May 7 10:40:57 2011 > New Revision: 221593 > URL: http://svn.freebsd.org/changeset/base/221593 > > Log: > a whitespace nit > > MFC after: 4 days > > Modified: > head/sys/boot/common/interp.c > > Mo

Re: svn commit: r221597 - head/sys/kern

2011-05-07 Thread Kostik Belousov
On Sat, May 07, 2011 at 11:10:58AM +, Jaakko Heinonen wrote: > Author: jh > Date: Sat May 7 11:10:58 2011 > New Revision: 221597 > URL: http://svn.freebsd.org/changeset/base/221597 > > Log: > Add WITNESS_WARN() to getenv() to explicitly note that the function may > sleep. This helps to ex

svn commit: r221598 - head/lib/libelf

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 11:29:48 2011 New Revision: 221598 URL: http://svn.freebsd.org/changeset/base/221598 Log: Document the behavior of `elf_getdata()` and `elf_rawdata()` with zero-sized ELF sections. Obtained from:elftoolchain Modified: head/lib/libelf/elf_getdata.3

svn commit: r221597 - head/sys/kern

2011-05-07 Thread Jaakko Heinonen
Author: jh Date: Sat May 7 11:10:58 2011 New Revision: 221597 URL: http://svn.freebsd.org/changeset/base/221597 Log: Add WITNESS_WARN() to getenv() to explicitly note that the function may sleep. This helps to expose bugs when the requested environment variable doesn't exist. Modified: h

svn commit: r221596 - in head/sys/dev/ath/ath_hal: . ar5416 ar9001 ar9002

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 11:05:16 2011 New Revision: 221596 URL: http://svn.freebsd.org/changeset/base/221596 Log: Read in the extended regulatory domain flags so future code can use them. These describe FCC/Japan channel and DFS behaviour. The AR9285 and later chips don't set t

svn commit: r221595 - head/lib/libelf

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 11:04:36 2011 New Revision: 221595 URL: http://svn.freebsd.org/changeset/base/221595 Log: For zero-sized sections, set the `d_buf` field of the `Elf_Data` descriptor returned by `elf_rawdata()` to NULL. Obtained from:elftoolchain Modified: head/lib

svn commit: r221594 - head/share/man/man5

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:44:08 2011 New Revision: 221594 URL: http://svn.freebsd.org/changeset/base/221594 Log: * Rewrite ar.5 mannual page to better document ar(1) archive format. * Use more standard BSD license. Obtained from:elftoolchain Modified: head/share/man/man5

svn commit: r221593 - head/sys/boot/common

2011-05-07 Thread Andriy Gapon
Author: avg Date: Sat May 7 10:40:57 2011 New Revision: 221593 URL: http://svn.freebsd.org/changeset/base/221593 Log: a whitespace nit MFC after:4 days Modified: head/sys/boot/common/interp.c Modified: head/sys/boot/common/interp.c ==

svn commit: r221585 - head/sys/cam/scsi

2011-05-07 Thread Andriy Gapon
Author: avg Date: Sat May 7 10:06:43 2011 New Revision: 221585 URL: http://svn.freebsd.org/changeset/base/221585 Log: scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl An optical disk may not have a TOC (e.g. for blank media) and userland software may legitimately try to use CD