Re: sensor value last change time not updated?

2020-08-25 Thread Paul de Weerd
Hi Mark, Thanks for your reply. On Tue, Aug 25, 2020 at 09:27:20PM +0200, Mark Kettenis wrote: | > I've dug out my stash of weird usb devices and found another sensor (a | > uthum(4), with only temperature support). I have a few other sensors | > in live machines too (acpitz(4), cpu(4),

Re: sensor value last change time not updated?

2020-08-25 Thread Paul de Weerd
truct uthum_sof temp += sc->sc_sensor[sensor].cal_offset * 1; sc->sc_sensor[sensor].sensor.value = temp; sc->sc_sensor[sensor].sensor.flags &= ~SENSOR_FINVALID; + microtime(>sc_sensor[sensor].sensor.tv);

Re: sensor value last change time not updated?

2020-08-25 Thread Paul de Weerd
On Tue, Aug 25, 2020 at 01:38:20PM -0600, Theo de Raadt wrote: | What you are doing wasn't the purpose of the time field. It was added | only for time sensors, and it looks like someone added it to other | sensors. And now it must suddenly be for all of them?? Sorry - I may have introduced some

Re: sensor value last change time not updated?

2020-08-25 Thread Paul de Weerd
Hi Theo, On Tue, Aug 25, 2020 at 01:33:28PM -0600, Theo de Raadt wrote: | > I don't understand the point. None of the sensor drivers set that | > member except the timedelta sensors. I don't think adding code to do | > so to all sensor drivers makes sense. | | That is correct. Non-time

Typo fix in comment sys/dev/usb/ugold.c

2020-08-15 Thread Paul de Weerd
While looking at ugold.c I noticed a typo in a comment. Diff below. Cheers, Paul Index: ugold.c === RCS file: /home/OpenBSD/cvs/src/sys/dev/usb/ugold.c,v retrieving revision 1.14 diff -u -p -r1.14 ugold.c --- ugold.c 5 Oct

Re: sensor value last change time not updated?

2020-08-15 Thread Paul de Weerd
14, 2020 at 02:50:39PM +0200, Hiltjo Posthuma wrote: | On Fri, Aug 14, 2020 at 01:46:57PM +0200, Paul de Weerd wrote: | > Hi all, | > | > I'm trying to read temperature sensor values from my ugold(4) device. | > Seems to work alright (I get the same temperature reading as sysc

missing support for OHMS and ENERGY sensors in sensorsd

2020-09-21 Thread Paul de Weerd
Hi all, While browsing sensorsd.c for inspiration for a small project I'm working on, I noticed that both src/usr.sbin/sensorsd/sensorsd.c and src/sbin/sysctl/sysctl.c have a 'print_sensor' function that returns/prints the value of the given sensor, including unit. However, sensorsd doesn't

Re: [PATCH] fast conditional console scrolling

2020-06-26 Thread Paul de Weerd
Hi John, I tried your diff. I don't quite see the same 3x improvement that you report, more like 2x. I timed 7 runs of ls -R /usr/ports: Before diff, time ls -R /usr/ports | wc -l 2.897s on average After diff, time ls -R /usr/ports | wc -l 2.707s on average Before diff, time ls -R

Re: [PATCH] fast conditional console scrolling

2020-06-27 Thread Paul de Weerd
the "Optimized rasops32 putchar" patch I just posted, you | should see another significant speedup. | | | Original Message | Subject: Re: [PATCH] fast conditional console scrolling | From: Paul de Weerd | Date: Fri, June 26, 2020 1:23 am | To: jo...@armadilloaerospace.com |

Re: acme-client config grammar improvements

2020-07-15 Thread Paul de Weerd
On Thu, Jul 16, 2020 at 07:40:35AM +0200, Daniel Eisele wrote: | Also it would be nice to have a feature to update all domains of the | config file. I currently do that in a shell script by parsing the output | of acme-client -nv with sed and then calling acme-client multiple times. What I have

find -exec util {} arg + confusion

2020-11-12 Thread Paul de Weerd
Hi all, I misread find(1) and did: [weerdpom] $ find path/to/cam -name \*.JPG -exec cp {} path/to/store + find: -exec no terminating ";" or "+" That was somewhat surprising - there is a terminating "+". The error really is that the "+" doesn't follow immediately after the "{}" (which the

Re: find -exec util {} arg + confusion

2020-11-16 Thread Paul de Weerd
Hi Andreas, On Mon, Nov 16, 2020 at 08:53:36AM +0100, Andreas Kusalananda Kähäri wrote: | On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: | > Hi all, | > | > I misread find(1) and did: | > | > [weerdpom] $ find path/to/cam -name \*.JPG -exec cp {} path/to/store +

Re: find -exec util {} arg + confusion

2020-11-16 Thread Paul de Weerd
Hi Alexander, On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: | I googled for "POSIX find", and hit this: | | https://pubs.opengroup.org/onlinepubs/009695399/utilities/find.html | | => "Only a plus sign that follows an argument containing the two | characters "{}" shall

Re: find -exec util {} arg + confusion

2020-11-17 Thread Paul de Weerd
On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: | On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: | > Hi Alexander, | > | > On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: | > | I googled for "POSIX find", and hit th

Re: find -exec util {} arg + confusion

2020-11-15 Thread Paul de Weerd
ot; should follow {}", + isok ? "-ok" : "-exec"); + } } } On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: | Hi all, | | I misread find(1) and did: | | [weerdpom] $ find path/to/cam

Re: setitimer(2): don't round up it_value

2021-05-12 Thread Paul de Weerd
Hi Scott, Thanks for this work! I see significant improvement with my test code (see below; obviously focussing quite specificially on one thing). Before your diff (snapshot from a few days ago; OpenBSD 6.9-current (GENERIC.MP) #1: Mon May 3 11:04:25 MDT 2021) I got: [weerd@pom] $ ./measure

ntpd constraints and caching proxies (CDNs)

2021-06-04 Thread Paul de Weerd
Hi all, I was investigating some 'unsupported date format' messages that ntpd was logging and found that one constraint server served a time that was quite a ways off from actual time. Turns out that the website in question is fronted by some CDN that caches the page, including the date:-header.

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-19 Thread Paul de Weerd
For the record: I tested this on a WordPress instance and it fixed the problem for me. It was also visible in roundcubemail and wikimedia (firefox and safari showed the issue, chrome on the company laptop did not). Thanks Florian! Paul On Wed, May 19, 2021 at 08:44:47PM +0200, Florian Obser

Re: ucc(4): consumer control keyboard device driver

2021-08-17 Thread Paul de Weerd
Hi Anton, Thanks - I've applied your diff and built a kernel with it. Full dmesg (both before and after) at the end of this mail, diff is: -uhid2 at uhidev3 reportid 3: input=3, output=0, feature=0 +ucc0 at uhidev3 reportid 3 keys 24, mappings 7 +wskbd3 at ucc0 mux 1 -wskbd3 at ukbd2 mux 1

allow KARL with config(8)'d kernels

2021-08-24 Thread Paul de Weerd
00 - +++ kernel.conf.5 24 Aug 2021 07:23:07 - @@ -0,0 +1,46 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2021 Paul de Weerd +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted,

reduce debug logging from slowcgi

2021-08-31 Thread Paul de Weerd
Hi all, On a busy-ish site, I found that slowcgi is doing quite excessive logging: every single environment variable is logged on a separate logline. There's at least 17 variables per hit, but I've seen it go up to 35. If you're writing debug logs from syslog, that adds up rather quickly. Of

Re: allow KARL with config(8)'d kernels

2021-08-31 Thread Paul de Weerd
t the existance of this mechanism | in the config(8) and boot_config(8) manual pages, a better name will | sneak up on us. | | Paul de Weerd wrote: | | > Hi Theo, | > | > That's a good point, but I have no better alternative. kernel.conf | > was the best I could come up with, as it is a configur

Re: allow KARL with config(8)'d kernels

2021-08-29 Thread Paul de Weerd
1970 00:00:00 - +++ libexec/reorder_kernel/kernel.conf.524 Aug 2021 07:23:07 - @@ -0,0 +1,46 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2021 Paul de Weerd +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" p

Re: allow KARL with config(8)'d kernels

2021-08-29 Thread Paul de Weerd
scoverable. | | Paul de Weerd wrote: | | > Got some more positive feedback off-list, which reminded me that | > there's a small piece missing: | > | > Index: changelist | > === | > RCS file: /home/Open

Re: allow KARL with config(8)'d kernels

2021-08-25 Thread Paul de Weerd
Robert, Sebastien and Stuart, Thanks for your constructive and postive feedback. Combined with some off-list (positive) feedback, it suggests this is at least worth further consideration. On Tue, Aug 24, 2021 at 08:05:37PM +0200, Robert Nagy wrote: | I am happy to see this. All for it. Did you

Re: allow KARL with config(8)'d kernels

2021-09-07 Thread Paul de Weerd
1970 00:00:00 - +++ libexec/reorder_kernel/bsd.re-config.5 7 Sep 2021 16:16:28 - @@ -0,0 +1,46 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2021 Paul de Weerd +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose

Re: allow KARL with config(8)'d kernels

2021-09-07 Thread Paul de Weerd
On Tue, Sep 07, 2021 at 07:57:55PM +0200, Robert Nagy wrote: | On 07/09/21 19:31 +0200, Paul de Weerd wrote: | > Hi all, | > | > On Tue, Sep 07, 2021 at 02:30:43PM +0200, Robert Nagy wrote: | > | /etc/reorder_kernel.conf | > | > Thank you for your suggest Robert! In the m

Re: Unwind + NSD usage question

2021-09-28 Thread Paul de Weerd
Hi, Why do you set your NSD as a forwarder? How is unbound supposed to know what queires should go to your NSD versus the rest of the internet? Otto's answer is a good solution, but I wanted to share mine: If you have your NSD setup running to only serve those 'router.home.arpa' records and

Re: Unwind + NSD usage question

2021-09-28 Thread Paul de Weerd
On Tue, Sep 28, 2021 at 12:25:30PM +0200, Paul de Weerd wrote: | Otto's answer is a good solution, but I wanted to share mine: Read Otto's answer too fast - he's basically talking about the same solution I think. Unbound has another alternative where you configure it to serve specific records

New hw.perfpolicy behavior

2021-11-02 Thread Paul de Weerd
A recent commit by Theo changed the hw.perfpolicy behavior to always run at full speed when AC power is on. This means that my workstation (and servers, once I upgrade them) now consumes significantly more power, even though they usually idle. [weerd@pom] $ sysctl

Re: New hw.perfpolicy behavior

2021-11-03 Thread Paul de Weerd
On Tue, Nov 02, 2021 at 12:30:56PM -0600, Theo de Raadt wrote: | Paul de Weerd wrote: | | > A recent commit by Theo changed the hw.perfpolicy behavior to always | > run at full speed when AC power is on. This means that my workstation | > (and servers, once I upgrade them) now

Re: dhcpleased(8): close unneeded bpf FDs

2022-07-14 Thread Paul de Weerd
On Thu, Jul 14, 2022 at 08:20:41AM +0200, Florian Obser wrote: | On 2022-07-12 14:35 +02, Florian Obser wrote: | > When the autoconf flag flaps around we might end up with multiple bpf | > FDs in flight. Things then get confusing. The kernel tells us we can | > read from the bpf FD but the data

Re: Making wscons a bit more like xterm

2023-01-06 Thread Paul de Weerd
On Wed, Jan 04, 2023 at 05:42:31PM -0300, Crystal Kolipe wrote: | Hopefully it'll fix the problem. Tested with tmux, the spurious ^@'s are now indeed gone. I see there's a new diff available, so I'll try that out in a bit. Paul -- >[<++>-]<+++.>+++[<-->-]<.>+++[<+

Re: Making wscons a bit more like xterm

2023-01-04 Thread Paul de Weerd
Hi Crystal, I tried your patch on my laptop. With it applied, and my TERM set to 'xterm', I do get colors in mutt and tmux. The latter, however, shows '^@^@' before the PS1 prompt upon starting a new session (`tmux new`), behavior I don't see with a 'real' xterm. I like the idea, thanks for

Re: Making wscons a bit more like xterm

2023-01-04 Thread Paul de Weerd
On Wed, Jan 04, 2023 at 02:33:57PM -0300, Crystal Kolipe wrote: | On Wed, Jan 04, 2023 at 04:42:55PM +0100, Paul de Weerd wrote: | > Hi Crystal, | > | > I tried your patch on my laptop. With it applied, and my TERM set to | > 'xterm', I do get colors in mutt and tmux. | | Gr

Re: ACPI diff for testing

2023-03-10 Thread Paul de Weerd
Hi Mark, On Thu, Mar 09, 2023 at 05:23:55PM +0100, Mark Kettenis wrote: | > Date: Thu, 09 Mar 2023 14:48:25 +0100 | > From: Mark Kettenis | > | > The diff below fixes an issue with the way we attach "APCI devices". | > As with all ACPI diffs, this may potentially introduce regressions, so | >

Recognize Kingston KC3000 NVME SSD

2023-03-19 Thread Paul de Weerd
I put a Kingston KC3000 NVME SSD[1] in my new machine. This diff recognizes that device: Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.2026 diff -u -p -r1.2026 pcidevs --- pcidevs 19 Mar 2023

add Aquantia AQC113CS to pcidevs

2023-03-19 Thread Paul de Weerd
My new motherboard has a 10GB/s interface that doesn't work with -current. It's this thing: --- pcidump -v 7:0:0 - 7:0:0: Aquantia unknown 0x: Vendor ID: 1d6a, Product ID: 94c0 0x0004: Command: 0006, Status: 0010

ntpd: log hostname of constraint with IP address

2023-04-20 Thread Paul de Weerd
While debugging some NTP weirdness, I noticed an outlier amongst the constraints (all except one had an offset less than 1s, the one outlier was over 7 hours off). Unfortunately, I couldn't tell which constraint had the outlier, because the IP's rDNS didn't correspond to one of the constraints

Re: Recognize Kingston KC3000 NVME SSD

2023-04-22 Thread Paul de Weerd
ping Is this worth it? Rebased diff at the bottom for convenience On Sun, Mar 19, 2023 at 05:12:18PM +0100, Paul de Weerd wrote: | I put a Kingston KC3000 NVME SSD[1] in my new machine. This diff | recognizes that device: | | Index: pcidevs

Re: refactor mbuf parsing on driver level

2023-02-07 Thread Paul de Weerd
On Tue, Feb 07, 2023 at 01:09:25AM +0100, Christian Weisgerber wrote: | Jan Klemkow: | | > > igc(4) has very similar code, but I don't have access to a machine | > > with that hardware. | > | > Send me an ssh-key and I give you access to this machine: | | Alternatively, here's the diff, so

Re: ure(4): add support for RTL8153D

2023-05-04 Thread Paul de Weerd
Hi Kevin, This seems to work fine on my machine. The ure0 is built into my monitor: ure0 at uhub9 port 3 configuration 1 interface 0 "Realtek USB 10/100/1000 LAN" rev 3.20/33.00 addr 4 ure0: RTL8153D (0x7420), address c8:4b:d6:af:a7:8d I can get both v4 and v6 addresses over this interface

Re: posix_spawn(3): explain that handling NULL envp is an extension

2023-06-26 Thread Paul de Weerd
Having never heard of posix_spawn(3), I read the full manpage and (besides wondering "what's the point"), found that it's misspelled Ed Schouten's name: Index: posix_spawn.3 === RCS file: /cvs/src/lib/libc/gen/posix_spawn.3,v

Re: remove net.inet6.ip6.soiikey from userland

2023-05-20 Thread Paul de Weerd
On Sat, May 20, 2023 at 05:33:11PM +0200, Florian Obser wrote: | In case this turns out to be useful for unlocking work in the kernel. | | It's a minimum diff, if we want to go this way we probably want to move | init_soiikey() to the engine process and stop bouncing through the main | process

<    1   2