svn commit: r304330 - head/sys/dev/hyperv/netvsc

2016-08-17 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 18 05:52:03 2016 New Revision: 304330 URL: https://svnweb.freebsd.org/changeset/base/304330 Log: hyperv/hn: Get rid of the useless netvsc_packet MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7544

svn commit: r304329 - head/sys/dev/hyperv/netvsc

2016-08-17 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 18 05:44:58 2016 New Revision: 304329 URL: https://svnweb.freebsd.org/changeset/base/304329 Log: hyperv/hn: Constify RNDIS messages on RX path. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/D7542

svn commit: r304327 - head/sys/dev/hyperv/netvsc

2016-08-17 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 18 05:33:58 2016 New Revision: 304327 URL: https://svnweb.freebsd.org/changeset/base/304327 Log: hyperv/hn: Pass RX packet info to netvsc_recv. This paves to nuke netvsc_packet, which does not serves much purpose now. MFC after:1 week Sponsored by:

svn commit: r304326 - head/sys/dev/usb/net

2016-08-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Aug 18 05:07:02 2016 New Revision: 304326 URL: https://svnweb.freebsd.org/changeset/base/304326 Log: Switch to TX header format rather than directly manipulating header structures. This simplifies mbuf copy operation to USB buffers as well as improving

svn commit: r304325 - head/sys/dev/usb/net

2016-08-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Aug 18 04:25:17 2016 New Revision: 304325 URL: https://svnweb.freebsd.org/changeset/base/304325 Log: Rename cryptic RX filter constants with more readable ones. No functional change. Modified: head/sys/dev/usb/net/if_axge.c head/sys/dev/usb/net/if_axgereg.h

svn commit: r304324 - head/sys/dev/usb/net

2016-08-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Aug 18 02:14:39 2016 New Revision: 304324 URL: https://svnweb.freebsd.org/changeset/base/304324 Log: Don't explicitly call MIIBUS_STATCHG() method handler. Link state change should be handled by PHY driver. Some broken PHY H/Ws may need that workaround but it

svn commit: r304323 - head/sys/dev/usb/net

2016-08-17 Thread Pyun YongHyeon
Author: yongari Date: Thu Aug 18 01:48:58 2016 New Revision: 304323 URL: https://svnweb.freebsd.org/changeset/base/304323 Log: Pass PHY location information and remove PHY access hack. Modified: head/sys/dev/usb/net/if_axge.c head/sys/dev/usb/net/if_axgereg.h Modified:

svn commit: r304322 - head/sys/net80211

2016-08-17 Thread Adrian Chadd
Author: adrian Date: Thu Aug 18 01:25:12 2016 New Revision: 304322 URL: https://svnweb.freebsd.org/changeset/base/304322 Log: [net80211] correctly lock the ifp before accessing the lladdr. Tested by: dhw Modified: head/sys/net80211/ieee80211_ioctl.c Modified:

svn commit: r304321 - in head/sys: boot/efi/boot1 boot/efi/loader boot/i386/boot2 boot/i386/gptboot boot/i386/gptzfsboot boot/i386/zfsboot boot/userboot/ficl boot/userboot/userboot boot/userboot/zf...

2016-08-17 Thread Toomas Soome
Author: tsoome Date: Thu Aug 18 00:37:07 2016 New Revision: 304321 URL: https://svnweb.freebsd.org/changeset/base/304321 Log: Add SHA512, skein, large blocks support for loader zfs. Updated sha512 from illumos. Using skein from freebsd crypto tree. Since loader itself is using 64MB

svn commit: r304320 - head/secure/lib/libcrypto

2016-08-17 Thread Jung-uk Kim
Author: jkim Date: Wed Aug 17 22:13:39 2016 New Revision: 304320 URL: https://svnweb.freebsd.org/changeset/base/304320 Log: Disable assembly sources when compiler/assembler cannot compile certain instructions. For example, GCC 4.2.1 + binutils 2.17.50 does not support AVX instructions.

svn commit: r304319 - in head: contrib/llvm/lib/Target/X86 contrib/llvm/tools/clang/lib/Basic lib/clang

2016-08-17 Thread Dimitry Andric
Author: dim Date: Wed Aug 17 21:57:11 2016 New Revision: 304319 URL: https://svnweb.freebsd.org/changeset/base/304319 Log: Pull in r262772 from upstream clang trunk (by Simon Pilgrim): [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE btver1 is a SSSE3/SSE4a only CPU - it

svn commit: r304318 - in head/sys/arm/allwinner: . clk

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 21:44:02 2016 New Revision: 304318 URL: https://svnweb.freebsd.org/changeset/base/304318 Log: Rename allwinner_machdep.{c.h} to aw_machdep.{c.h} as all allwinner source files are name aw_* Added: head/sys/arm/allwinner/aw_machdep.c - copied, changed from

svn commit: r304317 - head/sys/boot/efi/boot1

2016-08-17 Thread Toomas Soome
Author: tsoome Date: Wed Aug 17 21:29:57 2016 New Revision: 304317 URL: https://svnweb.freebsd.org/changeset/base/304317 Log: boot1.efi Free() should check for NULL to provide consistent behavior with libstand Free(). Reviewed by: imp Approved by: imp (mentor) Differential

svn commit: r304316 - in head/sys/arm: allwinner allwinner/a10 conf

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 20:32:08 2016 New Revision: 304316 URL: https://svnweb.freebsd.org/changeset/base/304316 Log: Rename kernel config A10 into ALLWINNER_UP as it is intend to work with all Allwinner Uniprocessor SoC. As of now it works with A10 and A13 (and possibly R8 as it is

svn commit: r304315 - head/share/man/man4

2016-08-17 Thread Jilles Tjoelker
Author: jilles Date: Wed Aug 17 20:27:04 2016 New Revision: 304315 URL: https://svnweb.freebsd.org/changeset/base/304315 Log: rights(4): CAP_FSYNC also permits fdatasync(2). Modified: head/share/man/man4/rights.4 Modified: head/share/man/man4/rights.4

svn commit: r304314 - in head/sys/mips: broadcom conf

2016-08-17 Thread Landon J. Fuller
Author: landonf Date: Wed Aug 17 20:24:14 2016 New Revision: 304314 URL: https://svnweb.freebsd.org/changeset/base/304314 Log: mips/broadcom: Implement CFE-based EARLY_PRINTF support. This adds support for EARLY_PRINTF via the CFE console; the aim is to provide a fix for the otherwise

svn commit: r304313 - head/sys/net

2016-08-17 Thread Andrey V. Elsukov
Author: ae Date: Wed Aug 17 20:21:33 2016 New Revision: 304313 URL: https://svnweb.freebsd.org/changeset/base/304313 Log: Teach netisr_get_cpuid() to limit a given value to supported by netisr. Use netisr_get_cpuid() in netisr_select_cpuid() to limit cpuid value returned by protocol to be

Re: svn commit: r304176 - in head: include lib/libc/sys sys/compat/freebsd32 sys/kern

2016-08-17 Thread Jilles Tjoelker
On Mon, Aug 15, 2016 at 07:08:51PM +, Konstantin Belousov wrote: > Author: kib > Date: Mon Aug 15 19:08:51 2016 > New Revision: 304176 > URL: https://svnweb.freebsd.org/changeset/base/304176 > Log: > Add an implementation of fdatasync(2). > The syscall is a trivial wrapper around new

svn commit: r304297 - head/sys/modules/dtb/allwinner

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 17:59:09 2016 New Revision: 304297 URL: https://svnweb.freebsd.org/changeset/base/304297 Log: Add sun5i-a13-olinuxino to the build. Modified: head/sys/modules/dtb/allwinner/Makefile Modified: head/sys/modules/dtb/allwinner/Makefile

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Andriy Gapon
On 17/08/2016 19:36, Nathan Whitehorn wrote: > OK, so then what is the solution here? We have a number of tools that need to > know this information: gpart, sade, bsdinstall, zfs, graid, etc. If we want to > have a consistent set of defaults -- for example, to use 4K across the board, > which I

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 10:56, Andriy Gapon wrote: On 17/08/2016 19:36, Nathan Whitehorn wrote: OK, so then what is the solution here? We have a number of tools that need to know this information: gpart, sade, bsdinstall, zfs, graid, etc. If we want to have a consistent set of defaults -- for example, to

svn commit: r304295 - head/usr.bin/netstat

2016-08-17 Thread Michael Tuexen
Author: tuexen Date: Wed Aug 17 16:56:20 2016 New Revision: 304295 URL: https://svnweb.freebsd.org/changeset/base/304295 Log: Fix the output for scope statistics. MFC after: 3 days Modified: head/usr.bin/netstat/inet6.c Modified: head/usr.bin/netstat/inet6.c

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 08:57, Warner Losh wrote: On Wed, Aug 17, 2016 at 9:26 AM, Nathan Whitehorn wrote: Not true at all. All modern disks report their physical sector size, as distinct from the logical one, in their ATA IDENTIFY data and ata_da.c uses that. You are correct

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 08:45, Dag-Erling Smørgrav wrote: Nathan Whitehorn writes: Dag-Erling Smørgrav writes: I have mentioned several examples to you, and even told you how to confirm, by inspecting the source code, that most drivers do *not* set the stripe size.

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Warner Losh
On Wed, Aug 17, 2016 at 10:04 AM, Warner Losh wrote: > On Wed, Aug 17, 2016 at 9:45 AM, Dag-Erling Smørgrav wrote: >> Nathan Whitehorn writes: >>> Dag-Erling Smørgrav writes: >>> > I have mentioned several examples to you, and

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Warner Losh
On Wed, Aug 17, 2016 at 9:45 AM, Dag-Erling Smørgrav wrote: > Nathan Whitehorn writes: >> Dag-Erling Smørgrav writes: >> > I have mentioned several examples to you, and even told you how to >> > confirm, by inspecting the source code, that most

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Warner Losh
On Wed, Aug 17, 2016 at 9:26 AM, Nathan Whitehorn wrote: > Not true at all. All modern disks report their physical sector size, as > distinct from the logical one, in their ATA IDENTIFY data and ata_da.c uses > that. You are correct that there are two fields in the ATA

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Warner Losh
On Wed, Aug 17, 2016 at 8:36 AM, Nathan Whitehorn wrote: > As for grepping, the CAM disk drivers are all in sys/cam, not sys/dev, as > I'm sure you know, and you will find all the code that handles this there. There's at least a dozen disk drivers that aren't CAM. The

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Dag-Erling Smørgrav
Nathan Whitehorn writes: > Dag-Erling Smørgrav writes: > > I have mentioned several examples to you, and even told you how to > > confirm, by inspecting the source code, that most drivers do *not* > > set the stripe size. > Most drivers? Yes, sure. Most

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Dag-Erling Smørgrav
Hans Petter Selasky writes: > My intention is not to install FreeBSD on a 3K disk. My question is > pure mathematical, if the bsdinstall will segfault, division by zero > or anything like that, if one should try to install FreeBSD on a 3K > disk, because you round up the size of

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 08:03, Dag-Erling Smørgrav wrote: Nathan Whitehorn writes: Dag-Erling Smørgrav writes: [...] And you keep refusing to address the fact that most drivers don't report a stripe size, except by repeating your claim that they do, with no

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Hans Petter Selasky
On 08/17/16 17:05, Dag-Erling Smørgrav wrote: Hans Petter Selasky writes: Not sure if it is an issue, but what will happen if a magic disk has a size less than 4K and uses a block size of 512bytes and the disk alignment gets rounded up to 4K. Will any of logic in this patch

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Slawa Olhovchenkov
On Wed, Aug 17, 2016 at 05:00:16PM +0200, Hans Petter Selasky wrote: > On 08/17/16 16:49, Slawa Olhovchenkov wrote: > > On Wed, Aug 17, 2016 at 07:36:00AM -0700, Nathan Whitehorn wrote: > > > > > In long term, prefered aligment is forsing 4k (or may be more): > > install system on 512b [mirror]

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Dag-Erling Smørgrav
Hans Petter Selasky writes: > Not sure if it is an issue, but what will happen if a magic disk has a > size less than 4K and uses a block size of 512bytes and the disk > alignment gets rounded up to 4K. Will any of logic in this patch fail > or hang? What is a magic disk, and

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 07:49, Slawa Olhovchenkov wrote: On Wed, Aug 17, 2016 at 07:36:00AM -0700, Nathan Whitehorn wrote: Your contention that the installer does not make policy decisions is equally spurious. The installer makes many policy decisions, including the disk layout, the size of the swap

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Dag-Erling Smørgrav
Nathan Whitehorn writes: > Dag-Erling Smørgrav writes: > > [...] And you keep refusing to address the fact that most drivers > > don't report a stripe size, except by repeating your claim that they > > do, with no evidence to back it up. Feel free to 'grep

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Hans Petter Selasky
On 08/17/16 16:49, Slawa Olhovchenkov wrote: On Wed, Aug 17, 2016 at 07:36:00AM -0700, Nathan Whitehorn wrote: In long term, prefered aligment is forsing 4k (or may be more): install system on 512b [mirror] disk aligment now may be need required replace disk to 4k aligment. For more

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Slawa Olhovchenkov
On Wed, Aug 17, 2016 at 07:36:00AM -0700, Nathan Whitehorn wrote: > > Your contention that the installer does not make policy decisions is > > equally spurious. The installer makes many policy decisions, including > > the disk layout, the size of the swap partition, the name of the pool, > > the

svn commit: r304292 - head/usr.bin/netstat

2016-08-17 Thread Michael Tuexen
Author: tuexen Date: Wed Aug 17 14:44:47 2016 New Revision: 304292 URL: https://svnweb.freebsd.org/changeset/base/304292 Log: Use names for SCTP and UDPLite when reporting the input histogram. MFC after: 3 days Modified: head/usr.bin/netstat/inet6.c Modified:

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Nathan Whitehorn
On 08/17/16 03:07, Dag-Erling Smørgrav wrote: Nathan Whitehorn writes: As a note for people who weren't paying attention to the bug, we need to fix this in a better way outside of the constraints of getting 11.0 out the door. The system (gpart, the installer, ZFS,

svn commit: r304291 - head/sys/boot/fdt/dts/arm

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 13:19:28 2016 New Revision: 304291 URL: https://svnweb.freebsd.org/changeset/base/304291 Log: Remove pullup settings for MMC pins, this is not needed since r304290 MFC after:1 week Modified: head/sys/boot/fdt/dts/arm/bananapi.dts Modified:

svn commit: r304290 - head/sys/arm/allwinner

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 13:09:31 2016 New Revision: 304290 URL: https://svnweb.freebsd.org/changeset/base/304290 Log: Only set pud settings if this is a pullup or pulldown configuration. This removes the need to set the MMC pins with pullups in our DTS. Thanks to jmcneill@ for

Re: svn commit: r304180 - head/sys/ufs/ffs

2016-08-17 Thread Bruce Evans
On Wed, 17 Aug 2016, Konstantin Belousov wrote: On Tue, Aug 16, 2016 at 11:53:55PM +0200, Jilles Tjoelker wrote: Hmm, some people interpret POSIX differently than I do, but I think it is clear that XBD 3.384 Synchronized I/O Data Integrity Completion requires the indirect blocks to be written

svn commit: r304289 - head/sys/arm/allwinner

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 10:20:36 2016 New Revision: 304289 URL: https://svnweb.freebsd.org/changeset/base/304289 Log: a10_gpio_get_function now returns the whole function not only GPIO_INPUT/GPIO_OUTPUT. a10_gpio_get_pud now returns the whole pud not only PULLDOWN/PULLUP. Add

svn commit: r304288 - in head: lib/libc/sys sys/kern

2016-08-17 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 17 10:20:05 2016 New Revision: 304288 URL: https://svnweb.freebsd.org/changeset/base/304288 Log: Garbage collect _umtx_lock(2)/_umtx_unlock(2) references removed in r263318. This has no real impact on the resulting libc.so file. MFC after:3 days

svn commit: r304287 - head/lib/libc/sys

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 10:16:42 2016 New Revision: 304287 URL: https://svnweb.freebsd.org/changeset/base/304287 Log: Add fdatasync(2) man page, combined with fsync(2). Reviewed by: emaste, rpokala, wblock Sponsored by: The FreeBSD Foundation MFC after:2 weeks Differential

Re: svn commit: r304142 - head/usr.sbin/bsdinstall/partedit

2016-08-17 Thread Dag-Erling Smørgrav
Nathan Whitehorn writes: > As a note for people who weren't paying attention to the bug, we need > to fix this in a better way outside of the constraints of getting 11.0 > out the door. The system (gpart, the installer, ZFS, etc.) uses the > reported GEOM stripesize for

svn commit: r304285 - in head: lib/libc lib/libc/aarch64/sys lib/libc/amd64/sys lib/libc/arm/sys lib/libc/i386/sys lib/libc/sys lib/libc/x86 lib/libc/x86/sys sys/arm/arm sys/arm/include sys/arm64/a...

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 09:52:09 2016 New Revision: 304285 URL: https://svnweb.freebsd.org/changeset/base/304285 Log: Implement userspace gettimeofday(2) with HPET timecounter. Right now, userspace (fast) gettimeofday(2) on x86 only works for RDTSC. For older machines, like Core2,

svn commit: r304279 - head/sys/dev/acpica

2016-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 09:20:04 2016 New Revision: 304279 URL: https://svnweb.freebsd.org/changeset/base/304279 Log: By default, allow all to read the HPET registers pages. At the same time, by, by default disallow writes to the mmaped HPET pages. Intent is to allow userspace to

svn commit: r304273 - head/sys/dev/hyperv/utilities

2016-08-17 Thread Sepherosa Ziehau
Author: sephe Date: Wed Aug 17 08:38:49 2016 New Revision: 304273 URL: https://svnweb.freebsd.org/changeset/base/304273 Log: hyperv/util: Factor out helper for IC device_probe DEVMETHOD MFC after:1 week Sponsored by: Microsoft Differential Revision:

Re: svn commit: r304221 - head/sys/boot/efi/boot1

2016-08-17 Thread Emmanuel Vadot
On Tue, 16 Aug 2016 12:16:30 -0600 Warner Losh wrote: > On Tue, Aug 16, 2016 at 8:57 AM, Ed Schouten wrote: > > Hi Emmanuel, > > > > 2016-08-16 16:23 GMT+02:00 Emmanuel Vadot : > >> Author: manu > >> Date: Tue Aug 16 14:23:35 2016 > >> New

svn commit: r304271 - head/sys/boot/efi/boot1

2016-08-17 Thread Emmanuel Vadot
Author: manu Date: Wed Aug 17 08:29:30 2016 New Revision: 304271 URL: https://svnweb.freebsd.org/changeset/base/304271 Log: Correctly print and cast u_int64_t and off_t. Reported by: ed, imp MFC after:1 week Modified: head/sys/boot/efi/boot1/ufs_module.c

svn commit: r304270 - head/sys/dev/hyperv/utilities

2016-08-17 Thread Sepherosa Ziehau
Author: sephe Date: Wed Aug 17 08:26:08 2016 New Revision: 304270 URL: https://svnweb.freebsd.org/changeset/base/304270 Log: hyperv/util: Don't reference hn_softc in KVP hn_softc is private data struct. MFC after:1 week Sponsored by: Microsoft Differential Revision:

Re: svn commit: r304180 - head/sys/ufs/ffs

2016-08-17 Thread Konstantin Belousov
On Tue, Aug 16, 2016 at 11:53:55PM +0200, Jilles Tjoelker wrote: > Hmm, some people interpret POSIX differently than I do, but I think it > is clear that XBD 3.384 Synchronized I/O Data Integrity Completion > requires the indirect blocks to be written (because "all file system > information

svn commit: r304268 - head/lib/libc/gen

2016-08-17 Thread Kevin Lo
Author: kevlo Date: Wed Aug 17 07:25:50 2016 New Revision: 304268 URL: https://svnweb.freebsd.org/changeset/base/304268 Log: - Add the 'restrict' type qualifier to match function prototype. - Use .Lb libc rather than libpthread. Reviewed by: delphij Modified: