Re: svn commit: r366169 - head/sys/mips/include

2020-09-25 Thread Warner Losh
On Fri, Sep 25, 2020 at 5:05 PM Jessica Clarke wrote: > On 26 Sep 2020, at 00:01, Alexander Richardson > wrote: > > > > > > On Fri, 25 Sep 2020, 20:04 Justin Hibbits, wrote: > > Author: jhibbits > > Date: Fri Sep 25 19:04:03 2020 > > New Revision: 366169 > > URL:

svn commit: r366181 - head

2020-09-25 Thread Warner Losh
Author: imp Date: Sat Sep 26 04:06:16 2020 New Revision: 366181 URL: https://svnweb.freebsd.org/changeset/base/366181 Log: fix typo imorted -> imported. Noticed by: Maigurs Stalidzans Modified: head/UPDATING Modified: head/UPDATING

Re: svn commit: r366169 - head/sys/mips/include

2020-09-25 Thread Jessica Clarke
On 26 Sep 2020, at 00:01, Alexander Richardson wrote: > > > On Fri, 25 Sep 2020, 20:04 Justin Hibbits, wrote: > Author: jhibbits > Date: Fri Sep 25 19:04:03 2020 > New Revision: 366169 > URL: https://svnweb.freebsd.org/changeset/base/366169 > > Log: > mips: Fix compat32 library builds from

Re: svn commit: r366169 - head/sys/mips/include

2020-09-25 Thread Alexander Richardson
On Fri, 25 Sep 2020, 20:04 Justin Hibbits, wrote: > Author: jhibbits > Date: Fri Sep 25 19:04:03 2020 > New Revision: 366169 > URL: https://svnweb.freebsd.org/changeset/base/366169 > > Log: > mips: Fix compat32 library builds from r366162 > > Re-add the a_ptr and a_fcn fields to

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Mateusz Guzik
Perhaps this is a leftover from the installer (or some version of it anyway), i.e. this might have been happening in the past but likely does not now. fwiw I just exported / over nfs in a vm, /dev is empty On 9/25/20, Ian Lepore wrote: > On Fri, 2020-09-25 at 20:48 +0100, Edward Tomasz

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Ian Lepore
On Fri, 2020-09-25 at 20:48 +0100, Edward Tomasz Napierała wrote: > > On 25 Sep 2020, at 19:12, Ian Lepore wrote: > > [..] > > > (A question that occurs to me: could it be that the files you've > > seen > > got created at shutdown after devfs was unmounted, rather than at > > startup? I don't

svn commit: r366175 - head/sys/cam/scsi

2020-09-25 Thread John Baldwin
Author: jhb Date: Fri Sep 25 21:19:56 2020 New Revision: 366175 URL: https://svnweb.freebsd.org/changeset/base/366175 Log: Revert most of r360179. I had failed to notice that sgsendccb() was using cam_periph_mapmem() and thus was not passing down user pointers directly to drivers. In

svn commit: r366173 - head/sys/sys

2020-09-25 Thread Warner Losh
Author: imp Date: Fri Sep 25 20:51:07 2020 New Revision: 366173 URL: https://svnweb.freebsd.org/changeset/base/366173 Log: Adjustments to includes for openzfs in _STANDALONE Allow the necessary parts of systm.h to be visible in the _STANDALONE environnment. Limit the reset to only being

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

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 20:27:36 2020 New Revision: 366171 URL: https://svnweb.freebsd.org/changeset/base/366171 Log: Fix mips64 build Original patch was against FreeBSD 12, and a test compile wasn't run against head. md_tls_tcb_offset field was moved from mdthread to mdproc

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Edward Tomasz Napierała
> On 25 Sep 2020, at 19:12, Ian Lepore wrote: [..] > (A question that occurs to me: could it be that the files you've seen > got created at shutdown after devfs was unmounted, rather than at > startup? I don't know enough about the shutdown sequence to know > whether that's possible.) Thing

svn commit: r366169 - head/sys/mips/include

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 19:04:03 2020 New Revision: 366169 URL: https://svnweb.freebsd.org/changeset/base/366169 Log: mips: Fix compat32 library builds from r366162 Re-add the a_ptr and a_fcn fields to Elf32_Auxinfo. MFC after:1 week Sponsored by: Juniper Networks,

svn commit: r366168 - head/sys/sys

2020-09-25 Thread Warner Losh
Author: imp Date: Fri Sep 25 19:02:49 2020 New Revision: 366168 URL: https://svnweb.freebsd.org/changeset/base/366168 Log: Dont let kernel and standalone both be defined at the same time _KERNEL and _STANDALONE are different things. They cannot both be true at the same time. If things

svn commit: r366167 - head/sys/netgraph

2020-09-25 Thread Mark Johnston
Author: markj Date: Fri Sep 25 18:55:50 2020 New Revision: 366167 URL: https://svnweb.freebsd.org/changeset/base/366167 Log: ng_l2tp: Fix callout synchronization in the rexmit timeout handler A received control packet may cause the transmit queue to be flushed, in which case

svn commit: r366164 - head/usr.sbin/efivar

2020-09-25 Thread Warner Losh
Author: imp Date: Fri Sep 25 18:20:41 2020 New Revision: 366164 URL: https://svnweb.freebsd.org/changeset/base/366164 Log: Tweak output of the loader variable When the DEVICE_PATH is <= 4 that means it's effectively empty. I have a laptop that has a BIOS that likes to generate these:

svn commit: r366165 - head/usr.sbin/efivar

2020-09-25 Thread Warner Losh
Author: imp Date: Fri Sep 25 18:20:45 2020 New Revision: 366165 URL: https://svnweb.freebsd.org/changeset/base/366165 Log: Comment out bogus command line entry Linux implements -d to mean --print-decimal. We don't implement that and use -d for --device-path. Note that. Modified:

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Ian Lepore
On Fri, 2020-09-25 at 10:55 -0700, Rodney W. Grimes wrote: > > I was under the impression from previous reading and kib's response > > that this is a complete non-issue, there's no way you can go > > multi-user without a mounted /dev and we go to somewhat great > > lengths to make sure we're good.

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Rodney W. Grimes
> On Thu, Sep 24, 2020 at 3:08 AM Stefan Esser wrote: > > > > Am 24.09.20 um 08:54 schrieb Warner Losh: > > > > > > > > > On Thu, Sep 24, 2020 at 12:41 AM Stefan Esser > > > wrote: > > > > > > Am 23.09.20 um 19:23 schrieb Warner Losh> But for this issue, we're > > >

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Rodney W. Grimes
> Am 24.09.20 um 08:54 schrieb Warner Losh: > > > > > > On Thu, Sep 24, 2020 at 12:41 AM Stefan Esser > > wrote: > > > > Am 23.09.20 um 19:23 schrieb Warner Losh> But for this issue, we're not > > mounting devfs early enough.? We should > > > fix that.

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Rodney W. Grimes
> On Thu, Sep 24, 2020 at 12:41 AM Stefan Esser wrote: > > > Am 23.09.20 um 19:23 schrieb Warner Losh> But for this issue, we're not > > mounting devfs early enough. We should > > > fix that. Removing /dev/null from the boot process likely is never going > > > to happen because we use it all

Re: svn commit: r365643 - head/bin/cp

2020-09-25 Thread Rodney W. Grimes
> On Wed, Sep 23, 2020 at 11:23:51AM -0600, Warner Losh wrote: > > On Wed, Sep 23, 2020, 10:56 AM Rodney W. Grimes > > wrote: > > > > > > cp is already fixed, people are still feeling the fallout of being > > > > within those revisions and needing to bootstrap their own cp. We can > > > > reduce

svn commit: r366162 - in head/sys/mips: include mips

2020-09-25 Thread Justin Hibbits
Author: jhibbits Date: Fri Sep 25 17:13:45 2020 New Revision: 366162 URL: https://svnweb.freebsd.org/changeset/base/366162 Log: Fix compat32 on mips64 Summary: Two bugs: * Elf32_Auxinfo is broken, using pointers in the union, which are 64-bits not 32. * freebsd32_sysarch()

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

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 16:44:01 2020 New Revision: 366161 URL: https://svnweb.freebsd.org/changeset/base/366161 Log: Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it may be used as registe

svn commit: r366159 - head/tests/sys/netinet

2020-09-25 Thread Olivier Cochard
Author: olivier (ports committer) Date: Fri Sep 25 16:02:13 2020 New Revision: 366159 URL: https://svnweb.freebsd.org/changeset/base/366159 Log: Enable SO_LINGER to the so_reuseport_lb_test regression tests, preventing many sockets in TIME_WAIT state at the end of the test. PR:

svn commit: r366156 - in head/sys/dev: extres/syscon fdt

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 13:52:31 2020 New Revision: 366156 URL: https://svnweb.freebsd.org/changeset/base/366156 Log: Correctly handle nodes compatible with "syscon", "simple-bus". Syscon can also have child nodes that share a registration file with it. To do this correctly, follow

svn commit: r366150 - head/sys/netinet

2020-09-25 Thread Richard Scheffenegger
Author: rscheff Date: Fri Sep 25 10:38:19 2020 New Revision: 366150 URL: https://svnweb.freebsd.org/changeset/base/366150 Log: TCP: send full initial window when timestamps are in use The fastpath in tcp_output tries to send out full segments, and avoid sending partial segments by

svn commit: r366149 - head/sys/netinet/cc

2020-09-25 Thread Richard Scheffenegger
Author: rscheff Date: Fri Sep 25 10:23:14 2020 New Revision: 366149 URL: https://svnweb.freebsd.org/changeset/base/366149 Log: TCP newreno: improve after_idle ssthresh Adjust ssthresh in after_idle to the maximum of the prior ssthresh, or 3/4 of the prior cwnd. See RFC2861 section 2

svn commit: r366148 - head/contrib/nvi/man

2020-09-25 Thread Fernando Apesteguía
Author: fernape (ports committer) Date: Fri Sep 25 10:20:12 2020 New Revision: 366148 URL: https://svnweb.freebsd.org/changeset/base/366148 Log: vi(1): Add URL to the vi/ex reference manual in the man page Reported in PR 241985 The manual page references the "vi/ex reference manual"

svn commit: r366147 - in head/sys: amd64/linux amd64/linux32 arm/linux arm64/linux compat/cloudabi32 compat/cloudabi64 compat/freebsd32 i386/linux kern sys

2020-09-25 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Sep 25 10:05:38 2020 New Revision: 366147 URL: https://svnweb.freebsd.org/changeset/base/366147 Log: Regen after r366145. Sponsored by: DARPA Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_sysent.c

svn commit: r366146 - head/sys/dev/fdt

2020-09-25 Thread Michal Meloun
Author: mmel Date: Fri Sep 25 09:56:50 2020 New Revision: 366146 URL: https://svnweb.freebsd.org/changeset/base/366146 Log: Make simplebus friendlier for subclassing. MFC after:1 week Modified: head/sys/dev/fdt/simplebus.c head/sys/dev/fdt/simplebus.h Modified:

svn commit: r366145 - head/sys/tools

2020-09-25 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Sep 25 09:34:00 2020 New Revision: 366145 URL: https://svnweb.freebsd.org/changeset/base/366145 Log: Make makesyscalls.lua initialize 'struct sysent' entries using c99 designated initializers. This makes it easier to modify 'struct sysent' layout. Reviewed by:

svn commit: r366144 - head/usr.sbin/pwm

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:55:08 2020 New Revision: 366144 URL: https://svnweb.freebsd.org/changeset/base/366144 Log: pwm(8): fix potential duty overflow, use unsigneds for period and duty For a long period value and the duty specified as a percentage, there could be an overflow.

svn commit: r366143 - head/usr.sbin/pwm

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:54:38 2020 New Revision: 366143 URL: https://svnweb.freebsd.org/changeset/base/366143 Log: pwm(8): do not exit with failure after successfully reading configuration MFC after:1 week Modified: head/usr.sbin/pwm/pwm.c Modified: head/usr.sbin/pwm/pwm.c

Re: svn commit: r366142 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
On 25/09/2020 10:41, Andriy Gapon wrote: > [*] At the same time I must note that the KPI provides for maximum > period of about 4 seconds (2^32 nanoseconds). Also, the KPI does not provide a way to invert active level of which some controllers are capable. -- Andriy Gapon

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:41:51 2020 New Revision: 366142 URL: https://svnweb.freebsd.org/changeset/base/366142 Log: aw_pwm: add a check and some comments related to long periods The hardware supports periods as long as 196 seconds[*] when using the maximal prescaling of 72000 and

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:26 2020 New Revision: 366140 URL: https://svnweb.freebsd.org/changeset/base/366140 Log: aw_pwm: fix programming of the period The programmed value is biased by one: 0 means 1 cycle, 1 means 2 cycles, etc. MFC after:3 weeks Modified:

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:56 2020 New Revision: 366141 URL: https://svnweb.freebsd.org/changeset/base/366141 Log: aw_pwm: ensure sane configuration, just in case Make sure that the hardware is configured to cycle mode and that the bypass is disabled. MFC after:2 weeks

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:02 2020 New Revision: 366139 URL: https://svnweb.freebsd.org/changeset/base/366139 Log: aw_pwm: fix selection of the prescaler Prescaling divides the frequency, not multiplies it. MFC after:2 weeks Modified: head/sys/arm/allwinner/aw_pwm.c

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:39:41 2020 New Revision: 366138 URL: https://svnweb.freebsd.org/changeset/base/366138 Log: aw_pwm: remove the busy bit check The bit seems to always be set on my hardware, H3. However, programming the hardware seems to work just fine. MFC after:3

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

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:39:14 2020 New Revision: 366137 URL: https://svnweb.freebsd.org/changeset/base/366137 Log: aw_pwm: trivially add H3 support MFC after:2 weeks Modified: head/sys/arm/allwinner/aw_pwm.c Modified: head/sys/arm/allwinner/aw_pwm.c