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

2020-11-17 Thread Konstantin Belousov
On Tue, Nov 17, 2020 at 03:36:31PM +0100, Mateusz Guzik wrote: > On 11/17/20, Konstantin Belousov wrote: > > On Tue, Nov 17, 2020 at 04:15:12AM +0100, Mateusz Guzik wrote: > >> On 11/17/20, Konstantin Belousov wrote: > >> > On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: > >> >> Au

svn commit: r367785 - in head/sys: fs/nfs nfsserver

2020-11-17 Thread Alan Somers
Author: asomers Date: Wed Nov 18 04:35:49 2020 New Revision: 367785 URL: https://svnweb.freebsd.org/changeset/base/367785 Log: nfs: Mark unused statistics variable as reserved FreeBSD's NFS exporter has long exported some unused statistics fields. Revision r366992 removed them from nfssta

svn commit: r367784 - head/sys/dev/isp

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 03:43:03 2020 New Revision: 367784 URL: https://svnweb.freebsd.org/changeset/base/367784 Log: Move ecmd memory allocation itto separate DMA tag. Ecmd memory is not directly related to the request queue, only referenced from it sometimes in target mode. Separa

svn commit: r367783 - head/sys/kern

2020-11-17 Thread Kyle Evans
Author: kevans Date: Wed Nov 18 03:30:31 2020 New Revision: 367783 URL: https://svnweb.freebsd.org/changeset/base/367783 Log: _umtx_op: fix robust lists after r367744 A copy-pasto left us copying in 24-bytes at the address of the rb pointer instead of the intended target. Reported by

svn commit: r367782 - head/sys/dev/isp

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 02:54:05 2020 New Revision: 367782 URL: https://svnweb.freebsd.org/changeset/base/367782 Log: Remove bus_dma locking/sleeping when not needed. MFC after:1 month Modified: head/sys/dev/isp/isp_pci.c Modified: head/sys/dev/isp/isp_pci.c ===

svn commit: r367781 - head/sys/dev/isp

2020-11-17 Thread Alexander Motin
Author: mav Date: Wed Nov 18 02:12:51 2020 New Revision: 367781 URL: https://svnweb.freebsd.org/changeset/base/367781 Log: Don't allocate full XCMD_SIZE (512 bytes) on stack. We need only 24 bytes (fcp_rsp_iu_t) there for isp_put_fcp_rsp_iu(). MFC after:1 month Modified: head/sy

svn commit: r367779 - head/sys/contrib/openzfs/cmd/zpool

2020-11-17 Thread Cy Schubert
Author: cy Date: Wed Nov 18 01:18:45 2020 New Revision: 367779 URL: https://svnweb.freebsd.org/changeset/base/367779 Log: Restore identification of VDEVs using non-native block size. NAME STATE READ WRITE CKSUM dsk02ONLINE 0 0 0 mirror-0

Re: svn commit: r367692 - head/sys/sys

2020-11-17 Thread John Baldwin
On 11/17/20 2:37 PM, Warner Losh wrote: > On Tue, Nov 17, 2020 at 3:18 PM John Baldwin wrote: > >> On 11/14/20 2:34 PM, Warner Losh wrote: >>> true, but a version bump forces that and versions are cheap enough... >> >> Strictly speaking, version bumps don't force anything to recompile, they >> ju

Re: svn commit: r367678 - head/usr.sbin/freebsd-update

2020-11-17 Thread Ian Lepore
On Tue, 2020-11-17 at 14:41 -0800, Rodney W. Grimes wrote: > > On Sat, Nov 14, 2020 at 11:20 AM Mateusz Piotrowski < > > 0...@freebsd.org> wrote: > > > > > > Hello Rodney, > > > > > > On 11/14/20 4:59 PM, Rodney W. Grimes wrote: > > > > > Author: 0mp (doc,ports committer) > > > > > Date: Sat Nov

Re: svn commit: r367678 - head/usr.sbin/freebsd-update

2020-11-17 Thread Mateusz Piotrowski
On 11/17/20 11:41 PM, Rodney W. Grimes wrote: On Sat, Nov 14, 2020 at 11:20 AM Mateusz Piotrowski <0...@freebsd.org> wrote: On 11/14/20 4:59 PM, Rodney W. Grimes wrote: Author: 0mp (doc,ports committer) Date: Sat Nov 14 13:07:41 2020 New Revision: 367678 URL: https://svnweb.freebsd.org/changese

Re: svn commit: r367678 - head/usr.sbin/freebsd-update

2020-11-17 Thread Rodney W. Grimes
> On Sat, Nov 14, 2020 at 11:20 AM Mateusz Piotrowski <0...@freebsd.org> wrote: > > > > Hello Rodney, > > > > On 11/14/20 4:59 PM, Rodney W. Grimes wrote: > > >> Author: 0mp (doc,ports committer) > > >> Date: Sat Nov 14 13:07:41 2020 > > >> New Revision: 367678 > > >> URL: https://svnweb.freebsd.or

Re: svn commit: r367692 - head/sys/sys

2020-11-17 Thread Warner Losh
On Tue, Nov 17, 2020 at 3:18 PM John Baldwin wrote: > On 11/14/20 2:34 PM, Warner Losh wrote: > > true, but a version bump forces that and versions are cheap enough... > > Strictly speaking, version bumps don't force anything to recompile, they > just ensure that newer modules won't load on older

Re: svn commit: r367692 - head/sys/sys

2020-11-17 Thread Cy Schubert
In message <0015bc22-4568-93cc-5c77-e97c4f5e2...@freebsd.org>, John Baldwin wri tes: > On 11/14/20 2:34 PM, Warner Losh wrote: > > true, but a version bump forces that and versions are cheap enough... > > Strictly speaking, version bumps don't force anything to recompile, they > just ensure that n

Re: svn commit: r367692 - head/sys/sys

2020-11-17 Thread John Baldwin
On 11/14/20 2:34 PM, Warner Losh wrote: > true, but a version bump forces that and versions are cheap enough... Strictly speaking, version bumps don't force anything to recompile, they just ensure that newer modules won't load on older kernels. In this case, the change to sys/ucred.h will result

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

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 21:20:11 2020 New Revision: 367778 URL: https://svnweb.freebsd.org/changeset/base/367778 Log: linux(4) clone(2): Correctly handle CLONE_FS and CLONE_FILES The two flags are distinct and it is impossible to correctly handle clone(2) without the assistance of fo

svn commit: r367777 - in head: lib/libkvm lib/libprocstat sys/compat/cloudabi sys/fs/fuse sys/fs/unionfs sys/kern sys/sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 21:14:13 2020 New Revision: 36 URL: https://svnweb.freebsd.org/changeset/base/36 Log: Split out cwd/root/jail, cmask state from filedesc table No functional change intended. Tracking these structures separately for each proc enables future work to

svn commit: r367776 - in head: share/man/man4 sys/compat/linux sys/kern sys/sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 20:01:21 2020 New Revision: 367776 URL: https://svnweb.freebsd.org/changeset/base/367776 Log: unix(4): Enhance LOCAL_CREDS_PERSISTENT ABI As this ABI is still fresh (r367287), let's correct some mistakes now: - Version the structure to allow for future chan

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

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:56:47 2020 New Revision: 367775 URL: https://svnweb.freebsd.org/changeset/base/367775 Log: linprocfs(5): Add rudimentary /proc//mountinfo This is used by some Linux programs using filehandles (r367773) to locate the mountpoint for a given fsid. Differe

svn commit: r367774 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:53:59 2020 New Revision: 367774 URL: https://svnweb.freebsd.org/changeset/base/367774 Log: 'make sysent' for r367773 X-MFC-With: r367773 Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_sysent.c head/sys/amd64/linux/linux_systr

svn commit: r367773 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux kern sys

2020-11-17 Thread Conrad Meyer
Author: cem Date: Tue Nov 17 19:51:47 2020 New Revision: 367773 URL: https://svnweb.freebsd.org/changeset/base/367773 Log: linux(4): Implement name_to_handle_at(), open_by_handle_at() They are similar to our getfhat(2) and fhopen(2) syscalls. Differential Revision:https://revie

Re: svn commit: r367744 - in head/sys: compat/freebsd32 kern sys

2020-11-17 Thread Brooks Davis
On Tue, Nov 17, 2020 at 11:59:50AM -0600, Kyle Evans wrote: > On Tue, Nov 17, 2020 at 11:11 AM Brooks Davis wrote: > > > > On Tue, Nov 17, 2020 at 03:36:58AM +, Kyle Evans wrote: > > > Modified: head/sys/compat/freebsd32/freebsd32.h > > > ===

svn commit: r367772 - in head: share/man/man4 sys/dev/usb sys/dev/usb/serial

2020-11-17 Thread Ed Maste
Author: emaste Date: Tue Nov 17 18:28:20 2020 New Revision: 367772 URL: https://svnweb.freebsd.org/changeset/base/367772 Log: uplcom: add ATen/Prolific USB-232 Controller D USB ID PR: 251166 Submitted by: marcus MFC after:2 weeks Modified: head/share/man/man4/uplcom.4

Re: svn commit: r367744 - in head/sys: compat/freebsd32 kern sys

2020-11-17 Thread Kyle Evans
On Tue, Nov 17, 2020 at 11:11 AM Brooks Davis wrote: > > On Tue, Nov 17, 2020 at 03:36:58AM +, Kyle Evans wrote: > > Modified: head/sys/compat/freebsd32/freebsd32.h > > == > > --- head/sys/compat/freebsd32/freebsd32.h

Re: svn commit: r367771 - head/sbin/nvmecontrol

2020-11-17 Thread Jessica Clarke
On 17 Nov 2020, at 17:29, Jessica Clarke wrote: > On 17 Nov 2020, at 17:12, Adrian Chadd wrote: >> @@ -175,8 +176,7 @@ update_firmware(int fd, uint8_t *payload, int32_t payl >> errx(EX_OSERR, "unable to malloc %zd bytes", >> (size_t)max_xfer_size); >> >> while (resid > 0) { >>

Re: svn commit: r367771 - head/sbin/nvmecontrol

2020-11-17 Thread Jessica Clarke
On 17 Nov 2020, at 17:12, Adrian Chadd wrote: > @@ -175,8 +176,7 @@ update_firmware(int fd, uint8_t *payload, int32_t payl > errx(EX_OSERR, "unable to malloc %zd bytes", > (size_t)max_xfer_size); > > while (resid > 0) { > - size = (resid >= (int32_t)max_xfer_size)

Re: svn commit: r367695 - in head/sys: kern sys

2020-11-17 Thread John Baldwin
On 11/14/20 11:22 AM, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 14 19:22:02 2020 > New Revision: 367695 > URL: https://svnweb.freebsd.org/changeset/base/367695 > > Log: > thread: batch credential freeing > > Modified: > head/sys/kern/kern_prot.c > head/sys/kern/kern_thread.c > he

Re: svn commit: r367694 - in head/sys: kern sys

2020-11-17 Thread John Baldwin
On 11/14/20 11:21 AM, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 14 19:21:46 2020 > New Revision: 367694 > URL: https://svnweb.freebsd.org/changeset/base/367694 > > Log: > thread: batch resource limit free calls > > Modified: > head/sys/kern/kern_resource.c > head/sys/kern/kern_thre

svn commit: r367771 - head/sbin/nvmecontrol

2020-11-17 Thread Adrian Chadd
Author: adrian Date: Tue Nov 17 17:12:28 2020 New Revision: 367771 URL: https://svnweb.freebsd.org/changeset/base/367771 Log: [nvmecontrol] Fix type signedness warning-to-error on gcc-6.4 This fixes a type signedness comparison warning-to-error on gcc-6.4. The ternary operation casts it r

svn commit: r367770 - head/sys/cddl/contrib/opensolaris/common/lz4

2020-11-17 Thread Adrian Chadd
Author: adrian Date: Tue Nov 17 17:11:07 2020 New Revision: 367770 URL: https://svnweb.freebsd.org/changeset/base/367770 Log: [cddl] Fix lz4 function definitions to not tri pup compile. This tripped up in llvm compilation on amd64 noting that lz4_init/lz4_fini were lacking in being previo

Re: svn commit: r367744 - in head/sys: compat/freebsd32 kern sys

2020-11-17 Thread Brooks Davis
On Tue, Nov 17, 2020 at 03:36:58AM +, Kyle Evans wrote: > Modified: head/sys/compat/freebsd32/freebsd32.h > == > --- head/sys/compat/freebsd32/freebsd32.h Tue Nov 17 03:34:01 2020 > (r367743) > +++ head/sys/

svn commit: r367769 - head/usr.bin/chpass

2020-11-17 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Tue Nov 17 16:54:12 2020 New Revision: 367769 URL: https://svnweb.freebsd.org/changeset/base/367769 Log: Partially revert r367756 (chpass(1) synopsis changes) Let's have two entries in the synopsis: - chpass now lists options which can be used for n

svn commit: r367768 - in head/sbin/nvmecontrol: . modules/wdc

2020-11-17 Thread Alexander Motin
Author: mav Date: Tue Nov 17 16:34:58 2020 New Revision: 367768 URL: https://svnweb.freebsd.org/changeset/base/367768 Log: Stop using NVME_MAX_XFER_SIZE constant. This constant depends on MAXPHYS and does not respect device capabilities. Use proper dynamic ioctl(NVME_GET_MAX_XFER_SIZE) in

svn commit: r367767 - head/sys/dev/extres/syscon

2020-11-17 Thread Emmanuel Vadot
Author: manu Date: Tue Nov 17 14:59:58 2020 New Revision: 367767 URL: https://svnweb.freebsd.org/changeset/base/367767 Log: syscon: Add syscon_get_by_ofw_node This allow to get a syscon node defined under a specific fdt node (which isn't always the device one). Modified: head/sys/dev/e

svn commit: r367766 - head/sys/arm/allwinner/clkng

2020-11-17 Thread Emmanuel Vadot
Author: manu Date: Tue Nov 17 14:58:30 2020 New Revision: 367766 URL: https://svnweb.freebsd.org/changeset/base/367766 Log: arm64: allwinner: Init the Display Engine clock In case u-boot was compiled without video support set the PLL to 432Mhz (which allow us to use most of the HDMI resol

svn commit: r367765 - head/sys/arm/allwinner/clkng

2020-11-17 Thread Emmanuel Vadot
Author: manu Date: Tue Nov 17 14:57:34 2020 New Revision: 367765 URL: https://svnweb.freebsd.org/changeset/base/367765 Log: arm: allwinner: Add DE2 Clock support for H3 SoC While here also enable the clock and deassert the reset Modified: head/sys/arm/allwinner/clkng/ccu_de2.c Modified:

svn commit: r367764 - in head/sys/contrib/vchiq/interface: compat vchiq_arm

2020-11-17 Thread Emmanuel Vadot
Author: manu Date: Tue Nov 17 14:41:23 2020 New Revision: 367764 URL: https://svnweb.freebsd.org/changeset/base/367764 Log: vchiq: Rename timer func so they do not conflict with linuxkpi Modified: head/sys/contrib/vchiq/interface/compat/vchi_bsd.c head/sys/contrib/vchiq/interface/compat/vch

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

2020-11-17 Thread Mateusz Guzik
On 11/17/20, Konstantin Belousov wrote: > On Tue, Nov 17, 2020 at 04:15:12AM +0100, Mateusz Guzik wrote: >> On 11/17/20, Konstantin Belousov wrote: >> > On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: >> >> Author: mjg >> >> Date: Mon Nov 16 03:09:18 2020 >> >> New Revision: 367713

Re: svn commit: r367763 - head/cddl/contrib/opensolaris/common/ctf

2020-11-17 Thread Jonathan T. Looney
On Tue, Nov 17, 2020 at 9:07 AM Jonathan T. Looney wrote: > Author: jtl > Date: Tue Nov 17 14:07:27 2020 > New Revision: 367763 > URL: https://svnweb.freebsd.org/changeset/base/367763 > > Log: > When copying types from one CTF container to another, ensure that we > always copy intrinsic data

svn commit: r367763 - head/cddl/contrib/opensolaris/common/ctf

2020-11-17 Thread Jonathan T. Looney
Author: jtl Date: Tue Nov 17 14:07:27 2020 New Revision: 367763 URL: https://svnweb.freebsd.org/changeset/base/367763 Log: When copying types from one CTF container to another, ensure that we always copy intrinsic data types before copying bitfields which are based on those types. This ensur

svn commit: r367762 - head/usr.sbin/bhyve

2020-11-17 Thread Peter Grehan
Author: grehan Date: Tue Nov 17 13:14:04 2020 New Revision: 367762 URL: https://svnweb.freebsd.org/changeset/base/367762 Log: Add legacy debug/test interfaces for kvm unit tests. Implement the legacy debug/test interfaces expected by KVM-unit-tests' realmode, emulator, and ioapic tests.

svn commit: r367761 - head/lib/msun/powerpc

2020-11-17 Thread Alfredo Dal'Ava Junior
Author: alfredo Date: Tue Nov 17 12:36:59 2020 New Revision: 367761 URL: https://svnweb.freebsd.org/changeset/base/367761 Log: [POWERPC] msun: fix incorrect flag in fesetexceptflag Fix incorrect mask being used when FE_INVALID bit is wanted by user. The problem was noticed thanks to msun

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

2020-11-17 Thread Alfredo Dal'Ava Junior
Author: alfredo Date: Tue Nov 17 12:33:12 2020 New Revision: 367760 URL: https://svnweb.freebsd.org/changeset/base/367760 Log: [POWERPC] fix signal race condition r367416 should have called save_fpu() before kern_sigprocmask to avoid race condition Thanks jhibbits and bdragon for poi

svn commit: r367759 - head/usr.bin/chpass

2020-11-17 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Tue Nov 17 12:04:29 2020 New Revision: 367759 URL: https://svnweb.freebsd.org/changeset/base/367759 Log: Add an example for the -s flag MFC after:2 weeks Modified: head/usr.bin/chpass/chpass.1 Modified: head/usr.bin/chpass/chpass.1 ===

svn commit: r367758 - in head/sys/powerpc: aim include powerpc

2020-11-17 Thread Leandro Lupori
Author: luporl Date: Tue Nov 17 11:36:31 2020 New Revision: 367758 URL: https://svnweb.freebsd.org/changeset/base/367758 Log: [PowerPC] Don't overwrite vm.pmap sysctl node After r367417, both mmu_oea64 and mmu_radix were defining the vm.pmap sysctl node, resulting in the later definition

Re: svn commit: r367756 - head/usr.bin/chpass

2020-11-17 Thread Mateusz Piotrowski
On 11/17/20 11:48 AM, Mateusz Piotrowski wrote: Author: 0mp (doc,ports committer) Date: Tue Nov 17 10:48:01 2020 New Revision: 367756 URL: https://svnweb.freebsd.org/changeset/base/367756 Log: Clean up the synopsis section & fix mandoc warnings The synopsis section had two very similar

svn commit: r367757 - head/usr.bin/chpass

2020-11-17 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Tue Nov 17 10:57:28 2020 New Revision: 367757 URL: https://svnweb.freebsd.org/changeset/base/367757 Log: Improve readability of the lists of options - Sort options alphabetically - Add missing arguments (e.g., "list" to -a) - Adjust the width of B

svn commit: r367756 - head/usr.bin/chpass

2020-11-17 Thread Mateusz Piotrowski
Author: 0mp (doc,ports committer) Date: Tue Nov 17 10:48:01 2020 New Revision: 367756 URL: https://svnweb.freebsd.org/changeset/base/367756 Log: Clean up the synopsis section & fix mandoc warnings The synopsis section had two very similar entries. The flags documented by the first one wer

svn commit: r367755 - head/sys/arm64/arm64

2020-11-17 Thread Andrew Turner
Author: andrew Date: Tue Nov 17 10:27:42 2020 New Revision: 367755 URL: https://svnweb.freebsd.org/changeset/base/367755 Log: Stop calling gic_v3_detach when we haven't called gic_v3_attach The former tries to dereference memory allocated by the latter. If counting the redistributor fails

Re: svn commit: r367754 - head/sys/arm64/arm64

2020-11-17 Thread Andrew Turner
> On 17 Nov 2020, at 10:17, Andrew Turner wrote: > > Author: andrew > Date: Tue Nov 17 10:17:18 2020 > New Revision: 367754 > URL: https://svnweb.freebsd.org/changeset/base/367754 > > Log: > Allow the GICv3 ACPI driver to attach to a GICv4 > > The same driver works on both, allow the driver

svn commit: r367754 - head/sys/arm64/arm64

2020-11-17 Thread Andrew Turner
Author: andrew Date: Tue Nov 17 10:17:18 2020 New Revision: 367754 URL: https://svnweb.freebsd.org/changeset/base/367754 Log: Allow the GICv3 ACPI driver to attach to a GICv4 The same driver works on both, allow the driver to attach to a GICv4 controller with the ACPI attachment. Rep