Re: svn commit: r233684 - head/sys/x86/include

2012-03-30 Thread Andrey Chernov
On Thu, Mar 29, 2012 at 11:31:48PM +, Dimitry Andric wrote: However, the arguments are not properly masked, which results in the wrong value being calculated in some instances. For example, bswap32(0x12345678) returns 0x7c563412, and bswap64(0x123456789abcdef0) returns

svn commit: r233692 - head/sys/dev/sound/pci/hda

2012-03-30 Thread Alexander Motin
Author: mav Date: Fri Mar 30 08:33:08 2012 New Revision: 233692 URL: http://svn.freebsd.org/changeset/base/233692 Log: Reenable unsolicited responses on CODEC if hdaa_sense_init() called again. This fixes jack connection events handling after suspend/resume. PR: kern/166382

svn commit: r233693 - head/sys/kern

2012-03-30 Thread David Xu
Author: davidxu Date: Fri Mar 30 09:03:53 2012 New Revision: 233693 URL: http://svn.freebsd.org/changeset/base/233693 Log: Fix COMPAT_FREEBSD32 build. Submitted by: Andreas Tobler andreast at fgznet dot ch Modified: head/sys/kern/kern_umtx.c Modified: head/sys/kern/kern_umtx.c

svn commit: r233694 - in stable/9/libexec/rtld-elf: . amd64 arm i386 ia64 mips powerpc powerpc64 sparc64

2012-03-30 Thread Konstantin Belousov
Author: kib Date: Fri Mar 30 09:34:19 2012 New Revision: 233694 URL: http://svn.freebsd.org/changeset/base/233694 Log: MFC r232831: Add support for preinit, init and fini arrays to rtld. Only binaries marked with proper ABI note gets array ctr/dtrs called. MFC r232856: When iterating

svn commit: r233695 - stable/9/libexec/rtld-elf

2012-03-30 Thread Konstantin Belousov
Author: kib Date: Fri Mar 30 09:36:12 2012 New Revision: 233695 URL: http://svn.freebsd.org/changeset/base/233695 Log: MFC r232861: Provide rtld-private implementations of __stack_chk_guard, __stack_chk_fail() and __chk_fail() symbols, to be used by functions linked from libc_pic.a.

svn commit: r233696 - stable/9/libexec/rtld-elf

2012-03-30 Thread Konstantin Belousov
Author: kib Date: Fri Mar 30 09:37:25 2012 New Revision: 233696 URL: http://svn.freebsd.org/changeset/base/233696 Log: MFC r232862: Do not use stdio for libmap.conf read. Directly map the file and parse lines from the mappings. Modified: stable/9/libexec/rtld-elf/libmap.c Directory

svn commit: r233697 - stable/9/libexec/rtld-elf

2012-03-30 Thread Konstantin Belousov
Author: kib Date: Fri Mar 30 09:38:35 2012 New Revision: 233697 URL: http://svn.freebsd.org/changeset/base/233697 Log: MFC r232974: Stop using strerror(3) in rtld, which brings in msgcat and stdio. Directly access sys_errlist array of errno messages with private rtld_strerror() function.

Re: svn commit: r233674 - head/libexec/rtld-elf

2012-03-30 Thread Konstantin Belousov
On Thu, Mar 29, 2012 at 09:11:25PM +0300, Konstantin Belousov wrote: On Thu, Mar 29, 2012 at 05:50:01PM +, Konstantin Belousov wrote: Author: kib Date: Thu Mar 29 17:50:01 2012 New Revision: 233674 URL: http://svn.freebsd.org/changeset/base/233674 Log: Fix ia64 build after

Re: svn commit: r233683 - head/sys/x86/include

2012-03-30 Thread Bruce Evans
On Thu, 29 Mar 2012, Dimitry Andric wrote: Log: Revert sys/x86/include/endian.h to what it was before r233419, as that revision has two problems: - It can produce worse code with both clang and gcc. - It doesn't fix the actual issue introduced in r232721, which will be fixed in the next

Re: svn commit: r233684 - head/sys/x86/include

2012-03-30 Thread Dimitry Andric
On 2012-03-30 10:25, Andrey Chernov wrote: On Thu, Mar 29, 2012 at 11:31:48PM +, Dimitry Andric wrote: However, the arguments are not properly masked, which results in the wrong value being calculated in some instances. For example, bswap32(0x12345678) returns 0x7c563412, and

Re: svn commit: r233684 - head/sys/x86/include

2012-03-30 Thread Andrey Chernov
On Fri, Mar 30, 2012 at 02:11:21PM +0200, Dimitry Andric wrote: In case of the __bswapXX() macros, you can see that the argument to __bswapXX_gen() is first explicitly cast to an unsigned type, for example with __bswap32(): #define __bswap32(x)\

Re: svn commit: r233599 - stable/9/sys/kern

2012-03-30 Thread Slawa Olhovchenkov
On Wed, Mar 28, 2012 at 11:37:06AM +, Alexander Motin wrote: Author: mav Date: Wed Mar 28 11:37:06 2012 New Revision: 233599 URL: http://svn.freebsd.org/changeset/base/233599 Log: MFC r232207, r232454: Rework CPU load balancing in SCHED_ULE: - In sched_pickcpu() be more

svn commit: r233698 - head/lib/libutil

2012-03-30 Thread Joel Dahl
Author: joel (doc committer) Date: Fri Mar 30 12:34:34 2012 New Revision: 233698 URL: http://svn.freebsd.org/changeset/base/233698 Log: mdoc: terminate quoted strings. Modified: head/lib/libutil/login.conf.5 Modified: head/lib/libutil/login.conf.5

svn commit: r233699 - head/contrib/libstdc++/libsupc++

2012-03-30 Thread David Chisnall
Author: theraven Date: Fri Mar 30 12:48:36 2012 New Revision: 233699 URL: http://svn.freebsd.org/changeset/base/233699 Log: Undo the earlier revert of the ABI change in libsupc++. On further discussion, posting an errata notice with 9.1 is the less painful solution. Approved by: dim

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

2012-03-30 Thread Stefan Farfeleder
Hi, here are a few similar cases. Stefan Index: tools/regression/lib/libc/nss/test-gethostby.c === --- tools/regression/lib/libc/nss/test-gethostby.c (revision 233700) +++ tools/regression/lib/libc/nss/test-gethostby.c (working

svn commit: r233701 - head/sys/sparc64/pci

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 15:08:09 2012 New Revision: 233701 URL: http://svn.freebsd.org/changeset/base/233701 Log: - Remove erroneous trailing semicolon. [1] - Correctly determine the maximum payload size for setting the TX link frequent NACK latency and replay timer thresholds.

svn commit: r233702 - head/sys/amd64/amd64

2012-03-30 Thread Jung-uk Kim
Author: jkim Date: Fri Mar 30 16:32:41 2012 New Revision: 233702 URL: http://svn.freebsd.org/changeset/base/233702 Log: Work around Erratum 721 for AMD Family 10h and 12h processors. Under a highly specific and detailed set of internal timing conditions, the processor may incorrectly

svn commit: r233704 - in head/sys/amd64: acpica amd64

2012-03-30 Thread Jung-uk Kim
Author: jkim Date: Fri Mar 30 17:03:06 2012 New Revision: 233704 URL: http://svn.freebsd.org/changeset/base/233704 Log: Re-initialize model-specific MSRs when we resume CPUs. MFC after:1 week Modified: head/sys/amd64/acpica/acpi_wakeup.c head/sys/amd64/amd64/mp_machdep.c

svn commit: r233705 - in stable/9/sys: dev/twa i386/conf

2012-03-30 Thread John Baldwin
Author: jhb Date: Fri Mar 30 17:38:28 2012 New Revision: 233705 URL: http://svn.freebsd.org/changeset/base/233705 Log: MFC 232669: Use bus_get_dma_tag() to inherit the 4G boundary restriction from the parent PCI bus and remove the home-grown version in this driver. Modified:

svn commit: r233706 - in stable/8/sys: dev/twa i386/conf

2012-03-30 Thread John Baldwin
Author: jhb Date: Fri Mar 30 17:38:57 2012 New Revision: 233706 URL: http://svn.freebsd.org/changeset/base/233706 Log: MFC 232669: Use bus_get_dma_tag() to inherit the 4G boundary restriction from the parent PCI bus and remove the home-grown version in this driver. Modified:

svn commit: r233707 - in head/sys: amd64/amd64 amd64/include conf i386/i386 i386/include i386/xbox pc98/include x86/include x86/pci x86/x86

2012-03-30 Thread John Baldwin
Author: jhb Date: Fri Mar 30 19:10:14 2012 New Revision: 233707 URL: http://svn.freebsd.org/changeset/base/233707 Log: Move the legacy(4) driver to x86. Added: head/sys/x86/include/legacyvar.h - copied, changed from r233702, head/sys/amd64/include/legacyvar.h head/sys/x86/x86/legacy.c

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

2012-03-30 Thread Dimitry Andric
On 2012-03-30 15:30, Stefan Farfeleder wrote: here are a few similar cases. Hm, what about this one that clang warns about: sys/dev/asr/asr.c:2420:57: warning: for loop has empty body [-Wempty-body] for (ha = Asr_softc_list; *ha; ha = ((*ha)-ha_next));

svn commit: r233708 - head/sys/dev/e1000

2012-03-30 Thread John Baldwin
Author: jhb Date: Fri Mar 30 19:54:48 2012 New Revision: 233708 URL: http://svn.freebsd.org/changeset/base/233708 Log: Fix a few issues with transmit handling in em(4) and igb(4): - Do not define the foo_start() methods or set if_start in the ifnet if multiq transmit is enabled. Also,

svn commit: r233709 - head/sys/x86/x86

2012-03-30 Thread John Baldwin
Author: jhb Date: Fri Mar 30 20:17:39 2012 New Revision: 233709 URL: http://svn.freebsd.org/changeset/base/233709 Log: Attempt to make machine check handling a bit more robust: - Don't malloc() new MCA records for machine checks logged due to a CMCI or MC# exception. Instead, use a

Re: svn commit: r233294 - in head: . contrib/com_err crypto/heimdal crypto/heimdal/admin crypto/heimdal/appl crypto/heimdal/appl/afsutil crypto/heimdal/appl/ftp crypto/heimdal/appl/ftp/common crypto/h

2012-03-30 Thread Doug Barton
On 3/29/2012 4:16 AM, David Chisnall wrote: On 29 Mar 2012, at 04:36, Doug Barton wrote: All of the stuff that pkgng relies on (including the tool itself) are going to be in the ports collection, where they belong. We should have moved pkg_* there years ago, but this change is at least a

svn commit: r233710 - head/sys/dev/isci

2012-03-30 Thread Dimitry Andric
Author: dim Date: Fri Mar 30 22:52:08 2012 New Revision: 233710 URL: http://svn.freebsd.org/changeset/base/233710 Log: Fix the following compilation warning with clang trunk in isci(4): sys/dev/isci/isci_task_request.c:198:7: error: case value not in enumerated type 'SCI_TASK_STATUS'

svn commit: r233711 - in head/sys: conf dev/mfi modules/mfi

2012-03-30 Thread Doug Ambrisko
Author: ambrisko Date: Fri Mar 30 23:05:48 2012 New Revision: 233711 URL: http://svn.freebsd.org/changeset/base/233711 Log: MFhead_mfi r227068 First cut of new HW support from LSI and merge into FreeBSD. Supports Drake Skinny and ThunderBolt cards. MFhead_mfi r227574

svn commit: r233712 - in stable/9/sys: conf i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:24:44 2012 New Revision: 233712 URL: http://svn.freebsd.org/changeset/base/233712 Log: MFC: r233273 Exclude devices which are mutually exclusive with ATA_CAM. For better or worse, the former are still built as modules as part of the LINT builds.

svn commit: r233713 - head/usr.sbin/mfiutil

2012-03-30 Thread Doug Ambrisko
Author: ambrisko Date: Fri Mar 30 23:39:39 2012 New Revision: 233713 URL: http://svn.freebsd.org/changeset/base/233713 Log: MFhead_mfi r233621 Remove the magic mfi_array is 288 bytes and just use the sizeof the array since it is not 288 bytes. Change reporting

svn commit: r233714 - in stable/8: sbin/atacontrol sys/dev/ata sys/i386/conf usr.sbin/burncd

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:48:15 2012 New Revision: 233714 URL: http://svn.freebsd.org/changeset/base/233714 Log: MFC: r226179 Add a kern.features.ata_cam sysctl in the kernel when the ATA_CAM kernel option is defined. This sysctl can be queried by feature_present(3). Query

svn commit: r233715 - in stable/9/sys: dev/ata dev/ata/chipsets i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:50:16 2012 New Revision: 233715 URL: http://svn.freebsd.org/changeset/base/233715 Log: MFC: r233274 Remove remnants of ATA_LOCKING uses in the ATA_CAM case and wrap it along with functions, SYSCTLs and tunables that are not used with ATA_CAM in

svn commit: r233716 - in stable/8/sys: dev/ata dev/ata/chipsets i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:50:26 2012 New Revision: 233716 URL: http://svn.freebsd.org/changeset/base/233716 Log: MFC: r233274 Remove remnants of ATA_LOCKING uses in the ATA_CAM case and wrap it along with functions, SYSCTLs and tunables that are not used with ATA_CAM in

svn commit: r233717 - in stable/9/sys: dev/ata dev/ata/chipsets i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:56:16 2012 New Revision: 233717 URL: http://svn.freebsd.org/changeset/base/233717 Log: MFC: r233282 - First pass at const'ifying ata(4) as appropriate. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. Modified:

svn commit: r233718 - in stable/8/sys: dev/ata dev/ata/chipsets i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Fri Mar 30 23:56:19 2012 New Revision: 233718 URL: http://svn.freebsd.org/changeset/base/233718 Log: MFC: r233282 - First pass at const'ifying ata(4) as appropriate. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. Modified:

svn commit: r233719 - in stable/9/sys: boot/uboot/lib i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:07:53 2012 New Revision: 233719 URL: http://svn.freebsd.org/changeset/base/233719 Log: MFC: r233287 Use the common/shared CRC-32 implementation instead of duplicating it. Modified: stable/9/sys/boot/uboot/lib/Makefile

svn commit: r233720 - in stable/8/sys: boot/uboot/lib i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:07:54 2012 New Revision: 233720 URL: http://svn.freebsd.org/changeset/base/233720 Log: MFC: r233287 Use the common/shared CRC-32 implementation instead of duplicating it. Modified: stable/8/sys/boot/uboot/lib/Makefile

svn commit: r233721 - in stable/9/sys: dev/mpt i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:10:16 2012 New Revision: 233721 URL: http://svn.freebsd.org/changeset/base/233721 Log: MFC: r233403, r233404 - Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here. Note that this driver additionally probes some device IDs for the

svn commit: r233722 - in stable/8/sys: dev/mpt i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:10:17 2012 New Revision: 233722 URL: http://svn.freebsd.org/changeset/base/233722 Log: MFC: r233403, r233404 - Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here. Note that this driver additionally probes some device IDs for the

svn commit: r233724 - in stable/8/sys: i386/conf sparc64/pci

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:13:46 2012 New Revision: 233724 URL: http://svn.freebsd.org/changeset/base/233724 Log: MFC: r233421 Given that this is a host-PCI-Express bridge driver, create the parent DMA tag with a 4 GB boundary as required by PCI-Express. With r232403 (MFC'ed to

svn commit: r233723 - in stable/9/sys: i386/conf sparc64/pci

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 00:13:41 2012 New Revision: 233723 URL: http://svn.freebsd.org/changeset/base/233723 Log: MFC: r233421 Given that this is a host-PCI-Express bridge driver, create the parent DMA tag with a 4 GB boundary as required by PCI-Express. With r232403 (MFC'ed to

svn commit: r233725 - in stable/9/sys: dev/e1000 i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 01:21:46 2012 New Revision: 233725 URL: http://svn.freebsd.org/changeset/base/233725 Log: MFC: r233423 Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in order to avoid otherwise harmless witness warnings when these are acquired at

svn commit: r233726 - in stable/8/sys: dev/e1000 i386/conf

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 01:21:53 2012 New Revision: 233726 URL: http://svn.freebsd.org/changeset/base/233726 Log: MFC: r233423 Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in order to avoid otherwise harmless witness warnings when these are acquired at

svn commit: r233727 - stable/7/sys/dev/e1000

2012-03-30 Thread Marius Strobl
Author: marius Date: Sat Mar 31 01:21:54 2012 New Revision: 233727 URL: http://svn.freebsd.org/changeset/base/233727 Log: MFC: r233423 Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in order to avoid otherwise harmless witness warnings when these are acquired at