Re: timekeep: tk_generation problem

2020-07-14 Thread Mark Kettenis
> Date: Tue, 14 Jul 2020 20:17:30 -0500 > From: Scott Cheloha > Cc: Mark Kettenis , tech@openbsd.org, p...@irofti.net > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > On Tue, Jul 14, 2020 at 08:21:24PM -0400, George Koehler wrote: > > On Tue, 14 Jul 2020 11:59:14

Re: timekeep: tk_generation problem

2020-07-14 Thread Mark Kettenis
> Date: Tue, 14 Jul 2020 20:21:24 -0400 > From: George Koehler > > On Tue, 14 Jul 2020 11:59:14 +0200 (CEST) > Mark Kettenis wrote: > > > Yeah, one possible approach would be to increment ogen by two. A > > little bit easier to check that they can never be the same since one > > is always odd

Re: tmpfs bug in reclaim

2020-07-14 Thread Bob Beck
In the spirit of be careful what sticks to you, this has ok beck@ On Mon, Jul 13, 2020 at 11:56:18AM +0200, Gerhard Roth wrote: > tmpfs_reclaim() has to make sure that the VFS cache has no more > locks held for the vnode. Else vclean() could panic because v_holdcnt > is non-zero. > > I know

[Patch] httpd.h - delete unused field and enum

2020-07-14 Thread Ross L Richardson
Field kv_type in struct kv is not used. As that's the only use of enum key_type, delete them both. Ross Index: httpd.h === RCS file: /cvs/src/usr.sbin/httpd/httpd.h,v retrieving revision 1.146 diff -u -p -r1.146 httpd.h ---

Re: timekeep: tk_generation problem

2020-07-14 Thread Scott Cheloha
On Tue, Jul 14, 2020 at 08:21:24PM -0400, George Koehler wrote: > On Tue, 14 Jul 2020 11:59:14 +0200 (CEST) > Mark Kettenis wrote: > > > Yeah, one possible approach would be to increment ogen by two. A > > little bit easier to check that they can never be the same since one > > is always odd

Re: timekeep: tk_generation problem

2020-07-14 Thread George Koehler
On Tue, 14 Jul 2020 11:59:14 +0200 (CEST) Mark Kettenis wrote: > Yeah, one possible approach would be to increment ogen by two. A > little bit easier to check that they can never be the same since one > is always odd and the other is always even. > > Another possible approach would be to

Re: timekeep: tk_generation problem

2020-07-14 Thread Scott Cheloha
On Tue, Jul 14, 2020 at 11:59:14AM +0200, Mark Kettenis wrote: > > Date: Mon, 13 Jul 2020 17:07:31 -0400 > > From: George Koehler > > > > On Mon, 13 Jul 2020 01:18:14 -0500 > > Scott Cheloha wrote: > > > > > To review, the update protocol is: > > > > > > 1. Set tk_generation to zero; the

Proposal: integrate wsmoused into kernel

2020-07-14 Thread johnc
There are several user visible "warts" with wsmoused: Wsmoused conflicts with X's use of the mouse, you can't ctrl-alt-screen between X and text consoles and use the mouse in both of them. The cursor location is in character cells instead of pixels, so the cursor moves twice as fast vertically

Re: energy sensor

2020-07-14 Thread Theo de Raadt
No harm in adding it. Mark Kettenis wrote: > The firmware on the POWER9 machines provides an energy sensor. This > sensor measures the energy on/in/at the chip. I'm not sure what that > actually means. But it is different from the energy content of a > battery which is measured in

energy sensor

2020-07-14 Thread Mark Kettenis
The firmware on the POWER9 machines provides an energy sensor. This sensor measures the energy on/in/at the chip. I'm not sure what that actually means. But it is different from the energy content of a battery which is measured in Watthours. Should I add this? Or should I just skip these

Re: empty rc.firsttime when installing

2020-07-14 Thread Theo de Raadt
Denis Fondras wrote: > I was upgrading an EdgeRouter and it restarted multiple times instead of > booting > /bsd Try to produce a log of that problem, instead.

autoconf-2.69b released [beta]

2020-07-14 Thread Zack Weinberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 We are pleased to announce beta release 2.69b of GNU Autoconf. This release includes eight years of development work since the previous release, 2.69. See below for the detailed list of changes since the previous version, as summarized by the

Re: empty rc.firsttime when installing

2020-07-14 Thread Denis Fondras
On Tue, Jul 14, 2020 at 02:14:55PM +0100, Stuart Henderson wrote: > On 2020/07/14 15:03, Denis Fondras wrote: > > I was upgrading an EdgeRouter and it restarted multiple times instead of > > booting > > /bsd > > > > When I had a chance to boot it correctly, I noticed that sysmerge and > >

Re: empty rc.firsttime when installing

2020-07-14 Thread Stuart Henderson
On 2020/07/14 15:03, Denis Fondras wrote: > I was upgrading an EdgeRouter and it restarted multiple times instead of > booting > /bsd > > When I had a chance to boot it correctly, I noticed that sysmerge and > fw_update > were run multiple times. > > This diff avoids filling rc.firsttime and

Re: empty rc.firsttime when installing

2020-07-14 Thread Antoine Jacoutot
Hmm. rc.firsttime could be populated in advance by configuration tools and what now and in this case you will loose the changes, no? — Antoine > On 14 Jul 2020, at 15:04, Denis Fondras wrote: > > I was upgrading an EdgeRouter and it restarted multiple times instead of > booting > /bsd > >

Re: empty rc.firsttime when installing

2020-07-14 Thread Florian Obser
On Tue, Jul 14, 2020 at 03:03:33PM +0200, Denis Fondras wrote: > I was upgrading an EdgeRouter and it restarted multiple times instead of > booting > /bsd > > When I had a chance to boot it correctly, I noticed that sysmerge and > fw_update > were run multiple times. > > This diff avoids

empty rc.firsttime when installing

2020-07-14 Thread Denis Fondras
I was upgrading an EdgeRouter and it restarted multiple times instead of booting /bsd When I had a chance to boot it correctly, I noticed that sysmerge and fw_update were run multiple times. This diff avoids filling rc.firsttime and rc.sysmerge. Index: distrib/miniroot/install.sub

Re: [PATCH} Optimized rasops32 putchar

2020-07-14 Thread Frederic Cambus
On Sun, Jul 12, 2020 at 07:16:13PM +0200, Frederic Cambus wrote: > On Fri, Jun 26, 2020 at 07:42:50AM -0700, jo...@armadilloaerospace.com wrote: > > Optimized 32 bit character rendering with unrolled rows and pairwise > > foreground / background pixel rendering. > > > > If it weren't for the 5x8

Re: timekeep: tk_generation problem

2020-07-14 Thread Mark Kettenis
> Date: Mon, 13 Jul 2020 17:07:31 -0400 > From: George Koehler > > On Mon, 13 Jul 2020 01:18:14 -0500 > Scott Cheloha wrote: > > > To review, the update protocol is: > > > > 1. Set tk_generation to zero; the update has begun. > > > > 2. Memory barrier. The side effects of step (1) are

Re: disable libc sys wrappers?

2020-07-14 Thread Paul Irofti
On 13.07.2020 20:43, Ted Unangst wrote: On 2020-07-09, Theo de Raadt wrote: Added a -T option to ktrace for transparency. I got ambitious here and made it take suboptions, anticipating that other transparency modifications may be desired. Please don't do that. Here is a simpler version.

Re: pf: remove ptr_array from struct pf_ruleset

2020-07-14 Thread Alexandr Nedvedicky
Hello Klemens, > `ptr_array' is allocated momentarily through mallocarray(9) and gets > filled with the TAILQ entries, the sole user pfsync(4) can then access > the list of rules by index to simply pick the n-th rule in a ruleset > during state insertion. > > I came here due to the zero size

mktestdata.sh make effective use of character classes

2020-07-14 Thread Jordan Geoghegan
Hello, This is my first diff I've submitted here, so I imagine there's a dozen things I'm missing/clueless about. I've been making an effort to start browsing the tree and reading the code regularly. I came across this file, I know it's a regress test, so there may be some context/history

Re: mcx(4) RSS

2020-07-14 Thread David Gwynne
> On 14 Jul 2020, at 4:40 pm, Jonathan Matthew wrote: > > mcx(4) is almost ready to enable RSS, except arm64 doesn't yet support > mapping interrupts to cpus. Until that's in place, here's a diff with the > missing pieces from the driver in case anyone wants to test. This will > enable up

mcx(4) RSS

2020-07-14 Thread Jonathan Matthew
mcx(4) is almost ready to enable RSS, except arm64 doesn't yet support mapping interrupts to cpus. Until that's in place, here's a diff with the missing pieces from the driver in case anyone wants to test. This will enable up to 8 rx/tx queues, depending on the number of cpus available. Index:

Re: Stuck in Needbuf state, trying to understand (6.7)

2020-07-14 Thread Bob Beck
On Mon, Jun 29, 2020 at 03:56:43PM -0400, sven falempin wrote: > On Mon, Jun 29, 2020 at 12:58 PM sven falempin > wrote: > > It works in the original problematic setup. > > Will it go to base ? > Yes. revision 1.201 date: 2020/07/14 06:02:50; author: beck; state: Exp; lines: +9 -3;