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

2017-11-25 Thread Peter Holm
On Sat, Nov 25, 2017 at 08:49:27PM +, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 25 20:49:27 2017 > New Revision: 326200 > URL: https://svnweb.freebsd.org/changeset/base/326200 > > Log: > Add the missing lockstat check for thread lock. > > Modified: > head/sys/kern/kern_mutex.c >

svn commit: r326224 - head

2017-11-25 Thread Cy Schubert
Author: cy Date: Sun Nov 26 06:31:34 2017 New Revision: 326224 URL: https://svnweb.freebsd.org/changeset/base/326224 Log: Fix spelling error (probably typo). Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r326223 - head

2017-11-25 Thread Xin LI
Author: delphij Date: Sun Nov 26 04:55:23 2017 New Revision: 326223 URL: https://svnweb.freebsd.org/changeset/base/326223 Log: Fill in date. Modified: head/UPDATING Modified: head/UPDATING == --- head/UPDATING

svn commit: r326222 - head/sys/powerpc/pseries

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Nov 26 04:34:13 2017 New Revision: 326222 URL: https://svnweb.freebsd.org/changeset/base/326222 Log: Remove another extern int n_slbs made redundant by declaring this in mmu_oea64.h. MFC after:3 weeks Modified: head/sys/powerpc/pseries/mmu_phyp.c

svn commit: r326220 - in head: . sys/powerpc/aim sys/powerpc/booke sys/powerpc/powerpc

2017-11-25 Thread Nathan Whitehorn
: ** +20171125: + PowerPC users must update loader(8) by rebuilding world before + installing a new kernel, as the protocol connecting them has + changed. Without the update, loader metadata will not be passed + successfully to the kernel and users

svn commit: r326219 - in head/lib: csu/amd64 csu/arm csu/common csu/mips csu/powerpc csu/powerpc64 csu/sparc64 libarchive libbluetooth libbsdstat libc_nonshared libcalendar libcam libcompat/4.1 lib...

2017-11-25 Thread Pedro F. Giffuni
Author: pfg Date: Sun Nov 26 02:00:33 2017 New Revision: 326219 URL: https://svnweb.freebsd.org/changeset/base/326219 Log: lib: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so

svn commit: r326218 - head/sys/kern

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 23:41:05 2017 New Revision: 326218 URL: https://svnweb.freebsd.org/changeset/base/326218 Log: Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs are numbered densely from there to n_cpus. MFC after:1 month Modified:

svn commit: r326217 - in head/sys/powerpc: ofw powerpc

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 23:23:24 2017 New Revision: 326217 URL: https://svnweb.freebsd.org/changeset/base/326217 Log: Avoid assumptions about the BSP being CPU 0. MFC after:3 weeks Modified: head/sys/powerpc/ofw/ofw_machdep.c head/sys/powerpc/powerpc/machdep.c

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:43:52 2017 New Revision: 326216 URL: https://svnweb.freebsd.org/changeset/base/326216 Log: On AIM systems, it is not actually possible to stop the CPU timer, so we just set it to a large default value (and inherit any previously existing value), hoping

svn commit: r326215 - in head/sys/powerpc: include powerpc

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:42:05 2017 New Revision: 326215 URL: https://svnweb.freebsd.org/changeset/base/326215 Log: Return base IRQ of PIC when added and massively increase the number of available IRQs per PIC for large systems. MFC after:3 weeks Modified:

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:15:56 2017 New Revision: 326214 URL: https://svnweb.freebsd.org/changeset/base/326214 Log: Missed gate on __powerpc64__ for setting LPCR in r326207. MFC after:3 weeks X-MFC-with: r326207 Modified: head/sys/powerpc/aim/mp_cpudep.c Modified:

svn commit: r326213 - head/sys/powerpc/ofw

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:14:30 2017 New Revision: 326213 URL: https://svnweb.freebsd.org/changeset/base/326213 Log: When booting from an FDT, make sure the FDT itself isn't included the range of available memory. Boot loaders are supposed to add a reserved entry for it, but

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:13:19 2017 New Revision: 326212 URL: https://svnweb.freebsd.org/changeset/base/326212 Log: Allow platform modules to set the size of large pizes, as potentially discovered from firmware, and better handle highly-discontiguous memory and CPU maps.

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:10:10 2017 New Revision: 326211 URL: https://svnweb.freebsd.org/changeset/base/326211 Log: Invalidate TLB at boot using the correct IS settings on newer-than-POWER5 CPUs. MFC after:3 weeks Modified: head/sys/powerpc/aim/moea64_native.c

svn commit: r326210 - head/sys/powerpc/include

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:08:40 2017 New Revision: 326210 URL: https://svnweb.freebsd.org/changeset/base/326210 Log: Definitions for registers and trap types found on new POWER CPUs. MFC after:3 weeks Modified: head/sys/powerpc/include/spr.h

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:06:40 2017 New Revision: 326209 URL: https://svnweb.freebsd.org/changeset/base/326209 Log: Missed platform_smp_timebase_sync() in r326205. MFC after:3 weeks X-MFC-With: r326205 Modified: head/sys/powerpc/aim/aim_machdep.c Modified:

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:05:05 2017 New Revision: 326208 URL: https://svnweb.freebsd.org/changeset/base/326208 Log: Make n_slbs public in a more straightforward way. Some platforms (like PowerNV) use firmware-assisted mechanisms to discover it and need access to the variable.

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:03:25 2017 New Revision: 326207 URL: https://svnweb.freebsd.org/changeset/base/326207 Log: Preserve the LPCR on new-ish (POWER7 and POWER8) CPUs, preventing exceptions and such from ending on the wrong CPU on SMP systems. It would be good to have this

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

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 22:01:55 2017 New Revision: 326206 URL: https://svnweb.freebsd.org/changeset/base/326206 Log: Yield while spinning on APs and avoid announcing all CPUs unless bootverbose is set. These improve startup performance on massively multithreaded systems with

svn commit: r326205 - in head/sys/powerpc: aim include mpc85xx powermac powerpc

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:59:59 2017 New Revision: 326205 URL: https://svnweb.freebsd.org/changeset/base/326205 Log: Whether you can use mttb() or not is more complicated than whether PSL_HV is set and the right thing to do may be platform-dependent (it requires firmware on

svn commit: r326204 - head/sys/dev/ofw

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:46:51 2017 New Revision: 326204 URL: https://svnweb.freebsd.org/changeset/base/326204 Log: Do not bind to CPUs with SMT, which use a different CPU numbering convention that does not play well with this driver. MFC after:2 weeks Modified:

svn commit: r326203 - head/sys/conf

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:45:51 2017 New Revision: 326203 URL: https://svnweb.freebsd.org/changeset/base/326203 Log: Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for the first instruction to be at the start of the text segment. This allows the kernel to

svn commit: r326202 - head/sys/conf

2017-11-25 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Nov 25 21:44:23 2017 New Revision: 326202 URL: https://svnweb.freebsd.org/changeset/base/326202 Log: Automatically use the ELFv2 ABI on powerpc64 if supported by the compiler. This has the same effects on DDB working as -mcall=aixdesc, but also is supported by

svn commit: r326200 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:49:27 2017 New Revision: 326200 URL: https://svnweb.freebsd.org/changeset/base/326200 Log: Add the missing lockstat check for thread lock. Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c

svn commit: r326199 - head/sys/sys

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:37:13 2017 New Revision: 326199 URL: https://svnweb.freebsd.org/changeset/base/326199 Log: Convert in-kernel thread_lock_flags calls to thread_lock when debug is disabled The flags argument is not used in this case. Modified: head/sys/sys/mutex.h

svn commit: r326198 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:25:45 2017 New Revision: 326198 URL: https://svnweb.freebsd.org/changeset/base/326198 Log: rwlock: fix up compilation of the previous change commmitted wrong version of the patch Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c

svn commit: r326197 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:22:51 2017 New Revision: 326197 URL: https://svnweb.freebsd.org/changeset/base/326197 Log: rwlock: add __rw_try_{r,w}lock_int Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c

svn commit: r326196 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:13:50 2017 New Revision: 326196 URL: https://svnweb.freebsd.org/changeset/base/326196 Log: sx: change sunlock to wake waiters up if it locked sleepq sleepq is only locked if the curhtread is the last reader. By the time the lock gets acquired new ones

svn commit: r326195 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:10:33 2017 New Revision: 326195 URL: https://svnweb.freebsd.org/changeset/base/326195 Log: locks: retry turnstile/sleepq loops on failed cmpset In order to go to sleep threads set waiter flags, but that can spuriously fail e.g. when a new reader arrives.

svn commit: r326194 - head/sys/kern

2017-11-25 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 25 20:08:11 2017 New Revision: 326194 URL: https://svnweb.freebsd.org/changeset/base/326194 Log: rwlock: stop re-reading the owner when going to sleep Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c

svn commit: r326193 - in head/lib/libc: amd64 amd64/gen amd64/string amd64/sys arm arm/aeabi arm/gen arm/sys db/mpool gdtoa gen i386 i386/gen i386/sys iconv include locale mips mips/gen net posix1e...

2017-11-25 Thread Pedro F. Giffuni
Author: pfg Date: Sat Nov 25 17:12:48 2017 New Revision: 326193 URL: https://svnweb.freebsd.org/changeset/base/326193 Log: libc: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so

svn commit: r326192 - in head/include: . rpc rpcsvc xlocale

2017-11-25 Thread Pedro F. Giffuni
Author: pfg Date: Sat Nov 25 17:09:43 2017 New Revision: 326192 URL: https://svnweb.freebsd.org/changeset/base/326192 Log: include: General further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many

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

2017-11-25 Thread Kyle Evans
Author: kevans Date: Sat Nov 25 16:46:35 2017 New Revision: 326191 URL: https://svnweb.freebsd.org/changeset/base/326191 Log: Allwinner a83t: enable USB support Originally a patch by Mark Millard, augmented with information from work done on NetBSD by jmcneill@. Submitted by: Mark

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-25 Thread Warner Losh
On Sat, Nov 25, 2017 at 4:09 AM, Bruce Evans wrote: > Is there any use for ntp as a client if you have an atomic clock? Just to > validate both it and ntpd? NTP is a peer to peer time exchange. You run the same daemon either way. However, in the reference clock case,

svn commit: r326190 - in head/sys/arm/allwinner: a83t clkng

2017-11-25 Thread Kyle Evans
Author: kevans Date: Sat Nov 25 15:14:40 2017 New Revision: 326190 URL: https://svnweb.freebsd.org/changeset/base/326190 Log: Add r-ccu support for the Allwinner a83t The r-ccu on the a83t differs from the others only by what it names the ar100 parents. Export the _CCU macros (now

svn commit: r326189 - stable/10/sys/vm

2017-11-25 Thread Konstantin Belousov
Author: kib Date: Sat Nov 25 14:51:40 2017 New Revision: 326189 URL: https://svnweb.freebsd.org/changeset/base/326189 Log: MFC r326098: Return different error code for the guard page layout violation. PR: 223732 Modified: stable/10/sys/vm/vm_map.c Directory Properties: stable/10/

svn commit: r326188 - stable/11/sys/vm

2017-11-25 Thread Konstantin Belousov
Author: kib Date: Sat Nov 25 14:47:24 2017 New Revision: 326188 URL: https://svnweb.freebsd.org/changeset/base/326188 Log: MFC r326098: Return different error code for the guard page layout violation. PR: 223732 Modified: stable/11/sys/vm/vm_map.c Directory Properties: stable/11/

Re: svn commit: r326095 - head/usr.sbin/bsdinstall/scripts

2017-11-25 Thread Bruce Evans
On Fri, 24 Nov 2017, Ian Lepore wrote: On Fri, 2017-11-24 at 22:25 +1100, Bruce Evans wrote: On Thu, 23 Nov 2017, Devin Teske wrote: [...] ntpdate's man page claims this, but is wrong AFAIK.? It says that the functionality of ntpdate is now available in ntpd(8) using -q.? However ntpdate -q

svn commit: r326187 - head/cddl/contrib/opensolaris/cmd/zdb

2017-11-25 Thread Andriy Gapon
Author: avg Date: Sat Nov 25 09:47:31 2017 New Revision: 326187 URL: https://svnweb.freebsd.org/changeset/base/326187 Log: zdb: follow-up to r326150, check if malloc succeeded Reported by: rpokala MFC after:1 week X-MFC with: r326150 Modified:

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

2017-11-25 Thread Alexander Motin
Author: mav Date: Sat Nov 25 09:42:14 2017 New Revision: 326186 URL: https://svnweb.freebsd.org/changeset/base/326186 Log: Slightly fix bidirectional stream number allocation. This logic is still imperfect, since it allows at most 15 bidirectional streams out of 30 allowed by

svn commit: r326185 - head/usr.bin/gzip

2017-11-25 Thread Xin LI
Author: delphij Date: Sat Nov 25 09:03:38 2017 New Revision: 326185 URL: https://svnweb.freebsd.org/changeset/base/326185 Log: Set errno to EFTYPE instead of EINVAL to be more consistent with the rest of code. MFC after:1 month Modified: head/usr.bin/gzip/zuncompress.c Modified: