svn commit: r366104 - head/sys/modules/mrsas

2020-09-24 Thread Warner Losh
Author: imp Date: Thu Sep 24 07:10:34 2020 New Revision: 366104 URL: https://svnweb.freebsd.org/changeset/base/366104 Log: Don't define _STANDALONE when building kernel modules. _STANDALONE is only for the bootloader, not kernel modules. Remove it from the build. This was harmless

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

2020-09-24 Thread 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. Removing /dev/null from the boot process likely is never going > > to happen because we use

svn commit: r366101 - head/sys/sys

2020-09-24 Thread Warner Losh
Author: imp Date: Thu Sep 24 06:40:35 2020 New Revision: 366101 URL: https://svnweb.freebsd.org/changeset/base/366101 Log: Create a standalone version of sys/malloc.h The ZSTD support for the boot loader will need to include files that use the kernel's malloc interface. Create a

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020 at 12:27 PM wrote: > Warner Losh wrote: > > Author: imp > > Date: Tue Sep 22 23:01:53 2020 > > New Revision: 366025 > > URL: https://svnweb.freebsd.org/changeset/base/366025 > > > > Log: > >Document devctl_safe_quote_sb >

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread Warner Losh
sb.9 > > > == > > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > > +++ head/share/man/man9/devctl_safe_quote_sb.9Tue Sep 22 > 23:01:53 2020(r

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

2020-09-23 Thread Warner Losh
/man9/devctl_notify.9 Wed Sep 23 22:36:38 2020 (r366095) +++ head/share/man/man9/devctl_notify.9 Wed Sep 23 22:49:27 2020 (r366096) @@ -1,8 +1,6 @@ .\" .\" Copyright (c) 2020 M Warner Losh .\" -.\" This program is free software. -.\" .\" Redistribution

svn commit: r366088 - in head/sys: amd64/conf conf i386/conf x86/conf

2020-09-23 Thread Warner Losh
Author: imp Date: Wed Sep 23 19:18:53 2020 New Revision: 366088 URL: https://svnweb.freebsd.org/changeset/base/366088 Log: Use envvar rather than nonstandard hint. lines The NOTES files have a bunch of hint lines that are removed when generating LINT. However, we can achieve the same

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

2020-09-23 Thread Warner Losh
t process likely is never going to happen because we use it all over the place to discard output... There's ~200 instances of it in the boot rc scripts, so getting rid of it there would also be quite the effort, with the same question. Warner > > > On Tue, Sep 22, 2020 at 4:40 PM Warner

Re: svn commit: r365846 - head

2020-09-23 Thread Warner Losh
Won't this break non LINT builds? Maybe we should fix the crazy way we generate lint? On Wed, Sep 23, 2020, 7:21 AM Kyle Evans wrote: > On Mon, Sep 21, 2020 at 7:23 PM Ravi Pokala wrote: > > > > -Original Message- > > From: on behalf of Ed Maste > > > Date: 2020-09-17, Thursday at

Re: svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020, 4:44 AM Bjoern A. Zeeb wrote: > On 23 Sep 2020, at 1:04, Warner Losh wrote: > > >Ideally, we'd keep the cp /dev/null in the > > build as a regression test, > > Well or at least write a test case so that at least CI catches it. > Ky

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

2020-09-22 Thread Warner Losh
re, right? > > On Tue, Sep 22, 2020 at 6:55 PM Warner Losh wrote: > >> >> >> On Tue, Sep 22, 2020 at 5:17 PM Kyle Evans wrote: >> >>> On Tue, Sep 22, 2020, 17:02 Warner Losh wrote: >>> >>>> >>>> >>>> On Tue,

svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-22 Thread Warner Losh
Author: imp Date: Wed Sep 23 01:04:25 2020 New Revision: 366042 URL: https://svnweb.freebsd.org/changeset/base/366042 Log: Work around cp breakage in current from last week There was a small window cp was broken. Work around this by using :> instead of cp /dev/null. Ideally, we'd keep

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

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 5:17 PM Kyle Evans wrote: > On Tue, Sep 22, 2020, 17:02 Warner Losh wrote: > >> >> >> On Tue, Sep 22, 2020 at 3:55 PM Kyle Evans wrote: >> >>> On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: >>> > >>> >

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

2020-09-22 Thread Warner Losh
Author: imp Date: Tue Sep 22 23:01:57 2020 New Revision: 366026 URL: https://svnweb.freebsd.org/changeset/base/366026 Log: Document quoting requirements for the devctl protocol Belatedly document the quoting requirements for the devctl protocol. I thought they'd been previously

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

2020-09-22 Thread Warner Losh
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man9/devctl_notify.9 Tue Sep 22 23:02:01 2020 (r366027) @@ -0,0 +1,78 @@ +.\" +.\" Copyright (c) 2020 M Warner Losh +.\" +.\" This program is free software. +.\" +.\" Redistributio

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

2020-09-22 Thread Warner Losh
@@ +.\" +.\" Copyright (c) 2020 M Warner Losh +.\" +.\" This program is free software. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\"

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

2020-09-22 Thread Warner Losh
0 (empty, because file is newly added) +++ head/share/man/man9/devctl_safe_quote_sb.9 Tue Sep 22 23:01:53 2020 (r366025) @@ -0,0 +1,57 @@ +.\" +.\" Copyright (c) 2020 M Warner Losh +.\" +.\" This program is free software. +.\" +.\" Redistribution and use in

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

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 3:55 PM Kyle Evans wrote: > On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: > > > > On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: > > > I think it's a great leap sideways, but I've done cp /dev/null foo to > > > clear > >

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

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 3:48 PM Alan Somers wrote: > It doesn't feel like a workaround to me. I think Kyle's version is > clearer than the original. > > On Tue, Sep 22, 2020 at 3:45 PM Warner Losh wrote: > >> >> >> On Tue, Sep 22, 2020 at 3:42 PM Kyle Evans

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

2020-09-22 Thread Warner Losh
chanics, why not do so? > Fair point. I just bristle at putting workarounds in for valid /bin/sh syntax because we opposed for a few days. so long as it's an unconditional clearing of the file to be zero length, I'm OK with that. Warner > On Tue, Sep 22, 2020 at 4:40 PM Warner Losh wrote:

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

2020-09-22 Thread Warner Losh
So why do we need a workaround at all? cp /dev/null has been fixed, and that's way more important to get right. I don't want to paper-over issues with this at all, though if we use the host's (now broken) cp, I suppose that might be OK in the short term. If that's the case, then maybe this is OK.

Re: svn commit: r365836 - head/share/mk

2020-09-17 Thread Warner Losh
On Thu, Sep 17, 2020, 11:25 AM Jessica Clarke wrote: > > On 17 Sep 2020, at 18:23, Jessica Clarke wrote: > > > >> On 17 Sep 2020, at 18:05, Rodney W. Grimes > wrote: > >> > >>> On Thu, Sep 17, 2020 at 9:39 AM Steffen Nurpmeso > wrote: > >>> > Alex Richardson wrote in >

svn commit: r365843 - head/sys/kern

2020-09-17 Thread Warner Losh
Author: imp Date: Thu Sep 17 17:29:33 2020 New Revision: 365843 URL: https://svnweb.freebsd.org/changeset/base/365843 Log: Move to a more robust and conservative alloation scheme for devctl messages Change the zone setup: - Allow slabs to be returned to the OS - Set the number of slots

Re: svn commit: r365836 - head/share/mk

2020-09-17 Thread Warner Losh
On Thu, Sep 17, 2020 at 9:39 AM Steffen Nurpmeso wrote: > Alex Richardson wrote in > <202009171507.08hf7qns080...@repo.freebsd.org>: > |Author: arichardson > |Date: Thu Sep 17 15:07:25 2020 > |New Revision: 365836 > |URL: https://svnweb.freebsd.org/changeset/base/365836 > | > |Log: > |

svn commit: r365790 - in head/sys: kern sys

2020-09-16 Thread Warner Losh
Author: imp Date: Wed Sep 16 06:02:30 2020 New Revision: 365790 URL: https://svnweb.freebsd.org/changeset/base/365790 Log: Use standard bool type, instead of non-standard boolean_t Modified: head/sys/kern/subr_bus.c head/sys/sys/devctl.h Modified: head/sys/kern/subr_bus.c

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

2020-09-15 Thread Warner Losh
On Tue, Sep 15, 2020 at 8:37 AM Mark Johnston wrote: > On Tue, Sep 15, 2020 at 10:22:09AM -0400, Mark Johnston wrote: > > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > > On Sat, Aug 29, 2020 at 04:29:53AM +, Warner Losh wrote: > > > >

svn commit: r365751 - head/sys/opencrypto

2020-09-15 Thread Warner Losh
Author: imp Date: Tue Sep 15 15:21:29 2020 New Revision: 365751 URL: https://svnweb.freebsd.org/changeset/base/365751 Log: Include sys/types.h here It's included by header pollution in most of the compile environments. However, in the standalone envirnment, it's not included. Go ahead

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

2020-09-15 Thread Warner Losh
On Tue, Sep 15, 2020, 8:22 AM Mark Johnston wrote: > On Tue, Sep 15, 2020 at 05:15:30PM +0300, Konstantin Belousov wrote: > > On Sat, Aug 29, 2020 at 04:29:53AM +0000, Warner Losh wrote: > > > Author: imp > > > Date: Sat Aug 29 04:29:53 2020 > > > N

svn commit: r365737 - head/sys/geom/eli

2020-09-14 Thread Warner Losh
Author: imp Date: Mon Sep 14 23:51:14 2020 New Revision: 365737 URL: https://svnweb.freebsd.org/changeset/base/365737 Log: We don't need the sc_ekeys_lock in standalone environment. When we bring in geli into the boot loader, we are single threaded so we don't have to worry about

svn commit: r365735 - head/sys/dev/iicbus

2020-09-14 Thread Warner Losh
Author: imp Date: Mon Sep 14 23:30:04 2020 New Revision: 365735 URL: https://svnweb.freebsd.org/changeset/base/365735 Log: Don't do the busy dance in icee_open/close We don't need to do the busy dance for this driver. It's handled by destroy_dev() entirely. Since all we did was

svn commit: r365734 - head/sys/sys

2020-09-14 Thread Warner Losh
Author: imp Date: Mon Sep 14 23:27:51 2020 New Revision: 365734 URL: https://svnweb.freebsd.org/changeset/base/365734 Log: Tweak what's visible in the standalone environment. We define offsetof in stand.h typically, but when this is included we can define it multiple times. However, we

Re: svn commit: r365720 - head/sys/conf

2020-09-14 Thread Warner Losh
On Mon, Sep 14, 2020 at 8:45 AM Gordon Tetlow wrote: > Author: gordon > Date: Mon Sep 14 14:45:30 2020 > New Revision: 365720 > URL: https://svnweb.freebsd.org/changeset/base/365720 > > Log: > Partially revert r346018 and use the if/then construct instead of shell. > > There are a couple of

svn commit: r365665 - head/tools/regression/geom/Ref

2020-09-12 Thread Warner Losh
Author: imp Date: Sat Sep 12 17:24:04 2020 New Revision: 365665 URL: https://svnweb.freebsd.org/changeset/base/365665 Log: Update flp test for new diskinfo output The floppy test passes with this. The others fail due to 'integrity checks' failing in GPART. It's not at all clear those

svn commit: r365664 - head/tools/regression/geom

2020-09-12 Thread Warner Losh
Author: imp Date: Sat Sep 12 17:24:00 2020 New Revision: 365664 URL: https://svnweb.freebsd.org/changeset/base/365664 Log: Fix trailing whitespace Modified: head/tools/regression/geom/RunTest.t Modified: head/tools/regression/geom/RunTest.t

svn commit: r365663 - head/tools/regression/geom/MdLoad

2020-09-12 Thread Warner Losh
Author: imp Date: Sat Sep 12 17:23:51 2020 New Revision: 365663 URL: https://svnweb.freebsd.org/changeset/base/365663 Log: Make this compile again by fixing err args to have formats Also, add NO_OBJ=t top the Makefie, since the test-harnest expects to run it in place. Modified:

svn commit: r365645 - in head/tools/regression/geom: ConfCmp Data Ref

2020-09-11 Thread Warner Losh
Author: imp Date: Fri Sep 11 23:37:49 2020 New Revision: 365645 URL: https://svnweb.freebsd.org/changeset/base/365645 Log: Remove disk images / tests from alpha, sun and pc98 These images are no longer relevant... However, I've also not tested the regression test here to see if it still

Re: svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgrap

2020-09-06 Thread Warner Losh
On Sat, Sep 5, 2020 at 1:42 PM Ed Maste wrote: > On Fri, 4 Sep 2020 at 23:11, Kevin Bowling > wrote: > > > > An arbitrary formater may leave a > > little bit of annoyance to each person's taste, but that is a tiny > > drop in the bucket compared to never having to discuss and especially > >

Re: svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgrap

2020-09-05 Thread Warner Losh
On Sat, Sep 5, 2020 at 12:00 AM Kevin Bowling wrote: > On Fri, Sep 4, 2020 at 10:30 PM Warner Losh wrote: > > > > > > > > On Fri, Sep 4, 2020, 11:24 PM Kevin Bowling > wrote: > >> > >> It's happening right now, and a few times a year at mi

Re: svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgrap

2020-09-05 Thread Warner Losh
the ghost of the past when 10 or 15 years ago it was a big deal. Why bother creating yet another barrier to commits because we used to suck, but now have barely a rumble of bad behavior around it... Warner On Fri, Sep 4, 2020 at 7:57 PM Warner Losh wrote: > > > > On Fri, Sep 4, 20

svn commit: r365358 - head/usr.bin/script

2020-09-04 Thread Warner Losh
Author: imp Date: Sat Sep 5 04:20:29 2020 New Revision: 365358 URL: https://svnweb.freebsd.org/changeset/base/365358 Log: Fix typo in comment. Noticed by: bapt@ Modified: head/usr.bin/script/script.c Modified: head/usr.bin/script/script.c

Re: svn commit: r365071 - in head/sys: net net/altq net/route net80211 netgraph netgraph/atm netgraph/atm/ccatm netgraph/atm/sscfu netgraph/atm/sscop netgraph/atm/uni netgraph/bluetooth/common netgrap

2020-09-04 Thread Warner Losh
On Fri, Sep 4, 2020, 7:05 PM Mark Linimon wrote: > On Fri, Sep 04, 2020 at 02:15:04PM -0400, Andrew Gallatin wrote: > > and I also anticipate it will cause problems with MFCs > > And existing PRs and DRs. > Or we could just not bother we these changes at all. It's a pipe dream we will ever be

svn commit: r365249 - head

2020-09-02 Thread Warner Losh
Author: imp Date: Wed Sep 2 14:28:54 2020 New Revision: 365249 URL: https://svnweb.freebsd.org/changeset/base/365249 Log: Add note about needing to manually import the zfs pools or update /etc/rc.d due to the cache file moving to /etc. Modified: head/UPDATING Modified: head/UPDATING

Re: svn commit: r365052 - head/usr.bin/script

2020-09-01 Thread Warner Losh
On Tue, Sep 1, 2020, 10:18 AM Benjamin Kaduk wrote: > On Tue, Sep 1, 2020 at 9:11 AM Warner Losh wrote: > >> Author: imp >> Date: Tue Sep 1 16:11:23 2020 >> New Revision: 365052 >> URL: https://svnweb.freebsd.org/changeset/base/365052 >> >> Log: >&

svn commit: r365053 - head/usr.bin/script

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 16:13:09 2020 New Revision: 365053 URL: https://svnweb.freebsd.org/changeset/base/365053 Log: Bump date for r365052 Modified: head/usr.bin/script/script.1 Modified: head/usr.bin/script/script.1

svn commit: r365052 - head/usr.bin/script

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 16:11:23 2020 New Revision: 365052 URL: https://svnweb.freebsd.org/changeset/base/365052 Log: Have script accept and ignore -e for Linux compat In the util-linux version of script, it will always exit with succes. Except when run with -e, in which case it

svn commit: r365027 - head/stand/man

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 07:56:28 2020 New Revision: 365027 URL: https://svnweb.freebsd.org/changeset/base/365027 Log: Update to today's date Also, fix a whitespace botch Modified: head/stand/man/loader.efi.8 Modified: head/stand/man/loader.efi.8

svn commit: r365026 - head/stand

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 07:54:14 2020 New Revision: 365026 URL: https://svnweb.freebsd.org/changeset/base/365026 Log: Add defines for OpenZFS variables OZFS is the top of the OpenZFS tree (aka src/sys/contrib/openzfs). ZFSOSSRC is the path to the OepnZFS sources ZFSOSINC is the

svn commit: r365025 - head/stand/man

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 07:54:09 2020 New Revision: 365025 URL: https://svnweb.freebsd.org/changeset/base/365025 Log: Very preliminary loader.efi(8) man page Added: head/stand/man/loader.efi.8 (contents, props changed) Modified: head/stand/man/Makefile Modified:

svn commit: r365024 - head/stand/man

2020-09-01 Thread Warner Losh
Author: imp Date: Tue Sep 1 07:46:27 2020 New Revision: 365024 URL: https://svnweb.freebsd.org/changeset/base/365024 Log: Document boot1.efi Crude man page for boo1.efi. Added: head/stand/man/boot1.efi.8 (contents, props changed) Modified: head/stand/man/Makefile Modified:

svn commit: r365022 - head/sys/libkern

2020-08-31 Thread Warner Losh
Author: imp Date: Tue Sep 1 04:37:55 2020 New Revision: 365022 URL: https://svnweb.freebsd.org/changeset/base/365022 Log: Smaller crc for the boot loader. Save 7k of text space by using simpler crc32 for standalone case. we don't need all that fancy optimization in the boot loader, so

svn commit: r365016 - head/sbin/devd

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 23:48:23 2020 New Revision: 365016 URL: https://svnweb.freebsd.org/changeset/base/365016 Log: Add documentation for ETHERNET events. Modified: head/sbin/devd/devd.conf.5 Modified: head/sbin/devd/devd.conf.5

svn commit: r365017 - head/sbin/devd

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 23:48:27 2020 New Revision: 365017 URL: https://svnweb.freebsd.org/changeset/base/365017 Log: Sort IFNET alphabetically Modified: head/sbin/devd/devd.conf.5 Modified: head/sbin/devd/devd.conf.5

svn commit: r365015 - in head/sys/dev: an wi

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 23:31:16 2020 New Revision: 365015 URL: https://svnweb.freebsd.org/changeset/base/365015 Log: Warn for the non pccard attachments These devices have non-pccard attachments. Warn for those as well. Both an and wi don't do the modern cyrpto needed to use these

svn commit: r365009 - in head: share/man/man4/man4.i386 sys/i386/bios

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 21:04:00 2020 New Revision: 365009 URL: https://svnweb.freebsd.org/changeset/base/365009 Log: Add deprecation notice for apm BIOS Add deprecation notice for apm bios, aka the apm(4) device. The apm(8) command will remain, at least for a while, since ACPI

svn commit: r365006 - in head/tools/tools/tinybsd/conf: bridge default firewall minimal vpn wireless

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 19:47:30 2020 New Revision: 365006 URL: https://svnweb.freebsd.org/changeset/base/365006 Log: gc pmtimer and apm pmtimer was removed from base some time ago. apm hasn't been relevant for these devices in a long time (and was commented out). Remove them both

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

2020-08-31 Thread Warner Losh
Author: imp Date: Mon Aug 31 19:38:03 2020 New Revision: 365005 URL: https://svnweb.freebsd.org/changeset/base/365005 Log: Use symbolic names for asych events Rather than |= 0x300, define and use asyn event names for the name space changes and the firmware activations that we're asking

svn commit: r364953 - head/sys/kern

2020-08-29 Thread Warner Losh
Author: imp Date: Sat Aug 29 11:46:50 2020 New Revision: 364953 URL: https://svnweb.freebsd.org/changeset/base/364953 Log: We don't need to INCLUDENUL, so turn it off to avoid assertion... sbuf_new_for_sysctl turns on INCLUDENUL, but we don't need it. And we assert for it in the new

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

2020-08-29 Thread Warner Losh
On Sat, Aug 29, 2020 at 5:25 AM Michal Meloun wrote: > > > On 29.08.2020 13:02, Warner Losh wrote: > > On Sat, Aug 29, 2020 at 4:38 AM Michal Meloun > > wrote: > > > >> > >> > >> On 29.08.2020 12:04, Warner Losh wrote: > &

svn commit: r364951 - head/sys/kern

2020-08-29 Thread Warner Losh
Author: imp Date: Sat Aug 29 11:18:10 2020 New Revision: 364951 URL: https://svnweb.freebsd.org/changeset/base/364951 Log: Use sbuf_cat instead of sbuf_cpy sbuf_cpy doesn't work with sysctl sbufs because of the drain function. Modified: head/sys/kern/subr_bus.c Modified:

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

2020-08-29 Thread Warner Losh
On Sat, Aug 29, 2020 at 4:38 AM Michal Meloun wrote: > > > On 29.08.2020 12:04, Warner Losh wrote: > > On Sat, Aug 29, 2020 at 1:09 AM Mateusz Guzik wrote: > > > >> This crashes on boot for me: > >> > > > > I wasn't able to get it to

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

2020-08-29 Thread Warner Losh
t_syscall_common+0xf8/frame 0xfe002366abf0 > --- syscall (202, FreeBSD ELF64, sys___sysctl), rip = 0x80041c0ea, rsp > = 0x7fffda78, rbp = 0x7fffdab0 --- > KDB: enter: panic > [ thread pid 89 tid 100067 ] > Stopped at kdb_enter+0x37: movq$0,0x7e2616(%rip)

svn commit: r364949 - head/sys/kern

2020-08-29 Thread Warner Losh
Author: imp Date: Sat Aug 29 09:59:52 2020 New Revision: 364949 URL: https://svnweb.freebsd.org/changeset/base/364949 Log: Avoid NULL pointer dereferences Add back NULL pointer checks accidentally dropped in r364946. We need to append a NUL character when that happens. Modified:

svn commit: r364946 - head/sys/kern

2020-08-28 Thread Warner Losh
Author: imp Date: Sat Aug 29 04:30:12 2020 New Revision: 364946 URL: https://svnweb.freebsd.org/changeset/base/364946 Log: Move to using sbuf for some sysctl in newbus Convert two different sysctl to using sbuf. First, for all the default sysctls we implement for each device driver

svn commit: r364944 - head/sys/kern

2020-08-28 Thread Warner Losh
Author: imp Date: Sat Aug 29 04:29:53 2020 New Revision: 364944 URL: https://svnweb.freebsd.org/changeset/base/364944 Log: devctl: move to using a uma zone Convert the memory management of devctl. Rewrite if to make better use of memory. This eliminates several mallocs (5? worse case)

svn commit: r364945 - in head/sys: arm/ti/am335x geom kern sys

2020-08-28 Thread Warner Losh
Author: imp Date: Sat Aug 29 04:30:06 2020 New Revision: 364945 URL: https://svnweb.freebsd.org/changeset/base/364945 Log: Retire devctl_notify_f() devctl_notify_f isn't needed, so retire it. The flags argument is now unused, so rather than keep it around, retire it. Convert all old

svn commit: r364926 - head/sys/sys

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 17:55:54 2020 New Revision: 364926 URL: https://svnweb.freebsd.org/changeset/base/364926 Log: Treat the boot loader as the same as the kernel for what's visible The boot loader will be growing some (limited) support for some kernel interfaces for some of the

svn commit: r364925 - head/sys/sys

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 17:49:56 2020 New Revision: 364925 URL: https://svnweb.freebsd.org/changeset/base/364925 Log: Allow the pseudo-errnos to be returned as well in boot loader Expose the pseudo-errno values in _STANDALONE is defined so that code in the boot loader can make use

svn commit: r364924 - head/stand

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 17:36:14 2020 New Revision: 364924 URL: https://svnweb.freebsd.org/changeset/base/364924 Log: Create CFLAGS_EARLY.file for boot loader. Some external code requires a specific set of include paths to work properly since it emulates the typical environment the

svn commit: r364922 - head/sys/dev/mn

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 17:05:06 2020 New Revision: 364922 URL: https://svnweb.freebsd.org/changeset/base/364922 Log: Update outdated comment There is no splnet anymore, so update the comment to drop references to it. Modified: head/sys/dev/mn/if_mn.c Modified:

svn commit: r364920 - in head/sys: dev/speaker sys

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 16:40:33 2020 New Revision: 364920 URL: https://svnweb.freebsd.org/changeset/base/364920 Log: Remove splclock(). It's not useful to keep. splclock is used in one driver (spkr) to control access to timer_spkr_* routines. However, nothing else does. So it

svn commit: r364918 - head/sys/sys

2020-08-28 Thread Warner Losh
Author: imp Date: Fri Aug 28 15:09:43 2020 New Revision: 364918 URL: https://svnweb.freebsd.org/changeset/base/364918 Log: remove splbio and splcam splbio and splcan have been completely removed from the tree. We can now remove their definitions here. They've been nops for a long time

svn commit: r364901 - head/stand/libsa

2020-08-27 Thread Warner Losh
Author: imp Date: Fri Aug 28 05:40:02 2020 New Revision: 364901 URL: https://svnweb.freebsd.org/changeset/base/364901 Log: Declare time() Time is used and was accidentally brought in through header pollution. Declare it in stand.h directly instead. Modified: head/stand/libsa/stand.h

svn commit: r364877 - head/sys/cam

2020-08-27 Thread Warner Losh
Author: imp Date: Thu Aug 27 17:46:13 2020 New Revision: 364877 URL: https://svnweb.freebsd.org/changeset/base/364877 Log: Fix tiny style nit. Modified: head/sys/cam/cam_xpt_internal.h Modified: head/sys/cam/cam_xpt_internal.h

svn commit: r364875 - head

2020-08-27 Thread Warner Losh
Author: imp Date: Thu Aug 27 17:30:57 2020 New Revision: 364875 URL: https://svnweb.freebsd.org/changeset/base/364875 Log: Add note about NO_CLEAN build. NO_CLEAN doesn't quite work for some scenarios when rebuilding older kernels, but the kernels build w/o NO_CLEAN. Modified:

svn commit: r364855 - head/sys/kern

2020-08-26 Thread Warner Losh
Author: imp Date: Thu Aug 27 05:11:15 2020 New Revision: 364855 URL: https://svnweb.freebsd.org/changeset/base/364855 Log: Implement FLUSHO Turn FLUSHO on/off with ^O (or whatever VDISCARD is). Honor that to throw away output quickly. This tries to remain true to 4.4BSD behavior (since

svn commit: r364834 - head

2020-08-26 Thread Warner Losh
Author: imp Date: Wed Aug 26 19:32:28 2020 New Revision: 364834 URL: https://svnweb.freebsd.org/changeset/base/364834 Log: Each entry in UPDATING needs a date It's rare for there to be two updating entries on the same day (once a decade or so), but we have that here. Add the date to the

Re: svn commit: r364806 - in head/sys/contrib/openzfs: include/os/freebsd/spl/sys module/os/freebsd/spl

2020-08-26 Thread Warner Losh
On Wed, Aug 26, 2020 at 11:33 AM John Baldwin wrote: > On 8/26/20 10:15 AM, Matthew Macy wrote: > > Do not commit directly to sys/contrib. PR, vendor branch update, then > merge. > > We do live in a world where source control is able to merge changes, and > it should be ok in that world to

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

2020-08-26 Thread Warner Losh
Author: imp Date: Wed Aug 26 17:06:16 2020 New Revision: 364824 URL: https://svnweb.freebsd.org/changeset/base/364824 Log: Make sbuf_setpos match the implementation. sbuf_setpos can only be used to truncate the buffer, never to make it longer. Update the documentation to reflect this.

Re: svn commit: r364781 - in head/sys: conf modules/zfs

2020-08-25 Thread Warner Losh
Got diffs? Warner On Tue, Aug 25, 2020, 2:17 PM Brooks Davis wrote: > On Tue, Aug 25, 2020 at 07:04:54PM +, Brandon Bergren wrote: > > Author: bdragon > > Date: Tue Aug 25 19:04:54 2020 > > New Revision: 364781 > > URL: https://svnweb.freebsd.org/changeset/base/364781 > > > > Log: > >

svn commit: r364728 - head

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 20:02:13 2020 New Revision: 364728 URL: https://svnweb.freebsd.org/changeset/base/364728 Log: Fix silly typo... Modified: head/RELNOTES Modified: head/RELNOTES == --- head/RELNOTES

svn commit: r364727 - head

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 19:49:22 2020 New Revision: 364727 URL: https://svnweb.freebsd.org/changeset/base/364727 Log: Document devd event change from r364725 Modified: head/RELNOTES Modified: head/RELNOTES ==

svn commit: r364725 - in head: sbin/devd sys/kern

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 19:35:15 2020 New Revision: 364725 URL: https://svnweb.freebsd.org/changeset/base/364725 Log: Change the resume notification event from 'kern' to 'kernel' We have both a system of 'kern' and of 'kernel'. Prefer the latter and convert this notification to use

svn commit: r364726 - head

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 19:35:27 2020 New Revision: 364726 URL: https://svnweb.freebsd.org/changeset/base/364726 Log: Document the kern -> kernel name change for resume events. MFC After: 3 days Modified: head/UPDATING Modified: head/UPDATING

svn commit: r364701 - in head: . tools/build

2020-08-24 Thread Warner Losh
Author: imp Date: Mon Aug 24 16:06:11 2020 New Revision: 364701 URL: https://svnweb.freebsd.org/changeset/base/364701 Log: When copying over the binaries, use '-p' to preserve date/time Although I can't reproduce it, others are seeing different lex/yacc programs always regenerated after

svn commit: r364532 - head/sys/kern

2020-08-23 Thread Warner Losh
Author: imp Date: Sun Aug 23 20:38:10 2020 New Revision: 364532 URL: https://svnweb.freebsd.org/changeset/base/364532 Log: Fix another minor style glitch. Pull { to the end of the struct line rather than having them on their own line. Modified: head/sys/kern/subr_bus.c Modified:

svn commit: r364491 - head/sys/kern

2020-08-22 Thread Warner Losh
Author: imp Date: Sat Aug 22 19:18:31 2020 New Revision: 364491 URL: https://svnweb.freebsd.org/changeset/base/364491 Log: Whitespace change to line up dev_sotfc definition. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c

svn commit: r364490 - head/sys/kern

2020-08-22 Thread Warner Losh
Author: imp Date: Sat Aug 22 19:02:15 2020 New Revision: 364490 URL: https://svnweb.freebsd.org/changeset/base/364490 Log: Retire obsolete sysctl hw.bus.devctl_disable hw.bus.devctl_disable has tagged been obsolete for a decade. Remove it. Also remove some long obsolete comments. This

svn commit: r364442 - in head/sys: cam cddl/compat/opensolaris/kern geom kern net netinet

2020-08-20 Thread Warner Losh
Author: imp Date: Fri Aug 21 00:03:24 2020 New Revision: 364442 URL: https://svnweb.freebsd.org/changeset/base/364442 Log: Use devctl.h instead of bus.h to reduce newbus pollution. There's no need for these parts of the kernel to know about newbus, so narrow what is included to devctl.h

svn commit: r364439 - head/sys/conf

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 19:51:25 2020 New Revision: 364439 URL: https://svnweb.freebsd.org/changeset/base/364439 Log: Unbreak LINT Remove ufm from the NOTES file. Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES

Re: svn commit: r364430 - in head: share/man/man4 sys/dev/an sys/dev/ata sys/dev/cmx sys/dev/fdc sys/dev/if_ndis sys/dev/puc sys/dev/uart sys/dev/wi sys/netgraph/bluetooth/drivers/bt3c

2020-08-20 Thread Warner Losh
https://reviews.freebsd.org/D26138 has the code review. Warner On Thu, Aug 20, 2020 at 1:41 PM Warner Losh wrote: > > > On Thu, Aug 20, 2020 at 1:13 PM Rodney W. Grimes < > free...@gndrsh.dnsmgr.net> wrote: > >> > Author: imp >> > Date: Thu Aug 20

Re: svn commit: r364430 - in head: share/man/man4 sys/dev/an sys/dev/ata sys/dev/cmx sys/dev/fdc sys/dev/if_ndis sys/dev/puc sys/dev/uart sys/dev/wi sys/netgraph/bluetooth/drivers/bt3c

2020-08-20 Thread Warner Losh
On Thu, Aug 20, 2020 at 1:13 PM Rodney W. Grimes wrote: > > Author: imp > > Date: Thu Aug 20 17:19:40 2020 > > New Revision: 364430 > > URL: https://svnweb.freebsd.org/changeset/base/364430 > > > > Log: > > Tag pccard drivers with gone in 13. > > > > MFC After: 3 days > > Reviewed by:

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

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 18:31:50 2020 New Revision: 364434 URL: https://svnweb.freebsd.org/changeset/base/364434 Log: Remove ufm.4 from the Makefile Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Makefile

svn commit: r364432 - in head: share/man/man4 sys/conf sys/dev/usb/misc sys/modules/usb sys/modules/usb/ufm

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 17:35:47 2020 New Revision: 364432 URL: https://svnweb.freebsd.org/changeset/base/364432 Log: Remove the long obsolete ufm driver. It was a driver for a USB FM tuner that was available in the market in 2002. I wrote the driver in 2003. I've not used it since

svn commit: r364430 - in head: share/man/man4 sys/dev/an sys/dev/ata sys/dev/cmx sys/dev/fdc sys/dev/if_ndis sys/dev/puc sys/dev/uart sys/dev/wi sys/netgraph/bluetooth/drivers/bt3c

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 17:19:40 2020 New Revision: 364430 URL: https://svnweb.freebsd.org/changeset/base/364430 Log: Tag pccard drivers with gone in 13. MFC After: 3 days Reviewed by: emaste, brooks, adrian (on twitter) Differential Revision: https://reviews.freebsd.org/D26095

svn commit: r364427 - in head/sys: kern sys

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 17:14:33 2020 New Revision: 364427 URL: https://svnweb.freebsd.org/changeset/base/364427 Log: Make devctl_queue_data_f and devctl_queue_data private. I thought we'd need them, but nobody is using them. Narrow the interface. This will facilitate changes in the

svn commit: r364428 - head/sys/sys

2020-08-20 Thread Warner Losh
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/sys/devctl.h Thu Aug 20 17:14:39 2020(r364428) @@ -0,0 +1,46 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright 2020 M. Warner Losh. + * + * Redistribution

svn commit: r364429 - head/sys/kern

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 17:14:44 2020 New Revision: 364429 URL: https://svnweb.freebsd.org/changeset/base/364429 Log: Move from TAILQ to STAILQ because the nodes are a bit smaller. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c

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

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 16:52:34 2020 New Revision: 364424 URL: https://svnweb.freebsd.org/changeset/base/364424 Log: Fix function name in zone.9 uma_zone_prealloc -> uma_prealloc. There's no uma_zone_prealloc defined and the docs for it describe uma_prealloc exactly. Modified:

svn commit: r364425 - head/sys/kern

2020-08-20 Thread Warner Losh
Author: imp Date: Thu Aug 20 16:52:48 2020 New Revision: 364425 URL: https://svnweb.freebsd.org/changeset/base/364425 Log: Use names suggested by kib@ in review D25969, move call for unmount to not call with vnode locked, use NOWAIT alloc and only report when we don't overflow. These

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

2020-08-19 Thread Warner Losh
On Wed, Aug 19, 2020 at 11:54 AM Shawn Webb wrote: > On Wed, Aug 19, 2020 at 11:51:10AM -0600, Warner Losh wrote: > > On Wed, Aug 19, 2020 at 11:48 AM Shawn Webb > > wrote: > > > > > On Wed, Aug 19, 2020 at 11:44:42AM -0600, Warner Losh wrote: > > > > O

<    1   2   3   4   5   6   7   8   9   10   >