Re: svn commit: r357284 - in head: include lib/libc/stdio

2020-02-01 Thread Antoine Brodin
On Thu, Jan 30, 2020 at 4:31 AM Kyle Evans wrote: > > Author: kevans > Date: Thu Jan 30 03:31:16 2020 > New Revision: 357284 > URL: https://svnweb.freebsd.org/changeset/base/357284 > > Log: > stdio: provide _unlocked variants of fflush, fputc, fputs, fread, fwrite > > fflush_unlocked is curren

svn commit: r357397 - in head/sys: arm/conf arm/include conf

2020-02-01 Thread Warner Losh
Author: imp Date: Sun Feb 2 06:52:10 2020 New Revision: 357397 URL: https://svnweb.freebsd.org/changeset/base/357397 Log: Remove old boardid/mach-types support. This has been long obsolete in linux and now that all armv4/5 support is gone, it can be retired too. Deleted: head/sys/arm/

svn commit: r357396 - in head/sys/arm: conf mv mv/discovery mv/kirkwood mv/orion

2020-02-01 Thread Warner Losh
Author: imp Date: Sun Feb 2 06:52:04 2020 New Revision: 357396 URL: https://svnweb.freebsd.org/changeset/base/357396 Log: Remove armv5 marvell support. Per plans to remove armv5 support, remove the armv5 marvell discovery, kirkwood and orion families. Deleted: head/sys/arm/conf/DB-78X

svn commit: r357395 - in head/sys/arm: conf ralink

2020-02-01 Thread Warner Losh
Author: imp Date: Sun Feb 2 06:51:42 2020 New Revision: 357395 URL: https://svnweb.freebsd.org/changeset/base/357395 Log: Remove Ralink RT1310 support This armv5 SoC is being removed consistent with the removal of armv5 support, per discussions in arm@ mailing list. Deleted: head/sys/

svn commit: r357394 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/ppbus sys/modules sys/modules/vpo

2020-02-01 Thread Warner Losh
Author: imp Date: Sun Feb 2 04:53:27 2020 New Revision: 357394 URL: https://svnweb.freebsd.org/changeset/base/357394 Log: Remove vpo.4 The Parallel Port SCSI adapter was interesting for 100MB ZIP drives, but is no longer used or maintained. Remove it from the tree. The Parallel Port

svn commit: r357393 - in head: share/man/man4 sys/dev/ppbus

2020-02-01 Thread Warner Losh
Author: imp Date: Sun Feb 2 04:52:28 2020 New Revision: 357393 URL: https://svnweb.freebsd.org/changeset/base/357393 Log: Add deprecation notice to vpo.4 This driver has seen no real changes for almost 20 years. It's for hardware that's 25 years old. It has no reports of active use, nor

svn commit: r357392 - head/sys/vm

2020-02-01 Thread Jeff Roberson
Author: jeff Date: Sat Feb 1 23:46:30 2020 New Revision: 357392 URL: https://svnweb.freebsd.org/changeset/base/357392 Log: Fix a bug in r356776 where the page allocator was not properly restored to the percpu page allocator after it had been temporarily overridden by startup_alloc. Rep

svn commit: r357391 - head/sys/dev/tpm

2020-02-01 Thread Konstantin Belousov
Author: kib Date: Sat Feb 1 23:16:30 2020 New Revision: 357391 URL: https://svnweb.freebsd.org/changeset/base/357391 Log: Fix build. Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/tpm/tpm_crb.c Modified: head/sys/dev/tpm/tpm_crb.c ==

svn commit: r357389 - head/sys/x86/iommu

2020-02-01 Thread Doug Moore
Author: dougm Date: Sat Feb 1 21:47:34 2020 New Revision: 357389 URL: https://svnweb.freebsd.org/changeset/base/357389 Log: In dmar_gas_lowermatch, skip searching a subtree if all its addresses are greater than lowaddr. In dmar_gas_uppermatch, skip searching a subtree if all its gaps-betwee

svn commit: r357388 - head/sys/dev/tpm

2020-02-01 Thread Dimitry Andric
Author: dim Date: Sat Feb 1 21:43:45 2020 New Revision: 357388 URL: https://svnweb.freebsd.org/changeset/base/357388 Log: Amend r357367 by using register values from the TPM datasheet. As Ian Lepore noted, writing ~1 to a register might have a completely different effect than doing a reg

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Conrad Meyer
Hi Dimitry, On Sat, Feb 1, 2020 at 12:29 PM Conrad Meyer wrote: > Please un-disable the Makefile warnings removed in r357349 earlier, too. Apologies, I just now caught up to my r357366 in my SVN email. Thank you. Best, Conrad ___ svn-src-all@freebsd.

svn commit: r357386 - head/sys/dev/tpm

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 20:38:22 2020 New Revision: 357386 URL: https://svnweb.freebsd.org/changeset/base/357386 Log: tpm(4): Fix 'go ready' in TPM 2.0 TIS driver tpmtis_go_ready() read the value of the TPM_STS register, ORed TPM_STS_CMD_READY with it, and wrote it back. However, th

svn commit: r357387 - in head/sys: compat/linux kern sys

2020-02-01 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 20:38:38 2020 New Revision: 357387 URL: https://svnweb.freebsd.org/changeset/base/357387 Log: cache: replace kern___getcwd with vn_getcwd The previous routine was resulting in extra data copies most notably in linux_getcwd. Modified: head/sys/compat/linux/l

svn commit: r357385 - head/sys/kern

2020-02-01 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 20:37:11 2020 New Revision: 357385 URL: https://svnweb.freebsd.org/changeset/base/357385 Log: cache: return the total length from vn_fullpath1 This removes strlen from getcwd. Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ==

svn commit: r357384 - head/sys/kern

2020-02-01 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 20:36:35 2020 New Revision: 357384 URL: https://svnweb.freebsd.org/changeset/base/357384 Log: cache: remove vnode -> path lookup disablement It seems to be of little to no use even when debugging. Interested parties can resurrect it and gate compilation wit

svn commit: r357383 - in head/sys: fs/devfs fs/pseudofs fs/tmpfs kern sys

2020-02-01 Thread Mateusz Guzik
Author: mjg Date: Sat Feb 1 20:34:43 2020 New Revision: 357383 URL: https://svnweb.freebsd.org/changeset/base/357383 Log: vfs: consistently use size_t for buflen around VOP_VPTOCNP Modified: head/sys/fs/devfs/devfs_vnops.c head/sys/fs/pseudofs/pseudofs_vnops.c head/sys/fs/tmpfs/tmpfs_vno

svn commit: r357382 - in head: include lib/libc/stdlib

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 20:33:23 2020 New Revision: 357382 URL: https://svnweb.freebsd.org/changeset/base/357382 Log: rand(3): Replace implementation with one backed by random(3) algorithm rand(3)'s standard C API is extremely limiting, but we can do better than the historical 32-bit

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Conrad Meyer
On Sat, Feb 1, 2020 at 10:10 AM Dimitry Andric wrote: > > On 1 Feb 2020, at 18:48, Ian Lepore wrote: > > > > So you're going to switch from writing 0 to writing 0xfffe, and > > just assume that will work the same? > > ... [Caustic sarcasm elided] > > Hmm, the data sheet says: > > Writes (

svn commit: r357381 - head/sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 20:12:02 2020 New Revision: 357381 URL: https://svnweb.freebsd.org/changeset/base/357381 Log: hwpstate_intel(4): Save admin-set EPP/EPB and restore after suspend Modified: head/sys/x86/cpufreq/hwpstate_intel.c Modified: head/sys/x86/cpufreq/hwpstate_intel.c =

svn commit: r357380 - head/sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 20:11:25 2020 New Revision: 357380 URL: https://svnweb.freebsd.org/changeset/base/357380 Log: hwpstate_intel(4): Print failure message only on failure X-MFC-With: r357379 Modified: head/sys/x86/cpufreq/hwpstate_intel.c Modified: head/sys/x86/cpufreq/hwpstate

svn commit: r357379 - in head: share/man/man4 sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 19:50:10 2020 New Revision: 357379 URL: https://svnweb.freebsd.org/changeset/base/357379 Log: hwpstate_intel(4): Detect and support PKG variant If package-level control is present, we default to using it. Per-core software control may be enabled by setting th

svn commit: r357378 - in head/sys/x86: cpufreq include

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 19:49:13 2020 New Revision: 357378 URL: https://svnweb.freebsd.org/changeset/base/357378 Log: hwpstate_intel(4): Add fallback EPP using PERF_BIAS MSR Per Intel SDM (Vol 3b Part 2), if HWP indicates EPP (energy-performance preference) is not supported, the hard

svn commit: r357377 - in head/sys/x86: cpufreq include x86

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 19:46:02 2020 New Revision: 357377 URL: https://svnweb.freebsd.org/changeset/base/357377 Log: x86: Add/amend some power-management comments/macros No functional change. Modified: head/sys/x86/cpufreq/hwpstate_intel.c head/sys/x86/include/specialreg.h head

svn commit: r357376 - head/sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 19:45:27 2020 New Revision: 357376 URL: https://svnweb.freebsd.org/changeset/base/357376 Log: hwpstate_intel(4): Error check epp sysctl & bail if HW does not support feature Modified: head/sys/x86/cpufreq/hwpstate_intel.c Modified: head/sys/x86/cpufreq/hwpstate_

svn commit: r357375 - head/tests/sys/net

2020-02-01 Thread Kristof Provost
Author: kp Date: Sat Feb 1 19:40:11 2020 New Revision: 357375 URL: https://svnweb.freebsd.org/changeset/base/357375 Log: tests: epair: Don't fail if we load if_epair kldload() returns a positive integer when it loads a ko, so check that the return value is -1 to detect error cases, not t

Re: svn commit: r357233 - head/sys/net

2020-02-01 Thread Kristof Provost
On 30 Jan 2020, at 16:34, Gleb Smirnoff wrote: On Tue, Jan 28, 2020 at 10:44:25PM +, Kristof Provost wrote: K> Author: kp K> Date: Tue Jan 28 22:44:24 2020 K> New Revision: 357233 K> URL: https://svnweb.freebsd.org/changeset/base/357233 K> K> Log: K> epair: Do not abuse params to registe

Re: svn commit: r357314 - in head/sys: conf kern sys vm

2020-02-01 Thread Li-Wen Hsu
On Fri, Jan 31, 2020 at 8:50 AM Jeff Roberson wrote: > > Author: jeff > Date: Fri Jan 31 00:49:51 2020 > New Revision: 357314 > URL: https://svnweb.freebsd.org/changeset/base/357314 > > Log: > Implement a safe memory reclamation feature that is tightly coupled with > UMA. > > This is in the s

svn commit: r357374 - head/sys/vm

2020-02-01 Thread Mark Johnston
Author: markj Date: Sat Feb 1 18:23:51 2020 New Revision: 357374 URL: https://svnweb.freebsd.org/changeset/base/357374 Log: Remove a couple of lingering usages of the page lock. Update vm_page_scan_contig() and vm_page_reclaim_run() to stop using vm_page_change_lock(). It has no use aft

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Dimitry Andric
On 1 Feb 2020, at 18:55, Ian Lepore wrote: > > On Fri, 2020-01-31 at 19:36 +, Dimitry Andric wrote: >> Author: dim >> Date: Fri Jan 31 19:36:14 2020 >> New Revision: 357349 >> URL: https://svnweb.freebsd.org/changeset/base/357349 >> >> Log: >> Merge r357348 from the clang 10.0.0 import bran

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Dimitry Andric
On 1 Feb 2020, at 18:48, Ian Lepore wrote: > > On Fri, 2020-01-31 at 23:36 +0100, Dimitry Andric wrote: >> Hmm yes, you are quite right. Other parts of the code also seem to >> use ~TPM_XXX, and the WR4() inline function called takes a >> uint32_t. I'll revert my change and apply the tilde vers

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Ian Lepore
On Fri, 2020-01-31 at 19:36 +, Dimitry Andric wrote: > Author: dim > Date: Fri Jan 31 19:36:14 2020 > New Revision: 357349 > URL: https://svnweb.freebsd.org/changeset/base/357349 > > Log: > Merge r357348 from the clang 10.0.0 import branch: > > Disable new clang 10.0.0 warnings about co

svn commit: r357373 - head/sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 17:54:46 2020 New Revision: 357373 URL: https://svnweb.freebsd.org/changeset/base/357373 Log: intel_hwpstate(4): Use identcpu-cached cpuid 6 leaf No functional change. Modified: head/sys/x86/cpufreq/hwpstate_intel.c Modified: head/sys/x86/cpufreq/hwpstate_in

Re: svn commit: r357349 - in head/sys: conf modules/tpm

2020-02-01 Thread Ian Lepore
On Fri, 2020-01-31 at 23:36 +0100, Dimitry Andric wrote: > Hmm yes, you are quite right. Other parts of the code also seem to > use ~TPM_XXX, and the WR4() inline function called takes a > uint32_t. I'll revert my change and apply the tilde version instead! > > -Dimitry > So you're going to sw

svn commit: r357372 - head/sys/x86/cpufreq

2020-02-01 Thread Conrad Meyer
Author: cem Date: Sat Feb 1 17:30:45 2020 New Revision: 357372 URL: https://svnweb.freebsd.org/changeset/base/357372 Log: intel_hwpstate(4): Don't leak bound thread in error conditions I don't know why a Skylake CPU with the HWP feature bit present would trap on MSR reads of the HWP regi

svn commit: r357371 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:13:52 2020 New Revision: 357371 URL: https://svnweb.freebsd.org/changeset/base/357371 Log: prci: register tlclk as a fixed clock The PRCI exports tlclk as a constant fixed divisor clock, defined as 1/2 of the coreclk frequency. In older FU540 device tree

svn commit: r357370 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:12:15 2020 New Revision: 357370 URL: https://svnweb.freebsd.org/changeset/base/357370 Log: prci: fix up compat Add two additional compat strings that can be used to identify the PRCI. With newer device trees the PRCI has two parents, hfclk and rtcclk,

svn commit: r357369 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:09:56 2020 New Revision: 357369 URL: https://svnweb.freebsd.org/changeset/base/357369 Log: prci: register the DDR and GEMGX PLLs The PRCI module exports three PLLs. Currently only the coreclk/corepll is registered, so add the logic to register the DDR (m

svn commit: r357367 - head/sys/dev/tpm

2020-02-01 Thread Dimitry Andric
Author: dim Date: Sat Feb 1 17:02:26 2020 New Revision: 357367 URL: https://svnweb.freebsd.org/changeset/base/357367 Log: Fix new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of

svn commit: r357366 - in head/sys: conf modules/tpm

2020-02-01 Thread Dimitry Andric
Author: dim Date: Sat Feb 1 16:57:04 2020 New Revision: 357366 URL: https://svnweb.freebsd.org/changeset/base/357366 Log: Revert r357349, since the clang 10.0.0 warning was actually correct, and the ! operator should have been a ~ instead: Merge r357348 from the clang 10.0.0 import bra

svn commit: r357365 - head/tests/sys/net

2020-02-01 Thread Kristof Provost
Author: kp Date: Sat Feb 1 11:31:45 2020 New Revision: 357365 URL: https://svnweb.freebsd.org/changeset/base/357365 Log: tests: epair: Don't fail if the if_epair module is already loaded kldload() returns an error (EEXIST) if the module is already loaded. That's not a problem for us, so

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

2020-02-01 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Sat Feb 1 10:25:13 2020 New Revision: 357364 URL: https://svnweb.freebsd.org/changeset/base/357364 Log: bridge.4: Remove notes about FreeBSD 6.2-7.2 Reported by: Mateusz Kwiatkowski Reviewed by: brueffer Approved by: bcr (mentor) Differentia

svn commit: r357363 - head/sys/geom

2020-02-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Feb 1 10:15:23 2020 New Revision: 357363 URL: https://svnweb.freebsd.org/changeset/base/357363 Log: The error variable is not really needed. Remove it. Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c =

Re: svn commit: r357138 - head/bin/pwait

2020-02-01 Thread Pawel Jakub Dawidek
On 1/30/20 14:47, Jilles Tjoelker wrote: > On 26-01-2020 11:49, Pawel Jakub Dawidek wrote: >> Author: pjd >> Date: Sun Jan 26 10:49:24 2020 >> New Revision: 357138 >> URL: https://svnweb.freebsd.org/changeset/base/357138 >> >> Log: >>    - Be consistent with using sysexits(3) codes. >>    - Turn fp

svn commit: r357362 - head/bin/pwait

2020-02-01 Thread Pawel Jakub Dawidek
Author: pjd Date: Sat Feb 1 09:13:11 2020 New Revision: 357362 URL: https://svnweb.freebsd.org/changeset/base/357362 Log: Restore previous usage presentation (without "pwait: " prefix). Pointed out by: jilles Modified: head/bin/pwait/pwait.c Modified: head/bin/pwait/pwait.c =