svn commit: r328623 - head/sys/compat/linuxkpi/common/include/linux

2018-01-31 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jan 31 13:40:36 2018 New Revision: 328623 URL: https://svnweb.freebsd.org/changeset/base/328623 Log: Properly implement the cond_resched() function macro in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 14:36:27 2018 New Revision: 328625 URL: https://svnweb.freebsd.org/changeset/base/328625 Log: IBRS support, AKA Spectre hardware mitigation. It is coded according to the Intel document 336996-001, reading of the patches posted on lkml, and some additional

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ravi Pokala
Thanks Kostik! Quick question: IBRS stands for...? For that matter, in the previous change, what does RDCL_NO stand for too? -Ravi (rpokala@) -Original Message- From: on behalf of Konstantin Belousov Date: 2018-01-31, Wednesday at

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ravi Pokala
-Original Message- From: on behalf of Konstantin Belousov Date: 2018-01-31, Wednesday at 07:02 To: Ravi Pokala Cc: , , Subject: Re:

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Shawn Webb
On Wed, Jan 31, 2018 at 02:36:27PM +, Konstantin Belousov wrote: > Author: kib > Date: Wed Jan 31 14:36:27 2018 > New Revision: 328625 > URL: https://svnweb.freebsd.org/changeset/base/328625 > > Log: > IBRS support, AKA Spectre hardware mitigation. > > It is coded according to the

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
On Wed, Jan 31, 2018 at 06:52:43AM -0800, Ravi Pokala wrote: > Thanks Kostik! > > Quick question: IBRS stands for...? For that matter, in the previous change, > what does RDCL_NO stand for too? Indirect Branch Restricted Speculation Rogue Data Cache Load. Read (or at least skim over) the Intel

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

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 14:25:42 2018 New Revision: 328624 URL: https://svnweb.freebsd.org/changeset/base/328624 Log: Do not enable PTI when IA32_ARCH_CAP_RDCL_NO bit is set. Intel document 336996-001 claims that this will be the way to inform about Meltdown correction.

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

2018-01-31 Thread Andriy Gapon
Author: avg Date: Wed Jan 31 14:44:51 2018 New Revision: 328626 URL: https://svnweb.freebsd.org/changeset/base/328626 Log: zfs_rezget: drop cached pages before doing anything else We did that in the case of success to prevent the use of stale cached data, but it makes even less sense to

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Bjoern A. Zeeb
On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: Author: kib Date: Wed Jan 31 14:36:27 2018 New Revision: 328625 URL: https://svnweb.freebsd.org/changeset/base/328625 Log: IBRS support, AKA Spectre hardware mitigation. For existing processors, you need a microcode update which adds

Re: svn commit: r328610 - head/sys/amd64/amd64

2018-01-31 Thread John Baldwin
On Wednesday, January 31, 2018 10:31:36 AM Ed Maste wrote: > On 30 January 2018 at 21:01, John Baldwin wrote: > > On Tuesday, January 30, 2018 11:29:27 PM John Baldwin wrote: > >> Author: jhb > >> Date: Tue Jan 30 23:29:27 2018 > >> New Revision: 328610 > >> URL:

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Konstantin Belousov
On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > Author: kib > > Date: Wed Jan 31 14:36:27 2018 > > New Revision: 328625 > > URL: https://svnweb.freebsd.org/changeset/base/328625 > > > > Log: > > IBRS support, AKA

Re: svn commit: r328610 - head/sys/amd64/amd64

2018-01-31 Thread Ed Maste
On 30 January 2018 at 21:01, John Baldwin wrote: > On Tuesday, January 30, 2018 11:29:27 PM John Baldwin wrote: >> Author: jhb >> Date: Tue Jan 30 23:29:27 2018 >> New Revision: 328610 >> URL: https://svnweb.freebsd.org/changeset/base/328610 >> >> Log: >> Ensure 'name' is not

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

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 16:56:02 2018 New Revision: 328628 URL: https://svnweb.freebsd.org/changeset/base/328628 Log: When switching IBRS on, also enable STIBP (Single Thread Indirect Branch Predictors) mitigation. DOcument 336996-001 promises that CPUs which implement IBRS but not

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Ed Maste
On 31 January 2018 at 09:56, Bjoern A. Zeeb wrote: > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > >> Author: kib >> Date: Wed Jan 31 14:36:27 2018 >> New Revision: 328625 >> URL: https://svnweb.freebsd.org/changeset/base/328625 >> >> Log: >> IBRS

svn commit: r328629 - in head: lib/libc/mips/gen sys/mips/include sys/mips/mips

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:36:39 2018 New Revision: 328629 URL: https://svnweb.freebsd.org/changeset/base/328629 Log: Consistently use 16-byte alignment for MIPS N32 and N64. - Add a new header to hold constants shared between C and assembly such as CALLFRAME_SZ. - Add a new

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++

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

2018-01-31 Thread Konstantin Belousov
Author: kib Date: Wed Jan 31 16:54:05 2018 New Revision: 328627 URL: https://svnweb.freebsd.org/changeset/base/328627 Log: Expand IBRS TLA in sysctl help lines. Requested by: bz Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/x86/cpu_machdep.c

Re: svn commit: r328616 - head/sys/powerpc/aim

2018-01-31 Thread Nathan Whitehorn
Thanks! Since PSL_HV is only defined on powerpc64, you also need some #ifdef here or the ppc32 kernel build will break. Also, the comment is longer than 80 characters. -Nathan On 01/30/18 22:42, Wojciech Macek wrote: Author: wma Date: Wed Jan 31 06:42:01 2018 New Revision: 328616 URL:

svn commit: r328631 - in head/lib/libc: i386/gen powerpc/gen powerpc64/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:57:59 2018 New Revision: 328631 URL: https://svnweb.freebsd.org/changeset/base/328631 Log: Remove bogus checks against NCARGS. NCARGS isn't a limit on the number of arguments to pass to a function, but the number of bytes that can be consumed by arguments

svn commit: r328634 - head/contrib/netbsd-tests/lib/libc/sys

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:03:40 2018 New Revision: 328634 URL: https://svnweb.freebsd.org/changeset/base/328634 Log: Update limits on makecontext() arguments in the setcontext_link test. sparc64 and riscv do not support 10 arguments, but MIPS now does. While here, combine clauses

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++

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

2018-01-31 Thread Mark Johnston
On Wed, Jan 24, 2018 at 11:57:40PM +, Kirk McKusick wrote: > Author: mckusick > Date: Wed Jan 24 23:57:40 2018 > New Revision: 328383 > URL: https://svnweb.freebsd.org/changeset/base/328383 > > Log: > More throughly integrate libufs into fsck_ffs by using its cgput() > routine to write

svn commit: r328632 - head/lib/libc/mips/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:00:23 2018 New Revision: 328632 URL: https://svnweb.freebsd.org/changeset/base/328632 Log: Remove limitation of 6 arguments for makecontext() on mips. This implementation spills additional arguments on the stack so works fine with more than 6 arguments. I

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Rodney W. Grimes
> On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > > > Author: kib > > > Date: Wed Jan 31 14:36:27 2018 > > > New Revision: 328625 > > > URL: https://svnweb.freebsd.org/changeset/base/328625 > > > > > > Log: > > >

svn commit: r328635 - head/lib/libgcc_s

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:13:33 2018 New Revision: 328635 URL: https://svnweb.freebsd.org/changeset/base/328635 Log: Don't include long double routines on architectures with small long double. Reviewed by: emaste Sponsored by: DARPA / AFRL Differential Revision:

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

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 17:56:36 2018 New Revision: 328630 URL: https://svnweb.freebsd.org/changeset/base/328630 Log: Clarify that the additional arguments to makecontext() are of type int. MFC after:1 week Sponsored by: DARPA / AFRL Modified: head/lib/libc/gen/makecontext.3

svn commit: r328633 - head/lib/libc/tests/gen

2018-01-31 Thread John Baldwin
Author: jhb Date: Wed Jan 31 18:02:02 2018 New Revision: 328633 URL: https://svnweb.freebsd.org/changeset/base/328633 Log: Add a new set of simple tests for makecontext(). In contrast to the existing NetBSD setcontext_link test, these tests verify that passing from 1 to 6 arguments

svn commit: r328640 - head/sys/dev/atkbdc

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 22:17:52 2018 New Revision: 328640 URL: https://svnweb.freebsd.org/changeset/base/328640 Log: psm: Add a kludge to support 0x46 identity middle byte Synaptics touchpads Most synaptics touchpads return 0x47 in middle byte in responce to identify command as

svn commit: r328642 - in head/stand: . common

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 22:46:05 2018 New Revision: 328642 URL: https://svnweb.freebsd.org/changeset/base/328642 Log: Break out the interpreters (simple and forth) w/o ifdefs. This is akin to what Pedro Souza and Wojciech Koszek did in the lua GSoC with interp.h, interp_simple.c and

svn commit: r328637 - head/lib/libgcc_s

2018-01-31 Thread Glen Barber
Author: gjb Date: Wed Jan 31 21:41:42 2018 New Revision: 328637 URL: https://svnweb.freebsd.org/changeset/base/328637 Log: Fix build by escaping a line break. PR: 225597 Submitted by: cbnfinley at gmail.com Sponsored by: The FreeBSD Foundation Modified:

svn commit: r328639 - in head/contrib/jemalloc: . include/jemalloc

2018-01-31 Thread Marius Strobl
Author: marius Date: Wed Jan 31 21:56:23 2018 New Revision: 328639 URL: https://svnweb.freebsd.org/changeset/base/328639 Log: Account for the fact that jemalloc 5.0.0 dropped STATIC_PAGE_SHIFT in favor for using LG_PAGE directly and, thus, for the fact that host and target don't necessarily

Re: svn commit: r328625 - in head/sys: amd64/amd64 amd64/ia32 amd64/include dev/cpuctl i386/i386 x86/include x86/x86

2018-01-31 Thread Steven Hartland
Pretty sure I’ve seen that too On Wed, 31 Jan 2018 at 18:05, Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > On Wed, Jan 31, 2018 at 02:56:24PM +, Bjoern A. Zeeb wrote: > > > On 31 Jan 2018, at 14:36, Konstantin Belousov wrote: > > > > > > > Author: kib > > > > Date: Wed Jan 31

svn commit: r328638 - head/sys/dev/atkbdc

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 21:46:37 2018 New Revision: 328638 URL: https://svnweb.freebsd.org/changeset/base/328638 Log: psm(4): Reduce psm watchdog verbosity Modern touchpads do not issue interrupts on inactivity so "lost interrupt" message became annoying spam nowadays. This change

svn commit: r328643 - head/sys/kern

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 22:49:50 2018 New Revision: 328643 URL: https://svnweb.freebsd.org/changeset/base/328643 Log: One of the vnode fields listed by vn_printf is the union of pointers whose type depends on the type of vnode. Correct vn_printf so that it correctly identifies the

svn commit: r328636 - in head/sys: dev/atkbdc sys

2018-01-31 Thread Vladimir Kondratyev
Author: wulf Date: Wed Jan 31 21:14:59 2018 New Revision: 328636 URL: https://svnweb.freebsd.org/changeset/base/328636 Log: psm(4): Add support for HP EliteBook 1040 ForcePads. ForcePads do not have any physical buttons, instead they detect click based on finger pressure. Forcepads

svn commit: r328641 - head/usr.bin/dtc

2018-01-31 Thread Kyle Evans
Author: kevans Date: Wed Jan 31 22:20:33 2018 New Revision: 328641 URL: https://svnweb.freebsd.org/changeset/base/328641 Log: dtc(1): Revert WARNS change from r328173 WARNS > 3 breaks xtoolchain builds to varying degrees. Revert it. Reported by: lwhsu, jhb MFC after:3 days

Re: svn commit: r328637 - head/lib/libgcc_s

2018-01-31 Thread John Baldwin
On Wednesday, January 31, 2018 09:41:42 PM Glen Barber wrote: > Author: gjb > Date: Wed Jan 31 21:41:42 2018 > New Revision: 328637 > URL: https://svnweb.freebsd.org/changeset/base/328637 > > Log: > Fix build by escaping a line break. > > PR: 225597 > Submitted by:

svn commit: r328647 - head/sys/geom/journal

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 23:30:49 2018 New Revision: 328647 URL: https://svnweb.freebsd.org/changeset/base/328647 Log: Null out journal softc pointer earlier to avoid a segment fault that can otherwise occur. PR: 221804 Submitted by: Andreas Longwitz MFC after:

svn commit: r328644 - head/sys/ufs/ffs

2018-01-31 Thread Kirk McKusick
Author: mckusick Date: Wed Jan 31 23:13:37 2018 New Revision: 328644 URL: https://svnweb.freebsd.org/changeset/base/328644 Log: When reading a cylinder group, break out reporting of check hash errors from other types of errors so that the error is correctly reported. Modified:

svn commit: r328645 - head/share/man/man7

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 23:16:19 2018 New Revision: 328645 URL: https://svnweb.freebsd.org/changeset/base/328645 Log: Add the new armv7 architecture. Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7

svn commit: r328646 - head/share/man/man7

2018-01-31 Thread Warner Losh
Author: imp Date: Wed Jan 31 23:16:54 2018 New Revision: 328646 URL: https://svnweb.freebsd.org/changeset/base/328646 Log: Bump .Dd Modified: head/share/man/man7/arch.7 Modified: head/share/man/man7/arch.7 == ---

Re: svn commit: r328593 - head/release/scripts

2018-01-31 Thread Jonathan Anderson
On 30 Jan 2018, at 14:58, Rodney W. Grimes wrote: Do we even want to include the ports tree on install media? Extracting ports from some out-of-date tarball doesn't seem to match best practices for ports and it takes up quite a lot of space. -Nathan Yes, you want to ship a known working

svn commit: r328650 - head/sys/powerpc/aim

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:28:02 2018 New Revision: 328650 URL: https://svnweb.freebsd.org/changeset/base/328650 Log: Fix build on 32-bit PowerPC, broken in r328537. Modified: head/sys/powerpc/aim/mp_cpudep.c Modified: head/sys/powerpc/aim/mp_cpudep.c

svn commit: r328651 - in head/sys/powerpc: aim booke include powerpc

2018-01-31 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Feb 1 05:31:24 2018 New Revision: 328651 URL: https://svnweb.freebsd.org/changeset/base/328651 Log: Change the default MSR values used when starting userland and kernel threads from compile-time defines to global variables. This removes a significant amount of

svn commit: r328622 - head/sys/amd64/vmm/amd

2018-01-31 Thread Andriy Gapon
Author: avg Date: Wed Jan 31 11:14:26 2018 New Revision: 328622 URL: https://svnweb.freebsd.org/changeset/base/328622 Log: vmm/svm: post LAPIC interrupts using event injection, not virtual interrupts The virtual interrupt method uses V_IRQ, V_INTR_PRIO, and V_INTR_VECTOR fields of VMCB