Loongson 3A/3B hardware ready to donate

2020-07-15 Thread PengAn Zhou
I heard about OpenBSD/Loongson still doesn't support newer Loongson 3A/3B system, then got contact with some Lemote staff and they tell me there are some Loongson 3A1000 and 3B1500 machine in are ready to donate. These board was used as Debian auto-build server and can ship from Germany. Also,

Re: acme-client config grammar improvements

2020-07-15 Thread Daniel Eisele
Am 16.07.2020 um 07:49 schrieb Paul de Weerd: > What I have is this: > > for DOMAIN in `awk '/^domain/ {print $2}' /etc/acme-client.conf` My script is similar to this... > As I need to update OCSP staples per domain anyway, doing a per-domain > song-and-dance makes sense for me. Since I set the

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 is

Re: acme-client config grammar improvements

2020-07-15 Thread Daniel Eisele
Am 15.07.2020 um 23:51 schrieb Sebastian Benoit: >> src/usr.sbin/acme-client/parse.y: >> * The grammar allows the user to omit the newline after the first line >> in a domain or authority block. > > Yes. I'm still pnodering this. What are the chances that someone does that? > > Probably no one do

Re: timekeep: fixing large skews on amd64 with RDTSCP

2020-07-15 Thread Scott Cheloha
On Sat, Jul 11, 2020 at 01:16:43PM +0200, Mark Kettenis wrote: > > From: Paul Irofti > > Date: Sat, 11 Jul 2020 13:50:37 +0300 > > > > On 2020-07-11 13:46, Mark Kettenis wrote: > > >> From: Paul Irofti > > >> Date: Sat, 11 Jul 2020 13:32:22 +0300 > > >> > > >> Hi, > > >> > > >> Getting lots of m

H3 volt/freq problems

2020-07-15 Thread adr
Hello, I feel like intruding posting to this list, let me know if that is the case. This post: https://marc.info/?l=openbsd-arm&m=159333005826561&w=2 made me try again OpenBSD on an H3 board, an Orange Pi One unusable with random faults at boot. The firs thing I noticed was that PLL_CPUX wasn't

Re: xhci(4) isoc: fix bogus handling of chained TRBs

2020-07-15 Thread Marcus Glocker
On Wed, 15 Jul 2020 21:28:29 + sc.dy...@gmail.com wrote: > hi, > > The patch works well on Intel PCH xhci, but not on AMD Bolton xHCI. > I'll investigate this problem. Ok, thanks for checking this - I unfortunately only can test this on a Intel xhci currently. > BTW please check if malloc r

Re: acme-client config grammar improvements

2020-07-15 Thread Sebastian Benoit
Daniel Eisele(daniel_eis...@gmx.de) on 2020.07.15 09:32:37 +0200: > Hi, > > I'm currently porting acme-client to FreeBSD and while doing that I've > noticed a few small issues. > > src/usr.sbin/acme-client/parse.y: > * The grammar allows the user to omit the newline after the first line > in a

Re: LOCALE_HOME for strtime(3)

2020-07-15 Thread Todd C . Miller
Upstream tzcode removed the LOCALE_HOME bits in 2014. There's no reason for us to keep it. - todd

LOCALE_HOME for strtime(3)

2020-07-15 Thread Jan Stary
The OpenBSD libc tends to ignore the LC_* except LC_CTYPE. However, strftime(3) seems to support a LOCALE_HOME thing, where the user overrides LC_TIME with his own names of months etc. Looking at http://cvsweb.openbsd.org/src/lib/libc/time/strftime.c , it has been there since the beginning. The ma

Re: xhci(4) isoc: fix bogus handling of chained TRBs

2020-07-15 Thread sc . dying
hi, The patch works well on Intel PCH xhci, but not on AMD Bolton xHCI. I'll investigate this problem. BTW please check if malloc returns NULL. On 2020/07/13 09:59, Marcus Glocker wrote: > On Sat, 11 Jul 2020 23:43:43 +0200 > Marcus Glocker wrote: > >> On Sat, 11 Jul 2020 20:14:03 +0200 >> Ma

Re: Add white temperature balance adjustability to video(1)

2020-07-15 Thread Marcus Glocker
On Wed, 15 Jul 2020 21:15:37 +0100 Laurence Tratt wrote: > On Wed, Jul 15, 2020 at 08:33:54PM +0200, Marcus Glocker wrote: > > Hello Marcus, > > Thanks for your comments. I agree with all but one, and attach a new > diff. > > >> +#define CTRL_WHITE_BALANCE_TEMPERATURE 7 > >> + { "white_balanc

Re: Add white temperature balance adjustability to video(1)

2020-07-15 Thread Laurence Tratt
On Wed, Jul 15, 2020 at 08:33:54PM +0200, Marcus Glocker wrote: Hello Marcus, Thanks for your comments. I agree with all but one, and attach a new diff. >> +#define CTRL_WHITE_BALANCE_TEMPERATURE 7 >> +{ "white_balance_temperature", > I think we should replace '_' with ' ' just to make the o

Re: Add white temperature balance adjustability to video(1)

2020-07-15 Thread Marcus Glocker
Oh, and lastly I forget, we would need a man page update as well listing the new knob :-) On Wed, 15 Jul 2020 20:33:54 +0200 Marcus Glocker wrote: > Thanks for the diff Laurie - See my comments inline in your diff. > > Marcus > > On Mon, 13 Jul 2020 17:19:41 +0100 > Laurence Tratt wrote: > >

Re: Add white temperature balance adjustability to video(1)

2020-07-15 Thread Marcus Glocker
Thanks for the diff Laurie - See my comments inline in your diff. Marcus On Mon, 13 Jul 2020 17:19:41 +0100 Laurence Tratt wrote: > This patch adds the ability to control the white balance temperature > on webcams in video(1). This is bound to keys W/w in steps of +/-10K > (because changing the

Re: Use VGA text mode palette RGB values in rasops(9)

2020-07-15 Thread Theo de Raadt
> So here is a new iteration taking feedback into account, using the > #if WS_DEFAULT_BG == WSCOL_WHITE check for clarity, and also switching > the foreground color of printed kernel messages to light cyan to improve > contrast and readability. I really dislike how two issues are being mixed into

Re: iked.conf.5: provide gre example

2020-07-15 Thread Theo de Raadt
It is extremely unwise to use DNS names at this level (or things which look like DNS names). The same problems that pf has with DNS, are present here. You really don't want people to get into this habit. Klemens Nanni wrote: > Here's an addition to EXAMPLES for one of my frequent use cases tha

Re: Use VGA text mode palette RGB values in rasops(9)

2020-07-15 Thread Frederic Cambus
On Wed, Jul 08, 2020 at 12:37:11PM +1000, Jonathan Gray wrote: > Thanks for the explanation. The proposal makes more sense from the > point of view of the existing colours being darker for openboot black > on white. > > #if WS_DEFAULT_BG == WSCOL_WHITE > > old > > #else > > new > > #endif >

Re: iked.conf.5: provide gre example

2020-07-15 Thread Tobias Heider
On Wed, Jul 15, 2020 at 05:34:31PM +0200, Klemens Nanni wrote: > Here's an addition to EXAMPLES for one of my frequent use cases that > finally "just works". > > First transport mode for child SAs was implemented, then a few > interoperability issues have been identified with peers other than iked

iked.conf.5: provide gre example

2020-07-15 Thread Klemens Nanni
Here's an addition to EXAMPLES for one of my frequent use cases that finally "just works". First transport mode for child SAs was implemented, then a few interoperability issues have been identified with peers other than iked, now tobhe fixed pubkey (`rsa' ikeauth, default) usage based on this. F

Re: no need for "extern optind" etc

2020-07-15 Thread Mark Kettenis
> Date: Wed, 15 Jul 2020 17:05:57 +0200 > From: Jan Stary > > This is in the vein of > https://marc.info/?l=openbsd-cvs&m=158170787221615&w=2 > > declares "extern int optind" and friends, > so there is no need to declare them again. > Still builds on current/amd64. > > Leaving out gnu, nsd, un

Re: no need for "extern optind" etc

2020-07-15 Thread Theo de Raadt
If I remember the story right, historically unistd.h did not declare those two, so to encourage portable reuse of parts of our tree they remained. You touch the ssh directory, and I think if that was commited you would break downstream users, unless -portable handled it. Can a posix laywer pipe u

no need for "extern optind" etc

2020-07-15 Thread Jan Stary
This is in the vein of https://marc.info/?l=openbsd-cvs&m=158170787221615&w=2 declares "extern int optind" and friends, so there is no need to declare them again. Still builds on current/amd64. Leaving out gnu, nsd, unbound (third party) and tic (is that third party)? Also leaving out pr and rc

Re: Initialize sis_ring_init() 'sis_rx_prod' and 'sis_rx_cons' to 0

2020-07-15 Thread Theo de Raadt
At driver attach, cd (inside M_ZERO softc) is 0. But if a reset (or suspend/resume) happens, then sis_rx_prod/sis_rx_cons will be within the middle of the ring, and it isn't clear if everything else in the chip+driver are ready for that. ok deraadt Kevin Lo wrote: > ok? > > Index: sys/dev/p

adjtime(2): distribute skew along arbitrary runtime period

2020-07-15 Thread Scott Cheloha
Hi, adjtime(2) skews the clock at up to 5000ppm per second. The way this actually happens is pretty straightforward: at the start of every UTC second we call ntp_update_second() from tc_windup() and reset th_adjustment. th_adjustment is then mixed into the scale for one UTC second. This cycle s

Re: [PATCH} Optimized rasops32 putchar

2020-07-15 Thread Frederic Cambus
On Tue, Jul 14, 2020 at 12:15:37PM +0200, Frederic Cambus wrote: > The diff makes sense to me, I will commit it this week with some minor > style(9) fixes for the switch statement (don't indent the case), unless > I hear objections. Committed, thanks again!

Initialize sis_ring_init() 'sis_rx_prod' and 'sis_rx_cons' to 0

2020-07-15 Thread Kevin Lo
ok? Index: sys/dev/pci/if_sis.c === RCS file: /cvs/src/sys/dev/pci/if_sis.c,v retrieving revision 1.137 diff -u -p -u -p -r1.137 if_sis.c --- sys/dev/pci/if_sis.c10 Jul 2020 13:26:38 - 1.137 +++ sys/dev/pci/if_sis.c

acme-client config grammar improvements

2020-07-15 Thread Daniel Eisele
Hi, I'm currently porting acme-client to FreeBSD and while doing that I've noticed a few small issues. src/usr.sbin/acme-client/parse.y: * The grammar allows the user to omit the newline after the first line in a domain or authority block. * The grammar uses right recursion for lists, left rec