Re: svn commit: r355188 - in head/riscv: . sifive

2019-12-03 Thread Emmanuel Vadot
On Mon, 02 Dec 2019 13:36:06 -0800 Ravi Pokala wrote: > Hi Manu, > > This creates a top-level "riscv" directory, but there are no other top-level > ${TARGET} directories. > > It looks like other *.dts and *.dtsi files live in either > > sys/dts/${TARGET} > > or > >

svn commit: r355324 - head/sys/gnu/dts/riscv

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 09:12:53 2019 New Revision: 355324 URL: https://svnweb.freebsd.org/changeset/base/355324 Log: Import DTS files for riscv from Linux 5.4 Requested by: mhorne Added: head/sys/gnu/dts/riscv/ - copied from r355323, vendor/device-tree/dist/src/riscv/

svn commit: r355323 - head/riscv

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 09:06:37 2019 New Revision: 355323 URL: https://svnweb.freebsd.org/changeset/base/355323 Log: Revert r355188 as it shouldn't have created the risc-v directory at the top level. Reported by: rpokala Deleted: head/riscv/

svn commit: r355325 - head/lib/libdevstat

2019-12-03 Thread Andriy Gapon
Author: avg Date: Tue Dec 3 09:48:43 2019 New Revision: 355325 URL: https://svnweb.freebsd.org/changeset/base/355325 Log: devstat_selectdevs: resize dev_select only after copying data out of it The resizing could be a downsizing so some data would be lost and we could attempt to read

svn commit: r355322 - in head/sys: netinet netinet6

2019-12-03 Thread Hans Petter Selasky
Author: hselasky Date: Tue Dec 3 08:46:59 2019 New Revision: 355322 URL: https://svnweb.freebsd.org/changeset/base/355322 Log: Use refcount from "in_joingroup_locked()" when joining multicast groups. Do not acquire additional references. This makes the IPv4 IGMP code in line with the IPv6

Re: svn commit: r355188 - in head/riscv: . sifive

2019-12-03 Thread Ravi Pokala
-Original Message- From: Emmanuel Vadot Date: 2019-12-03, Tuesday at 01:13 To: Ravi Pokala Cc: Emmanuel Vadot , , , Subject: Re: svn commit: r355188 - in head/riscv: . sifive On Mon, 02 Dec 2019 13:36:06 -0800 Ravi Pokala wrote: > Hi Manu, > > This creates a

svn commit: r355327 - in head/sys: netinet netinet6

2019-12-03 Thread Bjoern A. Zeeb
Author: bz Date: Tue Dec 3 14:46:38 2019 New Revision: 355327 URL: https://svnweb.freebsd.org/changeset/base/355327 Log: Make icmp6_reflect() static. icmp6_reflect() is not used anywhere outside icmp6.c, no reason to export it. Sponsored by: Netflix Modified:

svn commit: r355330 - head/share/man/man9

2019-12-03 Thread Warner Losh
Author: imp Date: Tue Dec 3 15:48:28 2019 New Revision: 355330 URL: https://svnweb.freebsd.org/changeset/base/355330 Log: Regularize copyright notices for me. Remove stray All Rights Reserved and other non-license stuff. Make sure all copyrights have year. Modified:

svn commit: r355334 - head/sys/dev/syscons

2019-12-03 Thread Ed Maste
Author: emaste Date: Tue Dec 3 16:45:53 2019 New Revision: 355334 URL: https://svnweb.freebsd.org/changeset/base/355334 Log: scterm-sc.c: convert source file to UTF-8 encoding Most source files are already ASCII or UTF-8 but this one was not previously converted. Modified:

svn commit: r355340 - head/sys/dev/ctau

2019-12-03 Thread Ed Maste
Author: emaste Date: Tue Dec 3 16:52:03 2019 New Revision: 355340 URL: https://svnweb.freebsd.org/changeset/base/355340 Log: ctau.c: convert from KOI8-R to UTF-8 encoding AFAICT this is the last source file (excluding contrib) that was not ASCII or UTF-8. Modified:

Re: svn commit: r355301 - head/usr.sbin/bhyve

2019-12-03 Thread Ian Lepore
On Mon, 2019-12-02 at 23:22 -0800, Rodney W. Grimes wrote: > > On Mon, 2019-12-02 at 20:51 +, Vincenzo Maffione wrote: > > > Author: vmaffione > > > Date: Mon Dec 2 20:51:46 2019 > > > New Revision: 355301 > > > URL: https://svnweb.freebsd.org/changeset/base/355301 > > > > > > Log: > > >

Re: svn commit: r355301 - head/usr.sbin/bhyve

2019-12-03 Thread Rodney W. Grimes
> On Mon, 2019-12-02 at 23:22 -0800, Rodney W. Grimes wrote: > > > On Mon, 2019-12-02 at 20:51 +, Vincenzo Maffione wrote: > > > > Author: vmaffione > > > > Date: Mon Dec 2 20:51:46 2019 > > > > New Revision: 355301 > > > > URL: https://svnweb.freebsd.org/changeset/base/355301 > > > > > > >

Re: svn commit: r355301 - head/usr.sbin/bhyve

2019-12-03 Thread John Baldwin
On 12/3/19 7:14 AM, Ian Lepore wrote: > On Mon, 2019-12-02 at 23:22 -0800, Rodney W. Grimes wrote: >>> On Mon, 2019-12-02 at 20:51 +, Vincenzo Maffione wrote: Author: vmaffione Date: Mon Dec 2 20:51:46 2019 New Revision: 355301 URL:

svn commit: r355349 - head/stand/lua

2019-12-03 Thread Kyle Evans
Author: kevans Date: Tue Dec 3 18:44:19 2019 New Revision: 355349 URL: https://svnweb.freebsd.org/changeset/base/355349 Log: lualoader: correct a typo from r354247 r354247 converted try_include to lfs + dofile with the loader.lua_path added just before. Fortunately, there was a

svn commit: r355343 - head/sys/mips/mips

2019-12-03 Thread Ryan Libby
Author: rlibby Date: Tue Dec 3 17:43:52 2019 New Revision: 355343 URL: https://svnweb.freebsd.org/changeset/base/355343 Log: mips busdma: bzero map on alloc Maps from the mips busdma dmamap_zone were not completely initialized. In particular, pagesneeded and pagesreserved were not

svn commit: r355344 - head/sys/sys

2019-12-03 Thread Ryan Libby
Author: rlibby Date: Tue Dec 3 17:43:57 2019 New Revision: 355344 URL: https://svnweb.freebsd.org/changeset/base/355344 Log: bitset: avoid pessimized code when bitset size is not constant We have a couple optimizations for when the bitset is known to be just one word. But with

svn commit: r355347 - head/stand/efi/libefi

2019-12-03 Thread Toomas Soome
Author: tsoome Date: Tue Dec 3 18:36:39 2019 New Revision: 355347 URL: https://svnweb.freebsd.org/changeset/base/355347 Log: loader: ReadKeyStrokeEx may return partial keystrokes In some systems we can receive no scancode nor unicodechar values. PR: 240760 Reported by:

svn commit: r355356 - head/sys/arm64/rockchip/clk

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 19:18:32 2019 New Revision: 355356 URL: https://svnweb.freebsd.org/changeset/base/355356 Log: arm64: rockchip: rl3399: Remove the ability to put the PLL in normal mode at boot RK3399 PLLs have three modes : - Normal, where they behave normally and their

Re: svn commit: r355102 - head/sys/netinet6

2019-12-03 Thread Gleb Smirnoff
Ryan, On Mon, Nov 25, 2019 at 10:25:10PM +, Ryan Libby wrote: R> Author: rlibby R> Date: Mon Nov 25 22:25:10 2019 R> New Revision: 355102 R> URL: https://svnweb.freebsd.org/changeset/base/355102 R> R> Log: R> in6_joingroup_locked: need if_addr_lock around in6m_disconnect_locked R> R>

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

2019-12-03 Thread Gleb Smirnoff
On Tue, Dec 03, 2019 at 12:59:18PM -0800, Ryan Libby wrote: R> > If I understand the change correct, now items from UMA_ZONE_NOFREE zones R> > will be trashed, too. That would undermine purpose of UMA_ZONE_NOFREE. R> > Of course the flag is a hack, but some systems rely on it working. R> > R> The

svn commit: r355360 - head/sys/dev/cpufreq

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 22:08:54 2019 New Revision: 355360 URL: https://svnweb.freebsd.org/changeset/base/355360 Log: cpufreq_dt: Do not attach the device if the cpu isn't present If we boot with hw.ncpu=X (available on arm and arm64 at least) we shouldn't attach the cpufreq driver

svn commit: r355361 - head/sys/dev/cpufreq

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 22:26:55 2019 New Revision: 355361 URL: https://svnweb.freebsd.org/changeset/base/355361 Log: cpufreq_dt: Do not fetch again hw.ncpu MD code already set the global variable mp_ncpus according to the tunable hw.ncpu so use the global variable directly.

svn commit: r355371 - in head/sys: kern sys ufs/ffs

2019-12-03 Thread Kirk McKusick
Author: mckusick Date: Tue Dec 3 23:07:09 2019 New Revision: 355371 URL: https://svnweb.freebsd.org/changeset/base/355371 Log: Currently the breadn_flags() and getblkx() interfaces are passed the vnode, logical block number, and size of data block that is being requested. They then use the

svn commit: r355373 - in head/sys: amd64/amd64 amd64/cloudabi32 amd64/cloudabi64 amd64/ia32 amd64/linux amd64/linux32 arm/arm arm/cloudabi32 arm64/arm64 arm64/cloudabi32 arm64/cloudabi64 arm64/linu...

2019-12-03 Thread John Baldwin
Author: jhb Date: Tue Dec 3 23:17:54 2019 New Revision: 355373 URL: https://svnweb.freebsd.org/changeset/base/355373 Log: Use uintptr_t instead of register_t * for the stack base. - Use ustringp for the location of the argv and environment strings and allow destp to travel further

svn commit: r355374 - head/sys/sparc64/sparc64

2019-12-03 Thread John Baldwin
Author: jhb Date: Tue Dec 3 23:20:19 2019 New Revision: 355374 URL: https://svnweb.freebsd.org/changeset/base/355374 Log: Pass 0 to __builtin_frame_address() to appease modern GCC. Modern versions of GCC warn about passing non-zero values to __builtin_frame_address(). Passing 1 is a

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

2019-12-03 Thread Gleb Smirnoff
Ryan, On Wed, Nov 27, 2019 at 07:49:56PM +, Ryan Libby wrote: R> Author: rlibby R> Date: Wed Nov 27 19:49:55 2019 R> New Revision: 355137 R> URL: https://svnweb.freebsd.org/changeset/base/355137 R> R> Log: R> uma: trash memory when ctor/dtor supplied too R> R> On INVARIANTS kernels,

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

2019-12-03 Thread Ryan Libby
On Tue, Dec 3, 2019 at 12:43 PM Gleb Smirnoff wrote: > > Ryan, > > On Wed, Nov 27, 2019 at 07:49:56PM +, Ryan Libby wrote: > R> Author: rlibby > R> Date: Wed Nov 27 19:49:55 2019 > R> New Revision: 355137 > R> URL: https://svnweb.freebsd.org/changeset/base/355137 > R> > R> Log: > R> uma:

svn commit: r355358 - in head/sys: arm/allwinner arm/allwinner/a64 arm/allwinner/a83t dev/gpio dev/hdmi dev/iicbus dev/uart mips/ingenic

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 21:05:33 2019 New Revision: 355358 URL: https://svnweb.freebsd.org/changeset/base/355358 Log: Remove "all rights reserved" from copyright for the file that Jared McNeill own. He gave me permission to do this. Modified: head/sys/arm/allwinner/a10_fb.c

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

2019-12-03 Thread Ian Lepore
On Tue, 2019-12-03 at 12:59 -0800, Ryan Libby wrote: > > +* XXX UMA_ZONE_OFFPAGE. All over freebsd we have cryptic XXX comments that have no meaning to anyone except whoever wrote them (and, I suspect, no meaning to those people either after a couple months have elapsed). To the degree

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

2019-12-03 Thread Ryan Libby
On Tue, Dec 3, 2019 at 1:12 PM Ian Lepore wrote: > > On Tue, 2019-12-03 at 12:59 -0800, Ryan Libby wrote: > > > +* XXX UMA_ZONE_OFFPAGE. > > All over freebsd we have cryptic XXX comments that have no meaning to > anyone except whoever wrote them (and, I suspect, no meaning to those >

svn commit: r355357 - in head: share/man/man4/man4.aarch64 share/man/man4/man4.arm sys/arm/allwinner sys/arm/allwinner/a10 sys/arm/allwinner/a13 sys/arm/allwinner/a20 sys/arm/allwinner/a31 sys/arm/...

2019-12-03 Thread Emmanuel Vadot
Author: manu Date: Tue Dec 3 21:00:45 2019 New Revision: 355357 URL: https://svnweb.freebsd.org/changeset/base/355357 Log: Remove "all rights reserved" from copyright for the file I own. Some of the files have both me and Jared McNeill and he gave me permission to remove it from his files

Re: svn commit: r355301 - head/usr.sbin/bhyve

2019-12-03 Thread Vincenzo Maffione
I see, thanks for the pointers. It looks like cfmakeraw() and tcsetattr() were what I was looking for. A bhyve-specific printf wrapper looks the right solution to me. I can try to sketch a patch for you guys to review, if that's useful. Cheers, Vincenzo Il giorno mar 3 dic 2019 alle ore 18:38

Re: svn commit: r355318 - head/sbin/newfs_msdos

2019-12-03 Thread Conrad Meyer
Hi Xin Li, Is there a reason to prefer exit() over returning from main? I have not surveyed the source tree, but I suspect most programs in base exit by returning from main rather than explicit exit(3). Thanks, Conrad On Mon, Dec 2, 2019 at 11:03 PM Xin LI wrote: > > Author: delphij > Date:

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

2019-12-03 Thread Conrad Meyer
Author: cem Date: Wed Dec 4 02:42:22 2019 New Revision: 355375 URL: https://svnweb.freebsd.org/changeset/base/355375 Log: x86: Add missed break to TAA status sysctl Just a typo that Coverity identified. Coverity also identified an unused store in the same functional area (x86 TAA

Re: svn commit: r355374 - head/sys/sparc64/sparc64

2019-12-03 Thread John Baldwin
On 12/3/19 3:20 PM, John Baldwin wrote: > Author: jhb > Date: Tue Dec 3 23:20:19 2019 > New Revision: 355374 > URL: https://svnweb.freebsd.org/changeset/base/355374 > > Log: > Pass 0 to __builtin_frame_address() to appease modern GCC. > > Modern versions of GCC warn about passing non-zero

svn commit: r355379 - head/usr.sbin/mergemaster

2019-12-03 Thread Bryan Drewery
Author: bdrewery Date: Wed Dec 4 03:44:50 2019 New Revision: 355379 URL: https://svnweb.freebsd.org/changeset/base/355379 Log: Run make in parallel. This is mostly targetting the 'installconfig' phase of 'distribution' which does a full tree walk. MFC after: 2 weeks Modified:

svn commit: r355378 - head/sys/powerpc/booke

2019-12-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 4 03:41:55 2019 New Revision: 355378 URL: https://svnweb.freebsd.org/changeset/base/355378 Log: powerpc/booke: Fix 32-bit Book-E SMP AP bringup r354266 changed the type of bp_kernload to vm_paddr_t in platform_mpc85xx.c, but not the variable itself in

Re: svn commit: r355379 - head/usr.sbin/mergemaster

2019-12-03 Thread O. Hartmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am Wed, 4 Dec 2019 03:44:50 + (UTC) Bryan Drewery schrieb: > Author: bdrewery > Date: Wed Dec 4 03:44:50 2019 > New Revision: 355379 > URL: https://svnweb.freebsd.org/changeset/base/355379 > > Log: > Run make in parallel. > > This is

svn commit: r355381 - head/usr.sbin/mergemaster

2019-12-03 Thread Bryan Drewery
Author: bdrewery Date: Wed Dec 4 04:01:53 2019 New Revision: 355381 URL: https://svnweb.freebsd.org/changeset/base/355381 Log: Use full path to sysctl(8) since /sbin is not in PATH. X-MFC-With: r355379 MFC after:2 weeks Modified: head/usr.sbin/mergemaster/mergemaster.sh

Re: svn commit: r355379 - head/usr.sbin/mergemaster

2019-12-03 Thread Bryan Drewery
On 12/3/2019 7:55 PM, O. Hartmann wrote: > Am Wed, 4 Dec 2019 03:44:50 + (UTC) > Bryan Drewery schrieb: > >> Author: bdrewery >> Date: Wed Dec 4 03:44:50 2019 >> New Revision: 355379 >> URL: https://svnweb.freebsd.org/changeset/base/355379 > >> Log: >> Run make in parallel. > >> This

svn commit: r355376 - head/secure/caroot/trusted

2019-12-03 Thread Kyle Evans
Author: kevans Date: Wed Dec 4 02:59:50 2019 New Revision: 355376 URL: https://svnweb.freebsd.org/changeset/base/355376 Log: caroot update to latest tip: one (1) addition, none (0) removed Added: - Entrust Root Certification Authority - G4 Added:

Re: svn commit: r355373 - in head/sys: amd64/amd64 amd64/cloudabi32 amd64/cloudabi64 amd64/ia32 amd64/linux amd64/linux32 arm/arm arm/cloudabi32 arm64/arm64 arm64/cloudabi32 arm64/cloudabi64 arm64/lin

2019-12-03 Thread Ganbold Tsagaankhuu
On Wed, Dec 4, 2019 at 7:18 AM John Baldwin wrote: > Author: jhb > Date: Tue Dec 3 23:17:54 2019 > New Revision: 355373 > URL: https://svnweb.freebsd.org/changeset/base/355373 > > Log: > Use uintptr_t instead of register_t * for the stack base. > > - Use ustringp for the location of the

svn commit: r355377 - head/sys/sys

2019-12-03 Thread Doug Moore
Author: dougm Date: Wed Dec 4 03:36:54 2019 New Revision: 355377 URL: https://svnweb.freebsd.org/changeset/base/355377 Log: Change the implementation of bit_ffc_area_at so that, in the worst case, the number of operations spent on each b-bit word is proportional to lg b rather than b.

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

2019-12-03 Thread Mateusz Guzik
On 12/2/19, John Baldwin wrote: > On 11/30/19 11:33 AM, Mateusz Guzik wrote: >> Author: mjg >> Date: Sat Nov 30 19:33:02 2019 >> New Revision: 355241 >> URL: https://svnweb.freebsd.org/changeset/base/355241 >> >> Log: >> smp: cast the read in quiesce_all_critical through void * >> >> Fixes

svn commit: r355380 - head/sys/powerpc/booke

2019-12-03 Thread Justin Hibbits
Author: jhibbits Date: Wed Dec 4 03:51:30 2019 New Revision: 355380 URL: https://svnweb.freebsd.org/changeset/base/355380 Log: powerpc/booke: Fix some formatting errors in debug printfs Use the right formats for the types given (vm_offset_t and vm_size_t are both uint32_t on 32-bit