svn commit: r328110 - head/sys/kern

2018-01-17 Thread Wojciech Macek
Author: wma Date: Thu Jan 18 07:38:54 2018 New Revision: 328110 URL: https://svnweb.freebsd.org/changeset/base/328110 Log: KDB: restart only CPUs stopped by KDB There is a case when not all CPUs went online. In that situation, restart only APs which were operational before entering KDB.

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

2018-01-17 Thread Alexey Dokuchaev
On Sat, Jan 13, 2018 at 06:53:47AM +, Alexey Dokuchaev wrote: > On Fri, Jan 12, 2018 at 08:25:57PM +, Ed Maste wrote: > > New Revision: 327890 > > URL: https://svnweb.freebsd.org/changeset/base/327890 > > > > Log: > > bsdinstall: disable SUJ by default > > > > SUJ + cg checksums

svn commit: r328111 - head/sys/powerpc/powerpc

2018-01-17 Thread Wojciech Macek
Author: wma Date: Thu Jan 18 07:41:04 2018 New Revision: 328111 URL: https://svnweb.freebsd.org/changeset/base/328111 Log: PPC: machdep, zero BSS always but BookE Zero BSS always. The only case when this operation is ommitted is when booting on BookE. Created by:Wojciech

Re: svn commit: r327675 - head/sys/netpfil/pf

2018-01-17 Thread Kristof Provost
On 18 Jan 2018, at 0:37, Gleb Smirnoff wrote: On Sun, Jan 07, 2018 at 04:44:23PM +0200, Konstantin Belousov wrote: K> On Sun, Jan 07, 2018 at 01:35:15PM +, Kristof Provost wrote: K> > Author: kp K> > Date: Sun Jan 7 13:35:15 2018 K> > New Revision: 327675 K> > URL:

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

2018-01-17 Thread Wojciech Macek
Added AHCI back. The 821LC board (Power8) is equipped with Chelsio (25G) and Intel (1G) adapters by default. Currently, the cxgbe is the only interface working on the PPC64. Intel, after moving to iflib, has troubles with endianness and doesn't work. Also, PowerNV does not support loader thus we

svn commit: r328109 - head/sys/powerpc/conf

2018-01-17 Thread Wojciech Macek
Author: wma Date: Thu Jan 18 06:28:21 2018 New Revision: 328109 URL: https://svnweb.freebsd.org/changeset/base/328109 Log: PPC64: add AHCI back to GENERIC64 > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected

svn commit: r328108 - in head: sbin/geom/class/nop sys/geom/nop tests/sys/geom/class/nop

2018-01-17 Thread Alan Somers
Author: asomers Date: Thu Jan 18 05:57:10 2018 New Revision: 328108 URL: https://svnweb.freebsd.org/changeset/base/328108 Log: gnop(8): add the ability to set a nop provider's physical path While I'm here, expand the existing tests a bit. MFC after:3 weeks Differential Revision:

svn commit: r328107 - in head: etc/mtree share/man/man7 stand/arm/loader stand/forth stand/mips/uboot

2018-01-17 Thread Kyle Evans
Author: kevans Date: Thu Jan 18 04:58:54 2018 New Revision: 328107 URL: https://svnweb.freebsd.org/changeset/base/328107 Log: stand: Add /boot/overlays to allow separation of overlays from base FDT This matches directory structure used commonly in Linux-land, and it's cleaner than mixing

svn commit: r328106 - in head: stand/fdt sys/contrib/libfdt

2018-01-17 Thread Kyle Evans
Author: kevans Date: Thu Jan 18 04:39:09 2018 New Revision: 328106 URL: https://svnweb.freebsd.org/changeset/base/328106 Log: libfdt: Update to 1.4.6, switch to using libfdt for overlay support libfdt highlights since 1.4.3: - fdt_property_placeholder added to create a property

Re: svn commit: r328083 - in head/sys: amd64/amd64 amd64/ia32 amd64/include amd64/vmm amd64/vmm/intel dev/hyperv/vmbus dev/hyperv/vmbus/amd64 dev/hyperv/vmbus/i386 i386/i386 x86/include x86/isa x86/x8

2018-01-17 Thread Conrad Meyer
On Wed, Jan 17, 2018 at 3:44 AM, Konstantin Belousov wrote: > Author: kib > Date: Wed Jan 17 11:44:21 2018 > New Revision: 328083 > URL: https://svnweb.freebsd.org/changeset/base/328083 > > Log: > PTI for amd64. This seems to break the xtoolchain GCC build:

svn commit: r328105 - stable/11

2018-01-17 Thread Kyle Evans
Author: kevans Date: Thu Jan 18 03:38:09 2018 New Revision: 328105 URL: https://svnweb.freebsd.org/changeset/base/328105 Log: Record-only merges of recent loader fixes Loader fixes were recently effectively MFC'd in r327942, r327944, r327945, and r327957. These were all direct commits to

Re: svn commit: r327675 - head/sys/netpfil/pf

2018-01-17 Thread Pedro Giffuni
> On Jan 17, 2018, at 18:37, Gleb Smirnoff wrote: > > On Sun, Jan 07, 2018 at 04:44:23PM +0200, Konstantin Belousov wrote: > K> On Sun, Jan 07, 2018 at 01:35:15PM +, Kristof Provost wrote: > K> > Author: kp > K> > Date: Sun Jan 7 13:35:15 2018 > K> > New Revision:

svn commit: r328104 - head/usr.sbin/kldxref

2018-01-17 Thread John Baldwin
Author: jhb Date: Thu Jan 18 00:24:05 2018 New Revision: 328104 URL: https://svnweb.freebsd.org/changeset/base/328104 Log: Adjust format string to fix build. Modified: head/usr.sbin/kldxref/ef_powerpc.c Modified: head/usr.sbin/kldxref/ef_powerpc.c

svn commit: r328103 - head/usr.sbin/kldxref

2018-01-17 Thread John Baldwin
Author: jhb Date: Thu Jan 18 00:23:11 2018 New Revision: 328103 URL: https://svnweb.freebsd.org/changeset/base/328103 Log: Tidy some whitespace. Modified: head/usr.sbin/kldxref/ef_powerpc.c Modified: head/usr.sbin/kldxref/ef_powerpc.c

Re: svn commit: r328101 - in head: stand/common sys/kern

2018-01-17 Thread Ed Maste
On 17 January 2018 at 17:52, John Baldwin wrote: > Author: jhb > Date: Wed Jan 17 22:51:59 2018 > New Revision: 328101 > URL: https://svnweb.freebsd.org/changeset/base/328101 > > Log: > Require the SHF_ALLOC flag for program sections from kernel object modules. > > The lld

Re: svn commit: r327423 - in head/sys: kern sys

2018-01-17 Thread Colin Percival
On 01/17/18 15:09, Gleb Smirnoff wrote: > On Sun, Dec 31, 2017 at 09:21:01AM +, Colin Percival wrote: > C> Code for recording timestamps of events, especially function > entries/exits. > C> This is a very primitive system, intended for use in measuring > performance > C> during the

Re: svn commit: r327675 - head/sys/netpfil/pf

2018-01-17 Thread Gleb Smirnoff
On Sun, Jan 07, 2018 at 04:44:23PM +0200, Konstantin Belousov wrote: K> On Sun, Jan 07, 2018 at 01:35:15PM +, Kristof Provost wrote: K> > Author: kp K> > Date: Sun Jan 7 13:35:15 2018 K> > New Revision: 327675 K> > URL: https://svnweb.freebsd.org/changeset/base/327675 K> > K> > Log: K> >

Re: svn commit: r327447 - head/sys/sys

2018-01-17 Thread Gleb Smirnoff
On Tue, Jan 02, 2018 at 09:56:09AM -0800, John Baldwin wrote: J> > this is a recurring issue. Program that want to look into the J> > internals of files such as mount.h J> > and define _KERNEL to allow themselves to do so. It eventualy leads J> > to all sorts of confusion and pollution. J> >

svn commit: r328102 - in head: sys/amd64/include sys/amd64/vmm/amd sys/amd64/vmm/intel usr.sbin/bhyvectl

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 23:11:25 2018 New Revision: 328102 URL: https://svnweb.freebsd.org/changeset/base/328102 Log: Save and restore guest debug registers. Currently most of the debug registers are not saved and restored during VM transitions allowing guest and host debug register

Re: svn commit: r327423 - in head/sys: kern sys

2018-01-17 Thread Gleb Smirnoff
Hi Colin, On Sun, Dec 31, 2017 at 09:21:01AM +, Colin Percival wrote: C> Author: cperciva C> Date: Sun Dec 31 09:21:01 2017 C> New Revision: 327423 C> URL: https://svnweb.freebsd.org/changeset/base/327423 C> C> Log: C> Code for recording timestamps of events, especially function

Re: svn commit: r327354 - head/sys/vm

2018-01-17 Thread Gleb Smirnoff
On Fri, Dec 29, 2017 at 07:05:07PM +, Konstantin Belousov wrote: K> Author: kib K> Date: Fri Dec 29 19:05:07 2017 K> New Revision: 327354 K> URL: https://svnweb.freebsd.org/changeset/base/327354 K> K> Log: K> Style. K> K> Reviewed by: alc K> Sponsored by: The FreeBSD

svn commit: r328101 - in head: stand/common sys/kern

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 22:51:59 2018 New Revision: 328101 URL: https://svnweb.freebsd.org/changeset/base/328101 Log: Require the SHF_ALLOC flag for program sections from kernel object modules. ELF object files can contain program sections which are not supposed to be loaded into

svn commit: r328100 - head/bin/ls

2018-01-17 Thread Conrad Meyer
Author: cem Date: Wed Jan 17 22:47:34 2018 New Revision: 328100 URL: https://svnweb.freebsd.org/changeset/base/328100 Log: Convert ls(1) to not use libxo(3) libxo imposes a large burden on system utilities. In the case of ls, that burden is difficult to justify -- any language that can

svn commit: r328099 - in head/sys: fs/fdescfs fs/nfs fs/nfsserver fs/smbfs fs/tmpfs i386/ibcs2 kern sys

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 22:36:58 2018 New Revision: 328099 URL: https://svnweb.freebsd.org/changeset/base/328099 Log: Use long for the last argument to VOP_PATHCONF rather than a register_t. pathconf(2) and fpathconf(2) both return a long. The kern_[f]pathconf() functions now

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

2018-01-17 Thread Landon J. Fuller
Author: landonf Date: Wed Jan 17 22:33:19 2018 New Revision: 328098 URL: https://svnweb.freebsd.org/changeset/base/328098 Log: bwn(4): Enable, by default, the opt-in support for bhnd(4) introduced in r326454. bwn(4)/bhnd(4) has been tested with most chipsets currently supported by

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

2018-01-17 Thread Mark Johnston
Author: markj Date: Wed Jan 17 21:52:12 2018 New Revision: 328096 URL: https://svnweb.freebsd.org/changeset/base/328096 Log: Annotate a couple of changes from r328083. Reviewed by: kib X-MFC with: r328083 Modified: head/sys/amd64/amd64/exception.S head/sys/amd64/amd64/machdep.c

svn commit: r328095 - head/usr.sbin/kldxref

2018-01-17 Thread Ed Maste
Author: emaste Date: Wed Jan 17 20:43:30 2018 New Revision: 328095 URL: https://svnweb.freebsd.org/changeset/base/328095 Log: kldxref: additional sytle(9) cleanup Reported by: kib (via comments in D13957) Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/kldxref/ef.c

svn commit: r328094 - head/usr.sbin/kldxref

2018-01-17 Thread Ed Maste
Author: emaste Date: Wed Jan 17 19:59:43 2018 New Revision: 328094 URL: https://svnweb.freebsd.org/changeset/base/328094 Log: kldxref: improve style(9) Address style issues including some previously raised in D13923. - Use designated initializers for structs - Always use bracketed

svn commit: r328093 - in head/sys/ufs: ffs ufs

2018-01-17 Thread Pedro F. Giffuni
Author: pfg Date: Wed Jan 17 18:18:33 2018 New Revision: 328093 URL: https://svnweb.freebsd.org/changeset/base/328093 Log: ufs: use mallocarray(9). Basic use of mallocarray to prevent overflows: static analyzers are also likely to perform additional checks. Since mallocarray expects

svn commit: r328092 - in head: lib/libufs sbin/fsck_ffs

2018-01-17 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 17 17:58:24 2018 New Revision: 328092 URL: https://svnweb.freebsd.org/changeset/base/328092 Log: Correct fsck journal-recovery code to update a cylinder-group check-hash after making changes to the cylinder group. The problem was that the journal-recovery code

svn commit: r328091 - head/sys/crypto/via

2018-01-17 Thread Dimitry Andric
Author: dim Date: Wed Jan 17 17:14:19 2018 New Revision: 328091 URL: https://svnweb.freebsd.org/changeset/base/328091 Log: Revert r327340, as the workaround for rep prefixes followed by .byte directives is no longer needed after r328090. Modified: head/sys/crypto/via/padlock_cipher.c

svn commit: r328090 - in head: contrib/llvm/lib/Target/X86/AsmParser lib/clang

2018-01-17 Thread Dimitry Andric
Author: dim Date: Wed Jan 17 17:11:55 2018 New Revision: 328090 URL: https://svnweb.freebsd.org/changeset/base/328090 Log: Pull in r322623 from upstream llvm trunk (by Andrew V. Tischenko): Allow usage of X86-prefixes as separate instrs. Differential Revision:

svn commit: r328089 - head/sys/dev/nvme

2018-01-17 Thread Warner Losh
Author: imp Date: Wed Jan 17 17:08:26 2018 New Revision: 328089 URL: https://svnweb.freebsd.org/changeset/base/328089 Log: Move setting of CAM_SIM_QUEUED to before we actually submit it to the hardware. Setting it after is racy, and we can lose the race on a heavily loaded system.

svn commit: r328088 - head/usr.sbin/pmcstat

2018-01-17 Thread Fabien Thomas
Author: fabient Date: Wed Jan 17 16:55:35 2018 New Revision: 328088 URL: https://svnweb.freebsd.org/changeset/base/328088 Log: Only call flush in pipe mode. It fixes a crash with a socket in top mode. Ex: # pmcstat -R 127.0.0.1:8080 -T -w1 then # pmcstat -n1 -Sclock.prof

svn commit: r328087 - in head: lib/libpmc sys/dev/hwpmc

2018-01-17 Thread Fabien Thomas
Author: fabient Date: Wed Jan 17 16:41:22 2018 New Revision: 328087 URL: https://svnweb.freebsd.org/changeset/base/328087 Log: Fix pmcstat exit from kernel introduced by r325275. pmcstat request for close will generate a close event. This event will be in turn received by pmcstat to close

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

2018-01-17 Thread Navdeep Parhar
On Wed, Jan 17, 2018 at 09:33:17AM +, Wojciech Macek wrote: > Author: wma > Date: Wed Jan 17 09:33:16 2018 > New Revision: 328078 > URL: https://svnweb.freebsd.org/changeset/base/328078 > > Log: > PPC64: add CXGBE and remove AHCI from GENERIC64 > > Add CXGBE driver which is required

svn commit: r328086 - stable/11/sys/geom/mirror

2018-01-17 Thread Mark Johnston
Author: markj Date: Wed Jan 17 15:12:52 2018 New Revision: 328086 URL: https://svnweb.freebsd.org/changeset/base/328086 Log: MFC r327768: Clarify the use of the gmirror flag mask constants. Modified: stable/11/sys/geom/mirror/g_mirror.h Directory Properties: stable/11/ (props changed)

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

2018-01-17 Thread Nathan Whitehorn
Please revert the AHCI removal. It works just fine on big-endian hardware and has for a long time -- I think the problem may be limited to you specific hardware. -Nathan On 01/17/18 01:33, Wojciech Macek wrote: Author: wma Date: Wed Jan 17 09:33:16 2018 New Revision: 328078 URL:

svn commit: r328085 - head/share/misc

2018-01-17 Thread Baptiste Daroussin
Author: bapt Date: Wed Jan 17 13:25:41 2018 New Revision: 328085 URL: https://svnweb.freebsd.org/changeset/base/328085 Log: Update pciids to 2018.01.14 MFC after:3 days Modified: head/share/misc/pci_vendors Modified: head/share/misc/pci_vendors

Re: svn commit: r328075 - head/sbin/fsck_ffs

2018-01-17 Thread Dimitry Andric
On 17 Jan 2018, at 09:24, O. Hartmann wrote: > > On Wed, 17 Jan 2018 06:31:21 + (UTC) > Kirk McKusick wrote: > >> Author: mckusick >> Date: Wed Jan 17 06:31:21 2018 >> New Revision: 328075 >> URL:

svn commit: r328084 - head/sbin/fsdb

2018-01-17 Thread Dimitry Andric
Author: dim Date: Wed Jan 17 13:19:37 2018 New Revision: 328084 URL: https://svnweb.freebsd.org/changeset/base/328084 Log: Fix buildworld after r328075, by also renaming cgget to cglookup in fsdb. Reported by: ohartm...@walstatt.org,da...@catwhisker.org Pointy hat to:mckusick

svn commit: r328083 - in head/sys: amd64/amd64 amd64/ia32 amd64/include amd64/vmm amd64/vmm/intel dev/hyperv/vmbus dev/hyperv/vmbus/amd64 dev/hyperv/vmbus/i386 i386/i386 x86/include x86/isa x86/x86

2018-01-17 Thread Konstantin Belousov
Author: kib Date: Wed Jan 17 11:44:21 2018 New Revision: 328083 URL: https://svnweb.freebsd.org/changeset/base/328083 Log: PTI for amd64. The implementation of the Kernel Page Table Isolation (KPTI) for amd64, first version. It provides a workaround for the 'meltdown' vulnerability.

svn commit: r328082 - in head/sys/amd64: amd64 include

2018-01-17 Thread Konstantin Belousov
Author: kib Date: Wed Jan 17 11:21:03 2018 New Revision: 328082 URL: https://svnweb.freebsd.org/changeset/base/328082 Log: Amd64 user_ldt_deref() is not used outside sys_machdep.c. Mark it as static. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r328081 - head/usr.bin/truss

2018-01-17 Thread Michael Tuexen
Author: tuexen Date: Wed Jan 17 10:30:49 2018 New Revision: 328081 URL: https://svnweb.freebsd.org/changeset/base/328081 Log: Add missing assignment to make sure non-first cmsgs are handled as such. Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c

svn commit: r328080 - head/sys/powerpc/powerpc

2018-01-17 Thread Wojciech Macek
Author: wma Date: Wed Jan 17 09:45:18 2018 New Revision: 328080 URL: https://svnweb.freebsd.org/changeset/base/328080 Log: PPC64: implement missing busdma ops Add missing little-endian 64-bit read and write. Since there is no direct ASM opcode for this, perform byte swap if necessary.

Re: svn commit: r327950 - in head/sys/powerpc: aim include powerpc ps3

2018-01-17 Thread Konstantin Belousov
On Tue, Jan 16, 2018 at 09:30:29PM -0800, Nathan Whitehorn wrote: > > > On 01/16/18 11:32, Marius Strobl wrote: > > On Mon, Jan 15, 2018 at 03:20:49PM -0800, Nathan Whitehorn wrote: > >> > >> On 01/15/18 09:53, Konstantin Belousov wrote: > >>> On Mon, Jan 15, 2018 at 09:32:56AM -0800, Nathan

svn commit: r328079 - head/sys/powerpc/powerpc

2018-01-17 Thread Wojciech Macek
Author: wma Date: Wed Jan 17 09:36:48 2018 New Revision: 328079 URL: https://svnweb.freebsd.org/changeset/base/328079 Log: PPC64: fix copyinout ranges Use current userspace address for segment mapping. Previously, there was a bug which made the funciton constantly using the userspace

svn commit: r328078 - head/sys/powerpc/conf

2018-01-17 Thread Wojciech Macek
Author: wma Date: Wed Jan 17 09:33:16 2018 New Revision: 328078 URL: https://svnweb.freebsd.org/changeset/base/328078 Log: PPC64: add CXGBE and remove AHCI from GENERIC64 Add CXGBE driver which is required for PowerNV system. Also, remove AHCI which does not work in BigEndian.

Re: svn commit: r328075 - head/sbin/fsck_ffs

2018-01-17 Thread O. Hartmann
On Wed, 17 Jan 2018 06:31:21 + (UTC) Kirk McKusick wrote: > Author: mckusick > Date: Wed Jan 17 06:31:21 2018 > New Revision: 328075 > URL: https://svnweb.freebsd.org/changeset/base/328075 > > Log: > Rename cgget => cglookup to clear name space for new libufs

svn commit: r328077 - head/sys/powerpc/powernv

2018-01-17 Thread Wojciech Macek
Author: wma Date: Wed Jan 17 08:01:51 2018 New Revision: 328077 URL: https://svnweb.freebsd.org/changeset/base/328077 Log: PowerNV: workaround console on OPAL 5.4 FreeBSD prints text char-by-char, which is not what OPAL is designed to. Poll events more frequently to avoid buffer