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

2016-03-29 Thread Konstantin Belousov
Author: kib Date: Tue Mar 29 08:31:34 2016 New Revision: 297373 URL: https://svnweb.freebsd.org/changeset/base/297373 Log: Use ANSI function definition. Sponsored by: The FreeBSD Foundation Modified: head/sys/x86/x86/mp_x86.c Modified: head/sys/x86/x86/mp_x86.c =

Re: svn commit: r297039 - head/sys/x86/x86

2016-03-29 Thread Konstantin Belousov
On Mon, Mar 28, 2016 at 11:55:18AM -0700, John Baldwin wrote: > I think this is more to allow you to keep the TSCs in sync across cores > more sanely by being able to adjust TSC_ADJ instead of trying to time > a write to the TSC to apply an offset (which is racy). If it was targeted > at SMM, it w

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

2016-03-29 Thread Konstantin Belousov
Author: kib Date: Tue Mar 29 08:44:56 2016 New Revision: 297374 URL: https://svnweb.freebsd.org/changeset/base/297374 Log: Calibrate the frequency of the of the native_lapic_ipi_wait() loop, and avoid a delay while waiting for IPI delivery acknowledgement in xAPIC mode. This makes the loop

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

2016-03-29 Thread Hans Petter Selasky
Author: hselasky Date: Tue Mar 29 10:47:14 2016 New Revision: 297381 URL: https://svnweb.freebsd.org/changeset/base/297381 Log: Verify that all segments in the loaded segment list are back to back with regard to the page offset, and not only the two first ones. Modified: head/sys/dev/usb/us

svn commit: r297384 - head/usr.bin/fetch

2016-03-29 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 29 11:56:00 2016 New Revision: 297384 URL: https://svnweb.freebsd.org/changeset/base/297384 Log: Add phttpget(8) .Xr to fetch(1). MFC after:1 month Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/fetch/fetch.1 Modified: head/usr.bin/fetch/fe

svn commit: r297386 - in head: share/man/man4 sys/dev/amdsbwd

2016-03-29 Thread Alexander Motin
Author: mav Date: Tue Mar 29 12:19:46 2016 New Revision: 297386 URL: https://svnweb.freebsd.org/changeset/base/297386 Log: Add support for AMD FCH watchdog timers. MFC after:2 weeks Modified: head/share/man/man4/amdsbwd.4 head/sys/dev/amdsbwd/amdsbwd.c Modified: head/share/man/man

svn commit: r297387 - in head/sys/dev: sound/pci/hda usb/controller

2016-03-29 Thread Alexander Motin
Author: mav Date: Tue Mar 29 12:50:42 2016 New Revision: 297387 URL: https://svnweb.freebsd.org/changeset/base/297387 Log: Add some device IDs found on AMD FCH shipsets. MFC after:2 weeks Modified: head/sys/dev/sound/pci/hda/hdac.c head/sys/dev/sound/pci/hda/hdac.h head/sys/dev/u

svn commit: r297388 - head/sys/dev/vnic

2016-03-29 Thread Zbigniew Bodek
Author: zbb Date: Tue Mar 29 13:28:13 2016 New Revision: 297388 URL: https://svnweb.freebsd.org/changeset/base/297388 Log: Don't manage free SQ entry index by the atomic operations It is not necessary as entries are being manipulated under lock. Reviewed by: wma Obtained from: Semi

svn commit: r297389 - head/sys/dev/vnic

2016-03-29 Thread Zbigniew Bodek
Author: zbb Date: Tue Mar 29 13:31:09 2016 New Revision: 297389 URL: https://svnweb.freebsd.org/changeset/base/297389 Log: Improve HW checksums support in VNIC - Do not mark CSUM_IP_CHECKED and CSUM_IP_VALID on IPv6 packets. IPv6 does not have checksums by definition. - Set SCTP packe

svn commit: r297390 - in head/sys: arm/arm arm64/arm64

2016-03-29 Thread Andrew Turner
Author: andrew Date: Tue Mar 29 13:51:26 2016 New Revision: 297390 URL: https://svnweb.freebsd.org/changeset/base/297390 Log: Read the CPU ID for the current CPU from the GIC. The GIC may have a different ID space than the kernel. Because of this we need to read the ID from the hardware. The

svn commit: r297391 - in head/sys: kern net netinet rpc ufs/ufs

2016-03-29 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Mar 29 13:56:59 2016 New Revision: 297391 URL: https://svnweb.freebsd.org/changeset/base/297391 Log: Remove some NULL checks for M_WAITOK allocations. MFC after:1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/imgact_elf.c head/sys/kern

Re: svn commit: r297374 - head/sys/x86/x86

2016-03-29 Thread Pokala, Ravi
Hi Kib, -Original Message- From: on behalf of Konstantin Belousov Date: 2016-03-29, Tuesday at 01:44 To: , , Subject: svn commit: r297374 - head/sys/x86/x86 >Author: kib >Date: Tue Mar 29 08:44:56 2016 >New Revision: 297374 >URL: https://svnweb.freebsd.org/changeset/base/297374 > >

svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-29 Thread Zbigniew Bodek
Author: zbb Date: Tue Mar 29 15:19:56 2016 New Revision: 297392 URL: https://svnweb.freebsd.org/changeset/base/297392 Log: Reduce OFW PCI code duplication - involves ARM, PPC and SPARC64 Import portions of the PowerPC OF PCI implementation into new file "ofwpci.c", common for other platfo

svn commit: r297393 - head/sys/modules/urtwn

2016-03-29 Thread Bryan Drewery
Author: bdrewery Date: Tue Mar 29 15:26:53 2016 New Revision: 297393 URL: https://svnweb.freebsd.org/changeset/base/297393 Log: Use proper kern.opts.mk rather than src.opts.mk from r297058. Reported by: kib Sponsored by: EMC / Isilon Storage Division Modified: head/sys/modules/urtwn/M

svn commit: r297394 - head/share/man/man9

2016-03-29 Thread Bryan Drewery
Author: bdrewery Date: Tue Mar 29 16:07:51 2016 New Revision: 297394 URL: https://svnweb.freebsd.org/changeset/base/297394 Log: Reword descriptions of asserting locks held without WITNESS. This corrects an error in r296947 in that it is not possible to assert which thread holds a shared (

svn commit: r297395 - in head/sys/arm/ti: . am335x

2016-03-29 Thread Luiz Otavio O Souza
Author: loos Date: Tue Mar 29 19:11:04 2016 New Revision: 297395 URL: https://svnweb.freebsd.org/changeset/base/297395 Log: Add the SPI driver for am335x. This driver works in PIO mode for now, interrupts are available only when FIFO is enabled. The FIFO cannot be used with arbitrary siz

svn commit: r297396 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-03-29 Thread Alexander Motin
Author: mav Date: Tue Mar 29 19:18:34 2016 New Revision: 297396 URL: https://svnweb.freebsd.org/changeset/base/297396 Log: Modify "4958 zdb trips assert on pools with ashift >= 0xe". Unlike Illumos FreeBSD has concept of logical ashift, that specifies really minimal vdev block size that c

svn commit: r297397 - head/sys/netinet6

2016-03-29 Thread Mark Johnston
Author: markj Date: Tue Mar 29 19:23:00 2016 New Revision: 297397 URL: https://svnweb.freebsd.org/changeset/base/297397 Log: Modify nd6_llinfo_timer() to acquire the nd6 lock before the LLE lock. When expiring a neighbour cache entry we may need to look up the associated default router, w

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

2016-03-29 Thread Konstantin Belousov
Author: kib Date: Tue Mar 29 19:54:13 2016 New Revision: 297398 URL: https://svnweb.freebsd.org/changeset/base/297398 Log: Fix several bugs in r297374: - fix UP build [1] - do not obliterate initial reading of rdtsc by the loop counter [2] - restore the meaning of the argument -1 to native

svn commit: r297399 - in head/sys: amd64/include i386/include x86/include

2016-03-29 Thread Konstantin Belousov
Author: kib Date: Tue Mar 29 19:56:48 2016 New Revision: 297399 URL: https://svnweb.freebsd.org/changeset/base/297399 Log: Type of the interrupt handlers on x86 cannot be expressed in C. Simplify and unify placeholder type definitions. Reviewed by: jhb Sponsored by: The FreeBSD Foundat

svn commit: r297400 - in head/sys: compat/freebsd32 kern sys

2016-03-29 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 29 19:57:11 2016 New Revision: 297400 URL: https://svnweb.freebsd.org/changeset/base/297400 Log: The sendfile(2) allows to send extra data from userspace before the file data (headers). Historically the size of the headers was not checked against the socket buf

svn commit: r297401 - head/sys/fs/cd9660

2016-03-29 Thread Konstantin Belousov
Author: kib Date: Tue Mar 29 19:59:44 2016 New Revision: 297401 URL: https://svnweb.freebsd.org/changeset/base/297401 Log: Do not access buffer if bread(9) or cluster_read(9) failed. On error, the functions free the buffer and set the pointer to NULL. Also remove useless call to brelse(9)

Re: svn commit: r297396 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-03-29 Thread Andriy Gapon
On 29/03/2016 22:18, Alexander Motin wrote: > Author: mav > Date: Tue Mar 29 19:18:34 2016 > New Revision: 297396 > URL: https://svnweb.freebsd.org/changeset/base/297396 > > Log: > Modify "4958 zdb trips assert on pools with ashift >= 0xe". > > Unlike Illumos FreeBSD has concept of logical

Re: svn commit: r297396 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2016-03-29 Thread Alexander Motin
On 29.03.16 23:04, Andriy Gapon wrote: > On 29/03/2016 22:18, Alexander Motin wrote: >> Author: mav >> Date: Tue Mar 29 19:18:34 2016 >> New Revision: 297396 >> URL: https://svnweb.freebsd.org/changeset/base/297396 >> >> Log: >> Modify "4958 zdb trips assert on pools with ashift >= 0xe". >> >>

Re: svn commit: r297040 - in head: contrib/bmake contrib/bmake/mk share/mk usr.bin/bmake

2016-03-29 Thread Bryan Drewery
On 3/18/16 1:03 PM, Simon J. Gerraty wrote: > .if defined(NO_DIRDEPS) || defined(NODIRDEPS) || defined(WITHOUT_DIRDEPS) > -# confine ourselves to the original dir > +# confine ourselves to the original dir and below. > DIRDEPS_FILTER += M${_DEP_RELDIR}* > +.elif defined(NO_DIRDEPS_BELOW) > +DIRD

svn commit: r297402 - head/sys/dev/ata

2016-03-29 Thread Pedro F. Giffuni
Author: pfg Date: Tue Mar 29 23:33:44 2016 New Revision: 297402 URL: https://svnweb.freebsd.org/changeset/base/297402 Log: Small typo. Modified: head/sys/dev/ata/ata-lowlevel.c Modified: head/sys/dev/ata/ata-lowlevel.c =

Re: svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-29 Thread Ed Maste
On 29 March 2016 at 15:19, Zbigniew Bodek wrote: > Author: zbb > Date: Tue Mar 29 15:19:56 2016 > New Revision: 297392 > URL: https://svnweb.freebsd.org/changeset/base/297392 > > Log: > Reduce OFW PCI code duplication - involves ARM, PPC and SPARC64 My 'make tinderbox' build is now failing (pow

svn commit: r297403 - head/sys/netinet6

2016-03-29 Thread Mark Johnston
Author: markj Date: Wed Mar 30 00:03:59 2016 New Revision: 297403 URL: https://svnweb.freebsd.org/changeset/base/297403 Log: Fix the lladdr copy in in6_lltable_dump_entry() after r292978. This bug caused "ndp -a" to show the wrong link layer address for neighbour cache entries. PR:

svn commit: r297404 - head/sys/net80211

2016-03-29 Thread Adrian Chadd
Author: adrian Date: Wed Mar 30 00:42:18 2016 New Revision: 297404 URL: https://svnweb.freebsd.org/changeset/base/297404 Log: [net80211] Add fields to decode uAPSD fields. It turns out that madwifi actually has the basics for uAPSD implemented but it was never ported to FreeBSD. I may ev

svn commit: r297405 - in head/sys: dev/ath net80211

2016-03-29 Thread Adrian Chadd
Author: adrian Date: Wed Mar 30 00:44:10 2016 New Revision: 297405 URL: https://svnweb.freebsd.org/changeset/base/297405 Log: [net80211] migrate the time_* macros to ieee80211_* namespace. It turns out that these will clash very annoyingly with the linux macros in the linuxkpi layer, so l

svn commit: r297406 - head/sys/ofed/drivers/infiniband/core

2016-03-29 Thread Navdeep Parhar
Author: np Date: Wed Mar 30 01:08:08 2016 New Revision: 297406 URL: https://svnweb.freebsd.org/changeset/base/297406 Log: Remove unnecessary dequeue_mutex (added in r294610) from the iWARP connection manager. Examining so_comp without synchronization with iw_so_event_handler is a harmless r

svn commit: r297407 - head/lib/libc/stdio

2016-03-29 Thread Pedro F. Giffuni
Author: pfg Date: Wed Mar 30 01:32:08 2016 New Revision: 297407 URL: https://svnweb.freebsd.org/changeset/base/297407 Log: freopen(3): prevent uninitialized errno. The case doesn't look very likely but clean the possibility nevertheless CID: 1018720 MFC after:1 week Mod

Re: svn commit: r297040 - in head: contrib/bmake contrib/bmake/mk share/mk usr.bin/bmake

2016-03-29 Thread Simon J. Gerraty
Bryan Drewery wrote: > There is still dirdeps cache code right further down below this that > only is skipped with NO_DIRDEPS. Ah yes. Index: dirdeps.mk === RCS file: /volume/cvs/sjg/mk/dirdeps.mk,v retrieving revision 1.62 retrievi

svn commit: r297408 - head/lib/libc/stdio

2016-03-29 Thread Pedro F. Giffuni
Author: pfg Date: Wed Mar 30 06:13:58 2016 New Revision: 297408 URL: https://svnweb.freebsd.org/changeset/base/297408 Log: freopen(3): prevent uninitialized errno. Revert r297407 and redo it cleanly. Pointed out by: Jukka A. Ukkonen CID: 1018720 MFC after:1 week

svn commit: r297409 - head/sys/dev/bwn

2016-03-29 Thread Adrian Chadd
Author: adrian Date: Wed Mar 30 06:48:09 2016 New Revision: 297409 URL: https://svnweb.freebsd.org/changeset/base/297409 Log: [bwn] fix time_before -> ieee80211_time_before() Noticed by: Jia-Shiun Li Modified: head/sys/dev/bwn/if_bwn.c Modified: head/sys/dev/bwn/if_bwn.c ==