size: improve column alignment

2022-10-30 Thread Klemens Nanni
size(1) output is not padded and uses a single tab between each column which often looks ugly: $ size bsd /usr/lib/libc.so.96.4 `which echo cc` textdatabss dec hex 896234 31208 54664 982106 efc5a /usr/lib/libc.so.96.4 106152 11200 12640

mbufs growing in 7.2

2022-10-30 Thread Greg Steuck
My router has become unstable since upgrading from 7.1-stable to 7.2. After several days of uptime the machine gets into a state where some applications (unbound & dhcpd) report ENOBUFS (No buffer space available). At that time the machine is pingable over all the interfaces, but only the upstream

thethering on Mudita Pure

2022-10-30 Thread Piotr K. Isajew
I wonder would it be possible to support Mudita Pure phone (https://mudita.com/products/) Internet thethering. After enabling USB thethering, the phone it identifies itself as vendor 0x2c7c and product 0x0125, so Quectel EG25-G. The umb driver fails to attach: umb0 at uhub0 port 1 "Quectel EG25-

fix libz regress on gcc archs

2022-10-30 Thread Klemens Nanni
Makefile bits adapted from regress/lib/libssl/interop/botan/Makefile. required for stderr required for exit(3) required for memcmp(3) g++-8.4.0p12 on sparc64 prints coloured warnings/errors, but that is enother issue. On sparc64, `make CXX=clang++' without patch works as well. A follow-up c

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Klemens Nanni
On Fri, Oct 28, 2022 at 11:08:55AM +0200, Martin Pieuchot wrote: > On 20/10/22(Thu) 16:17, Martin Pieuchot wrote: > > On 11/09/22(Sun) 12:26, Martin Pieuchot wrote: > > > Diff below adds a minimalist set of assertions to ensure proper locks > > > are held in uvm_mapanon() and uvm_unmap_remove() whi

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Klemens Nanni
On Sun, Oct 30, 2022 at 01:58:40PM +0100, Martin Pieuchot wrote: > On 30/10/22(Sun) 12:45, Klemens Nanni wrote: > > On Sun, Oct 30, 2022 at 12:40:02PM +, Klemens Nanni wrote: > > > regress on i386/GENERIC.MP+WITNESS with this diff shows > > > > Another one; This machine has three read-only NF

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Martin Pieuchot
On 30/10/22(Sun) 12:45, Klemens Nanni wrote: > On Sun, Oct 30, 2022 at 12:40:02PM +, Klemens Nanni wrote: > > regress on i386/GENERIC.MP+WITNESS with this diff shows > > Another one; This machine has three read-only NFS mounts, but none of > them are used during builds or regress. It's the s

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Martin Pieuchot
On 30/10/22(Sun) 12:40, Klemens Nanni wrote: > On Fri, Oct 28, 2022 at 11:08:55AM +0200, Martin Pieuchot wrote: > > On 20/10/22(Thu) 16:17, Martin Pieuchot wrote: > > > On 11/09/22(Sun) 12:26, Martin Pieuchot wrote: > > > > Diff below adds a minimalist set of assertions to ensure proper locks > > >

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Klemens Nanni
On Sun, Oct 30, 2022 at 12:40:02PM +, Klemens Nanni wrote: > regress on i386/GENERIC.MP+WITNESS with this diff shows Another one; This machine has three read-only NFS mounts, but none of them are used during builds or regress. This one is most certainly from the NFS regress tests themselves:

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Klemens Nanni
On Fri, Oct 28, 2022 at 11:08:55AM +0200, Martin Pieuchot wrote: > On 20/10/22(Thu) 16:17, Martin Pieuchot wrote: > > On 11/09/22(Sun) 12:26, Martin Pieuchot wrote: > > > Diff below adds a minimalist set of assertions to ensure proper locks > > > are held in uvm_mapanon() and uvm_unmap_remove() whi

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-30 Thread Theo Buehler
On Fri, Oct 28, 2022 at 11:08:55AM +0200, Martin Pieuchot wrote: > On 20/10/22(Thu) 16:17, Martin Pieuchot wrote: > > On 11/09/22(Sun) 12:26, Martin Pieuchot wrote: > > > Diff below adds a minimalist set of assertions to ensure proper locks > > > are held in uvm_mapanon() and uvm_unmap_remove() whi

Remove audio(9) speaker_ctl(), let open() handle speakers where needed

2022-10-30 Thread Klemens Nanni
Only five legacy half-duplex hardware drivers require this function to change between playing and recording: i386: ess(4), gus(4), pas(4), sb(4) luna88k: nec86(4) If defined, it is always called early in audio_open(), so just move the call from audio(4) to each hardware driver's op