Re: monotonic time going back by wrong skews

2021-04-05 Thread Marcus MERIGHI
Morning! scottchel...@gmail.com (Scott Cheloha), 2021.04.05 (Mon) 22:25 (CEST): > To be clear, userland TSC is disabled on this machine, yes? And this > is a physical server, not a VM? $ sysctl |grep tsc kern.timecounter.hardware=tsc Do you want me to disable this? yasuoka@ found a dmesg with

amd64: add MSR_TSC_ADJUST

2021-04-05 Thread Scott Cheloha
Intel calls it "IA32_TSC_ADJUST". Is "MSR_TSC_ADJUST" fine or should it be "MSR_IA32_TSC_ADJUST"? We have a feature flag for this one already, SEFF0EBX_TSC_ADJUST. Index: specialreg.h === RCS file:

Re: patch vmm(4) - vmm(4): wire faulted in pages might have gone too far.

2021-04-05 Thread Dave Voutila
Adam Steen writes: > Hi > > I believe the change [1] vmm(4): wire faulted in pages, might have been > a bit heavy handed a broken the use of VMM_IOC_MPROTECT_EPT ioctl. > > [1] https://marc.info/?l=openbsd-cvs=161144130825752 > > please see the patch below which restores this functionality > >

Re: wcwidth of soft hyphen

2021-04-05 Thread Lauri Tirkkonen
Hi Ingo, On Mon, Apr 05 2021 20:30:39 +0200, Ingo Schwarze wrote: > Whether all control chars are always width 0 can maybe also be > disputed. Again, the stronger argument seems to me that they are. > If they weren't, they would not be control characters but alphanumeric, > punctuation, spaces,

Re: httpd.conf grammar

2021-04-05 Thread Raf Czlonka
Hello, Could this get committed before the freeze? Cheers, Raf On Mon, Mar 22, 2021 at 02:20:42PM GMT, Jason McIntyre wrote: > On Mon, Mar 22, 2021 at 01:33:34PM +, Raf Czlonka wrote: > > On Mon, Mar 22, 2021 at 07:08:32AM GMT, Jason McIntyre wrote: > > > On Sun, Mar 21, 2021 at 10:58:02PM

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Marcus Glocker
On Mon, Apr 05, 2021 at 11:27:10PM +0200, Mark Kettenis wrote: [...] > > > > How common is it to explain the system behavior in cases like this? > > > > Would it be less surprising (generate less misc@ traffic) if we printed > > > > a note explaining why the camera was skipped? > > > > > > I

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Mark Kettenis
> Date: Mon, 5 Apr 2021 23:19:02 +0200 (CEST) > From: Mark Kettenis > > > Date: Mon, 5 Apr 2021 23:15:23 +0200 > > From: Marcus Glocker > > > > On Mon, Apr 05, 2021 at 07:30:43AM -0700, Greg Steuck wrote: > > > > > OK gnezdo with a usability question inline. > > > > Thanks. See below. > >

/usr/src/*bin: remove unused variables

2021-04-05 Thread Klemens Nanni
COPTS=-Wunused yielded the following diff which removes unused variables as well as one function. No object change for any of those programs. OK? Index: sbin/vnconfig/vnconfig.c === RCS file: /cvs/src/sbin/vnconfig/vnconfig.c,v

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Patrick Wildt
Am Mon, Apr 05, 2021 at 11:19:02PM +0200 schrieb Mark Kettenis: > > Date: Mon, 5 Apr 2021 23:15:23 +0200 > > From: Marcus Glocker > > > > On Mon, Apr 05, 2021 at 07:30:43AM -0700, Greg Steuck wrote: > > > > > OK gnezdo with a usability question inline. > > > > Thanks. See below. > > > > >

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Mark Kettenis
> Date: Mon, 5 Apr 2021 23:15:23 +0200 > From: Marcus Glocker > > On Mon, Apr 05, 2021 at 07:30:43AM -0700, Greg Steuck wrote: > > > OK gnezdo with a usability question inline. > > Thanks. See below. > > > Marcus Glocker writes: > > > > > martijn@ has recently reported that in his machine

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Marcus Glocker
On Mon, Apr 05, 2021 at 07:30:43AM -0700, Greg Steuck wrote: > OK gnezdo with a usability question inline. Thanks. See below. > Marcus Glocker writes: > > > martijn@ has recently reported that in his machine he has two cams > > of which one is doing IR, which isn't really supported by

Re: monotonic time going back by wrong skews

2021-04-05 Thread Scott Cheloha
On Mon, Apr 05, 2021 at 09:29:10PM +0200, Marcus MERIGHI wrote: > Hello! > > scottchel...@gmail.com (Scott Cheloha), 2021.03.25 (Thu) 23:28 (CET): > > Feel free to share your raw data. > > I think I followed the instructions; is it expected to get a lot of > > pstat: cannot read 0x9704:

Re: mandoc: -Tlint: search /usr/local/man as well

2021-04-05 Thread Klemens Nanni
On Mon, Apr 05, 2021 at 06:47:58PM +0200, Ingo Schwarze wrote: > Hi, > > Klemens Nanni wrote on Sun, Apr 04, 2021 at 03:54:43PM +0200: > > On Sun, Apr 04, 2021 at 03:42:03PM +0200, Tim van der Molen wrote: > > >> Doesn't mandoc -Tlint -Wstyle do what you want? > > > I don't think so. Oddly

Re: monotonic time going back by wrong skews

2021-04-05 Thread Marcus MERIGHI
Hello! scottchel...@gmail.com (Scott Cheloha), 2021.03.25 (Thu) 23:28 (CET): > Feel free to share your raw data. I think I followed the instructions; is it expected to get a lot of pstat: cannot read 0x9704: invalid address (9704) and that the script takes about six minutes to run?

Re: wcwidth of soft hyphen

2021-04-05 Thread Theo de Raadt
So, your argument is that displays should remain broken forever. > The bug in NetBSD and Linux should be fixed, but that's off-topic here. If you cannot explain how this problem is going to be fixed (reversed) in these opposing ecosystems (and it is not just Linux and NetBSD), then you've closed

Re: wcwidth of soft hyphen

2021-04-05 Thread Ingo Schwarze
Hi, Martijn van Duren wrote on Thu, Apr 01, 2021 at 09:30:36AM +0200: > When it comes to these discussions I prefer to go back to the standards I would propose an even more rigorous stance: not only go back to the standards, but use whatever the Unicode data files (indirectly, via the Perl

Re: vmd(8) support for gzipped kernels

2021-04-05 Thread Dave Voutila
Dave Voutila writes: > Josh Rickmar writes: > >> On Fri, Mar 26, 2021 at 12:22:49PM +0100, Klemens Nanni wrote: >>> On Fri, Mar 26, 2021 at 07:17:26AM -0400, Dave Voutila wrote: >>> > There was a follow-up diff changing some includes, but I'd like to keep >>> > that cleanup separate. As i

Re: monotonic time going back by wrong skews

2021-04-05 Thread Theo de Raadt
Mark Kettenis wrote: > Before you go further down this path, please realize that "fixing" the > TSC this way is racy in much the same ways as determining the skew is. > If an SMM or a VM exit happens between reading the TSC and the actual > write to the MSR, the new value of the TSC will be off

Re: monotonic time going back by wrong skews

2021-04-05 Thread Mark Kettenis
> Date: Sat, 3 Apr 2021 22:21:02 -0500 > From: Scott Cheloha > > On Fri, Apr 02, 2021 at 10:37:36AM -0700, Mike Larkin wrote: > > On Thu, Apr 01, 2021 at 06:43:30PM -0500, Scott Cheloha wrote: > > > > > > [...] > > > > > > Hmmm. Being able to work around this would be nice. > > > > > >

Re: monotonic time going back by wrong skews

2021-04-05 Thread Mike Larkin
On Sat, Apr 03, 2021 at 10:21:02PM -0500, Scott Cheloha wrote: > On Fri, Apr 02, 2021 at 10:37:36AM -0700, Mike Larkin wrote: > > On Thu, Apr 01, 2021 at 06:43:30PM -0500, Scott Cheloha wrote: > > > > > > [...] > > > > > > Hmmm. Being able to work around this would be nice. > > > > > > FreeBSD

Re: mandoc: -Tlint: search /usr/local/man as well

2021-04-05 Thread Ingo Schwarze
Hi, Klemens Nanni wrote on Sun, Apr 04, 2021 at 03:54:43PM +0200: > On Sun, Apr 04, 2021 at 03:42:03PM +0200, Tim van der Molen wrote: >> Doesn't mandoc -Tlint -Wstyle do what you want? > I don't think so. Oddly enough, `-Wstyle' does not do what I would > expect: it omits STYLE messages

Re: vmm(4): improve {rd,wr}msr exit handling for both amd & intel

2021-04-05 Thread Bryan Steele
On Mon, Apr 05, 2021 at 09:54:14AM -0400, Dave Voutila wrote: > > Dave Voutila writes: > > > The following diff cleans up and improves MSR-related event handling in > > vmm(4) for when the guest attempts a rdmsr/wrmsr instruction. As > > mentioned in a previous email to tech@ about fixing

Re: ddb: show all mounts: honour softdep

2021-04-05 Thread Klemens Nanni
On Mon, Apr 05, 2021 at 07:47:40AM +, Visa Hankala wrote: > On Sun, Apr 04, 2021 at 11:56:57PM +0200, Klemens Nanni wrote: > > ddb> show all mounts > > mountpoint 0x800c8000 > > flags 4205800 > > vnodecovered 0x0 syncer 0xfd801f247a98 data 0x80087800 > >

Re: vmm(4): improve {rd,wr}msr exit handling for both amd & intel

2021-04-05 Thread Aaron Bieber
Dave Voutila writes: > Dave Voutila writes: > >> The following diff cleans up and improves MSR-related event handling in >> vmm(4) for when the guest attempts a rdmsr/wrmsr instruction. As >> mentioned in a previous email to tech@ about fixing support for 9front >> guests [1], we found some

Re: vmd(8) support for gzipped kernels

2021-04-05 Thread Dave Voutila
Josh Rickmar writes: > On Fri, Mar 26, 2021 at 12:22:49PM +0100, Klemens Nanni wrote: >> On Fri, Mar 26, 2021 at 07:17:26AM -0400, Dave Voutila wrote: >> > There was a follow-up diff changing some includes, but I'd like to keep >> > that cleanup separate. As i mentioned in the other reply, this

Re: vmd(8) support for gzipped kernels

2021-04-05 Thread Josh Rickmar
On Fri, Mar 26, 2021 at 12:22:49PM +0100, Klemens Nanni wrote: > On Fri, Mar 26, 2021 at 07:17:26AM -0400, Dave Voutila wrote: > > There was a follow-up diff changing some includes, but I'd like to keep > > that cleanup separate. As i mentioned in the other reply, this change > > works for me and

Re: monotonic time going back by wrong skews

2021-04-05 Thread Scott Cheloha
> On Apr 5, 2021, at 09:07, Stuart Henderson wrote: > > I've attached r620-E5_2630v2-2p6c2t.tgz, from Dell PE R620 with E5-2630v2. > This is a machine which has "disabling user TSC (skew=XXX)" reported for > some cores: > > Nov 5 16:08:34 pweb /bsd: cpu11: disabling user TSC (skew=-107) > Nov

Re: uvideo(4) new quirk flag UVIDEO_FLAG_NOATTACH

2021-04-05 Thread Greg Steuck
OK gnezdo with a usability question inline. Marcus Glocker writes: > martijn@ has recently reported that in his machine he has two cams > of which one is doing IR, which isn't really supported by uvideo(4). > This IR device attaches always first as uvideo0, so he needs to swap > that regularly

Re: monotonic time going back by wrong skews

2021-04-05 Thread Stuart Henderson
I've attached r620-E5_2630v2-2p6c2t.tgz, from Dell PE R620 with E5-2630v2. This is a machine which has "disabling user TSC (skew=XXX)" reported for some cores: Nov 5 16:08:34 pweb /bsd: cpu11: disabling user TSC (skew=-107) Nov 5 16:08:34 pweb /bsd: cpu13: disabling user TSC (skew=-101) 2 SMT

Re: vmm(4): improve {rd,wr}msr exit handling for both amd & intel

2021-04-05 Thread Dave Voutila
Dave Voutila writes: > The following diff cleans up and improves MSR-related event handling in > vmm(4) for when the guest attempts a rdmsr/wrmsr instruction. As > mentioned in a previous email to tech@ about fixing support for 9front > guests [1], we found some discprepencies between vmm(4)'s

Re: monotonic time going back by wrong skews

2021-04-05 Thread YASUOKA Masahiko
On Mon, 5 Apr 2021 14:24:03 +0200 (CEST) Mark Kettenis wrote: >> Date: Mon, 05 Apr 2021 19:14:49 +0900 (JST) >> From: YASUOKA Masahiko >> >> Hi, >> >> On Mon, 5 Apr 2021 10:43:00 +0300 >> Paul Irofti wrote: >> > On 05.04.2021 06:13, Scott Cheloha wrote: >> >> On Mon, Mar 29, 2021 at

Re: monotonic time going back by wrong skews

2021-04-05 Thread Mark Kettenis
> Date: Mon, 05 Apr 2021 19:14:49 +0900 (JST) > From: YASUOKA Masahiko > > Hi, > > On Mon, 5 Apr 2021 10:43:00 +0300 > Paul Irofti wrote: > > On 05.04.2021 06:13, Scott Cheloha wrote: > >> On Mon, Mar 29, 2021 at 02:00:01PM +0900, YASUOKA Masahiko wrote: > >>> On Thu, 25 Mar 2021 19:41:35

Re: monotonic time going back by wrong skews

2021-04-05 Thread YASUOKA Masahiko
Hi, On Mon, 5 Apr 2021 10:43:00 +0300 Paul Irofti wrote: > On 05.04.2021 06:13, Scott Cheloha wrote: >> On Mon, Mar 29, 2021 at 02:00:01PM +0900, YASUOKA Masahiko wrote: >>> On Thu, 25 Mar 2021 19:41:35 +0100 (CET) >>> Mark Kettenis wrote: > From: Scott Cheloha > Date: Thu, 25 Mar 2021

more MAKEDEV cleanup

2021-04-05 Thread Miod Vallat
The following diff attempts to clean up a few loose ends in the current MAKEDEV files: - remove no-longer applicable device definitions (MSCP and SMD disks, this kind of thing). - makes sure all platforms use the same `ramdisk' target for installation media devices, rather than a mix of

Re: simpleaudio: set sysclk before using it

2021-04-05 Thread Patrick Wildt
Am Sun, Apr 04, 2021 at 11:17:54PM +0200 schrieb Mark Kettenis: > > Date: Sun, 4 Apr 2021 22:24:57 +0200 > > From: Klemens Nanni > > Cc: Mark Kettenis > > > > On Sun, Apr 04, 2021 at 10:01:50PM +0200, Mark Kettenis wrote: > > > > Date: Sun, 4 Apr 2021 21:08:09 +0200 > > > > From: Klemens Nanni

Re: ddb: show all mounts: honour softdep

2021-04-05 Thread Visa Hankala
On Sun, Apr 04, 2021 at 11:56:57PM +0200, Klemens Nanni wrote: > ddb> show all mounts > mountpoint 0x800c8000 > flags 4205800 > vnodecovered 0x0 syncer 0xfd801f247a98 data 0x80087800 > vfsconf: ops 0x812ec530 name "ffs" num 1 ref 1 flags

Re: monotonic time going back by wrong skews

2021-04-05 Thread Paul Irofti
On 05.04.2021 06:13, Scott Cheloha wrote: On Mon, Mar 29, 2021 at 02:00:01PM +0900, YASUOKA Masahiko wrote: On Thu, 25 Mar 2021 19:41:35 +0100 (CET) Mark Kettenis wrote: From: Scott Cheloha Date: Thu, 25 Mar 2021 13:18:04 -0500 On Wed, Mar 24, 2021 at 05:40:21PM +0900, YASUOKA Masahiko

patch vmm(4) - vmm(4): wire faulted in pages might have gone too far.

2021-04-05 Thread Adam Steen
Hi I believe the change [1] vmm(4): wire faulted in pages, might have been a bit heavy handed a broken the use of VMM_IOC_MPROTECT_EPT ioctl. [1] https://marc.info/?l=openbsd-cvs=161144130825752 please see the patch below which restores this functionality Cheers Adam diff