svn commit: r364186 - head/sbin/ifconfig

2020-08-12 Thread Eugene Grosbein
Author: eugen Date: Thu Aug 13 06:32:39 2020 New Revision: 364186 URL: https://svnweb.freebsd.org/changeset/base/364186 Log: ifconfig(8): plug memory leak after r361790 by me. MFC after:3 days Modified: head/sbin/ifconfig/ifconfig.c Modified: head/sbin/ifconfig/ifconfig.c ==

svn commit: r364185 - head/sys/cam/nvme

2020-08-12 Thread Alexander Motin
Author: mav Date: Thu Aug 13 02:32:46 2020 New Revision: 364185 URL: https://svnweb.freebsd.org/changeset/base/364185 Log: Fill device serial_num and device_id in NVMe XPT. It allows to report GEOM::lunid for nda(4) same as for nvd(4). Since NVMe now allows multiple LUs (namespaces) with

svn commit: r364182 - in head: etc/mtree lib/liblua

2020-08-12 Thread Ed Maste
Author: emaste Date: Thu Aug 13 00:19:05 2020 New Revision: 364182 URL: https://svnweb.freebsd.org/changeset/base/364182 Log: flua: initial support for "require" in the base system Use /usr not /usr/local for base system components. Use /usr/lib/flua and /usr/share/flua (not lua) for c

svn commit: r364181 - head/sys/riscv/riscv

2020-08-12 Thread John Baldwin
Author: jhb Date: Wed Aug 12 20:33:29 2020 New Revision: 364181 URL: https://svnweb.freebsd.org/changeset/base/364181 Log: Check that the frame pointer is within the current stack. This same check is used on other architectures. Previously this would permit a stack frame to unwind into a

svn commit: r364180 - in head/sys/riscv: include riscv

2020-08-12 Thread John Baldwin
Author: jhb Date: Wed Aug 12 20:29:49 2020 New Revision: 364180 URL: https://svnweb.freebsd.org/changeset/base/364180 Log: Use uintptr_t instead of uint64_t for pointers in stack frames. Reviewed by: mhorne Obtained from:CheriBSD Sponsored by: DARPA Differential Revision:

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

2020-08-12 Thread Alexander Motin
Author: mav Date: Wed Aug 12 20:05:43 2020 New Revision: 364179 URL: https://svnweb.freebsd.org/changeset/base/364179 Log: Report cpi->hba_* for nda(4) because why not. MFC after:1 week Modified: head/sys/dev/nvme/nvme_sim.c Modified: head/sys/dev/nvme/nvme_sim.c ===

svn commit: r364178 - head/sys/cam/nvme

2020-08-12 Thread Alexander Motin
Author: mav Date: Wed Aug 12 19:37:57 2020 New Revision: 364178 URL: https://svnweb.freebsd.org/changeset/base/364178 Log: Report proper stripesize for nda(4). Same as for nvd(4) report NPWG if present, otherise NOIOB. MFC after:1 week Modified: head/sys/cam/nvme/nvme_da.c Modi

svn commit: r364177 - head/sys/dev/nvd

2020-08-12 Thread Alexander Motin
Author: mav Date: Wed Aug 12 19:11:53 2020 New Revision: 364177 URL: https://svnweb.freebsd.org/changeset/base/364177 Log: Report attachment for nvd same as reported for nda. MFC after:1 week Modified: head/sys/dev/nvd/nvd.c Modified: head/sys/dev/nvd/nvd.c =

svn commit: r364176 - head/sys/riscv/include

2020-08-12 Thread John Baldwin
Author: jhb Date: Wed Aug 12 18:45:36 2020 New Revision: 364176 URL: https://svnweb.freebsd.org/changeset/base/364176 Log: Correct padding length for RISC-V PCPU data. There was an additional 7 bytes of compiler-inserted padding at the end of the structure visible via 'ptype /o' in gdb.

svn commit: r364174 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 17:27:24 2020 New Revision: 364174 URL: https://svnweb.freebsd.org/changeset/base/364174 Log: Use env pwd instead of pwd in crunchgen.c In r364166 I changed /bin/pwd to pwd, but pwd can be shell builtin that may not correctly return a real path. To ens

svn commit: r364172 - head/sys/net

2020-08-12 Thread Mitchell Horne
Author: mhorne Date: Wed Aug 12 16:43:20 2020 New Revision: 364172 URL: https://svnweb.freebsd.org/changeset/base/364172 Log: Correctly set error in rt_mpath_unlink It is possible for rn_delete() to return NULL. If this happens, then set *perror to ESRCH, as is done in the rest of the fun

Re: svn commit: r364166 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Rodney W. Grimes
> On 12 Aug 2020, at 17:10, Rodney W. Grimes wrote: > > > >> Author: arichardson > >> Date: Wed Aug 12 15:49:06 2020 > >> New Revision: 364166 > >> URL: https://svnweb.freebsd.org/changeset/base/364166 > >> > >> Log: > >> Fix crunchgen usage of mkstemp() > >> > >> On Glibc systems mkstemp can

Re: svn commit: r364166 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Jessica Clarke
On 12 Aug 2020, at 17:10, Rodney W. Grimes wrote: > > [ Charset UTF-8 unsupported, converting... ] >> Author: arichardson >> Date: Wed Aug 12 15:49:06 2020 >> New Revision: 364166 >> URL: https://svnweb.freebsd.org/changeset/base/364166 >> >> Log: >> Fix crunchgen usage of mkstemp() >> >> On

Re: svn commit: r364166 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: arichardson > Date: Wed Aug 12 15:49:06 2020 > New Revision: 364166 > URL: https://svnweb.freebsd.org/changeset/base/364166 > > Log: > Fix crunchgen usage of mkstemp() > > On Glibc systems mkstemp can only be used once with the same tem

svn commit: r364168 - head/sys/compat/linprocfs

2020-08-12 Thread Mark Johnston
Author: markj Date: Wed Aug 12 16:08:44 2020 New Revision: 364168 URL: https://svnweb.freebsd.org/changeset/base/364168 Log: linprocfs: Fix some inaccuracies in meminfo. - Fill out MemFree correctly. Delete an ancient comment suggesting that we don't want to advertise the true quantity

svn commit: r364167 - head/stand/common

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 15:49:10 2020 New Revision: 364167 URL: https://svnweb.freebsd.org/changeset/base/364167 Log: Fix stand/newvers.sh with zsh in sh mode When building on macOS with sh==zsh, newvers.sh was producing an unterminated string literal due to \\n being turned

svn commit: r364166 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 15:49:06 2020 New Revision: 364166 URL: https://svnweb.freebsd.org/changeset/base/364166 Log: Fix crunchgen usage of mkstemp() On Glibc systems mkstemp can only be used once with the same template string since it will be modified in-place and no longer

svn commit: r364165 - head/sys/net

2020-08-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Aug 12 14:45:31 2020 New Revision: 364165 URL: https://svnweb.freebsd.org/changeset/base/364165 Log: iflib: netmap: improve rxsync to support IFLIB_HAS_RXCQ For drivers with IFLIB_HAS_RXCQ set, there is a separate completion queue. In this case, the netmap rxsy

svn commit: r364164 - head/sys/net

2020-08-12 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Aug 12 14:17:38 2020 New Revision: 364164 URL: https://svnweb.freebsd.org/changeset/base/364164 Log: iflib: refactor netmap_fl_refill and fix off-by-one issue First, fix the initialization of the fl->ifl_rxd_idxs array, which was affected by an off-by-one bug.

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 11:37:28 2020 New Revision: 364155 URL: https://svnweb.freebsd.org/changeset/base/364155 Log: hook cp2112.4 to the build Reported by: 0mp MFC after:1 week X-MFC with: r364144 Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Mak

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 11:36:09 2020 New Revision: 364154 URL: https://svnweb.freebsd.org/changeset/base/364154 Log: hook gpiokeys.4 to the build Reported by: 0mp MFC after:3 days X-MFC with: r363905 Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/M

svn commit: r364153 - in head: lib/libpmc sys/arm64/include sys/dev/hwpmc sys/sys

2020-08-12 Thread Andrew Turner
Author: andrew Date: Wed Aug 12 10:17:17 2020 New Revision: 364153 URL: https://svnweb.freebsd.org/changeset/base/364153 Log: Add support for Cortex-A76/Neoverse-N1 to hwpmc This adds support for the Cortex-A76 and Neoverse-N1 PMU counters to pmc. While here add more PMCR_IDCODE values

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:57:28 2020 New Revision: 364149 URL: https://svnweb.freebsd.org/changeset/base/364149 Log: aw_cir: in the pulse encoding the actual length is one greater than value While here change type of some variables from long to int, it's sufficient. Also, add length

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:56:21 2020 New Revision: 364148 URL: https://svnweb.freebsd.org/changeset/base/364148 Log: aw_cir: lower activation threshold to support NECx protocol In NECx the leading mark has length of 8T as opposed to 16T in NEC, where T is 562.5 us. So, 4.5 ms. O

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:52:39 2020 New Revision: 364147 URL: https://svnweb.freebsd.org/changeset/base/364147 Log: aw_cir: minor cleanups MFC after:1 week Modified: head/sys/arm/allwinner/aw_cir.c Modified: head/sys/arm/allwinner/aw_cir.c

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:52:12 2020 New Revision: 364146 URL: https://svnweb.freebsd.org/changeset/base/364146 Log: aw_cir: add support for allwinner,sun6i-a31-ir (found, e.g., on h3) MFC after:1 week Modified: head/sys/arm/allwinner/aw_cir.c Modified: head/sys/arm/allwinner/

svn commit: r364145 - head/sys/dev/gpio

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:49:25 2020 New Revision: 364145 URL: https://svnweb.freebsd.org/changeset/base/364145 Log: gpiokeys: add evdev support Only linux,code is supported as it maps 1:1 to evdev key codes. No reverse mapping for freebsd,code yet. Reviewed by: wulf MFC aft

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

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:42:05 2020 New Revision: 364144 URL: https://svnweb.freebsd.org/changeset/base/364144 Log: add a manual page for cp2112 MFC after:1 week Added: head/share/man/man4/cp2112.4 (contents, props changed) Added: head/share/man/man4/cp2112.4 ==

svn commit: r364143 - head/sys/dev/usb/misc

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:07:07 2020 New Revision: 364143 URL: https://svnweb.freebsd.org/changeset/base/364143 Log: cp2112: a number of cleanups and improvements - hoist all request / response structures from function level to top level - replace magic numeric literals with constan