lex: unused variable

2017-08-27 Thread Michael W. Bombardieri
Hello, I spotted an unused variable (r) in filter_apply_chain() function of lex(1). - Michael Index: filter.c === RCS file: /cvs/src/usr.bin/lex/filter.c,v retrieving revision 1.8 diff -u -p -u -r1.8 filter.c --- filter.c17

lex: action_m4_define

2017-08-27 Thread Michael W. Bombardieri
Hello, In lex(1) the function action_m4_define() would raise a fatal error if called. I couldn't see anything calling it though, and the program builds without it. - Michael Index: misc.c === RCS file:

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Peter Hessler
On 2017 Aug 27 (Sun) at 22:30:37 +0200 (+0200), Mark Kettenis wrote: :> Date: Sun, 27 Aug 2017 22:15:46 +0200 :> From: Peter Hessler :> :> This gives us basic support for the Pine64 Pinebook :> :> OK? :> :> $ sysctl hw :> hw.machine=arm64 :> hw.model=ARM Cortex-A53 r0p4

two doas parse.y tweaks

2017-08-27 Thread Ted Unangst
make things a little more convenient. a backslash indicates escape, which we don't need to support for keywords. so always set nonkw for those tokens. this lets "permit \permit" work. there are no keywords after the args keyword, so we can create a lexer backdoor. this lets "permit user cmd ls

Re: arm64 pagezero_cache, page zero performance improvement

2017-08-27 Thread Mark Kettenis
> Date: Sun, 27 Aug 2017 14:42:30 -0400 > From: Dale Rahn > > Performance: use cache zeroing function to pmap_zero_page > > This improves page zeroing (a rather common occurance) by over 8x. > > The only restriction is that pagezero_cache occurs on cached pages, but the >

Re: combined usb rng driver

2017-08-27 Thread Aaron Bieber
On Sun, Aug 27, 2017 at 09:51:23PM +0200, Jasper Lievisse Adriaanse wrote: > Hi > > Instead of adding a new driver for each USB RNG device here's a diff to > combine the existing ualea(4) driver and support for a new device (ChaosKey > support by abieber@) into urng(4). > > The plan is to merge

[PATCH] add initial set of regress tests for vmd

2017-08-27 Thread Carlos Cardenas
Howdy. Below is patch for some initial parsing tests for vmd: * Memory string parsing (too small, invalid size, and rounding) * Max disk path * Max vm name * Max kernel path * Max NICs More tests to come. One item missing is the proper hook into regress/usr.sbin/Makefile as it was unknown if

combined usb rng driver

2017-08-27 Thread Jasper Lievisse Adriaanse
Hi Instead of adding a new driver for each USB RNG device here's a diff to combine the existing ualea(4) driver and support for a new device (ChaosKey support by abieber@) into urng(4). The plan is to merge uonerng(4) into it as well as support for future devices into this single driver. This

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Mark Kettenis
> Date: Sun, 27 Aug 2017 22:15:46 +0200 > From: Peter Hessler > > This gives us basic support for the Pine64 Pinebook > > OK? > > $ sysctl hw > hw.machine=arm64 > hw.model=ARM Cortex-A53 r0p4 > hw.ncpu=1 > hw.byteorder=1234 > hw.pagesize=4096 >

[phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Peter Hessler
- Forwarded message from Peter Hessler - taken from Icenowy Zheng's repository, commit bd656cab0c3e0669e977641c15095f32d7b0731f This gives us basic support for the Pine64 Pinebook OK? $ sysctl hw hw.machine=arm64 hw.model=ARM Cortex-A53 r0p4 hw.ncpu=1

Re: Improve the accuracy of the TSC frequency calibration - Updated Patch

2017-08-27 Thread Adam Steen
On Fri, Aug 25, 2017 at 12:43:44PM +0200, Mike Belopuhov wrote: > On Fri, Aug 25, 2017 at 00:40 -0700, Mike Larkin wrote: > > On Thu, Aug 24, 2017 at 12:39:33PM +0800, Adam Steen wrote: > > > On Thu, Aug 24, 2017 at 2:35 AM, Mike Larkin wrote: > > > > On Wed, Aug 23, 2017 at

Re: [phess...@openbsd.org: add pinebook support to u-boot]

2017-08-27 Thread Jeremie Courreges-Anglas
On Sun, Aug 27 2017, Peter Hessler wrote: > - Forwarded message from Peter Hessler - > taken from Icenowy Zheng's repository, > commit bd656cab0c3e0669e977641c15095f32d7b0731f > > This gives us basic support for the Pine64 Pinebook > > OK?

arm64 pagezero_cache, page zero performance improvement

2017-08-27 Thread Dale Rahn
Performance: use cache zeroing function to pmap_zero_page This improves page zeroing (a rather common occurance) by over 8x. The only restriction is that pagezero_cache occurs on cached pages, but the pmap_zero_page always uses cached pages. Index: arm64/pmap.c

Re: include pinebook firmware in the install media

2017-08-27 Thread Jonathan Gray
On Sun, Aug 27, 2017 at 09:54:07PM +0200, Peter Hessler wrote: > (this depends on the patch to u-boot I just sent to ports@) > > If we should manage to boot on a Pinebook machine, we should install the > correct firmware for it. > > OK? This does not include distrib/arm64/ramdisk/list changes

Re: [PATCH] add initial set of regress tests for vmd

2017-08-27 Thread Mike Larkin
On Sun, Aug 27, 2017 at 02:24:08PM -0700, Carlos Cardenas wrote: > Howdy. > > Below is patch for some initial parsing tests for vmd: > * Memory string parsing (too small, invalid size, and rounding) > * Max disk path > * Max vm name > * Max kernel path > * Max NICs > > More tests to come. > >

Re: Improve the accuracy of the TSC frequency calibration - Updated Patch

2017-08-27 Thread Mike Larkin
On Mon, Aug 28, 2017 at 08:02:35AM +0800, Adam Steen wrote: > On Fri, Aug 25, 2017 at 12:43:44PM +0200, Mike Belopuhov wrote: > > On Fri, Aug 25, 2017 at 00:40 -0700, Mike Larkin wrote: > > > On Thu, Aug 24, 2017 at 12:39:33PM +0800, Adam Steen wrote: > > > > On Thu, Aug 24, 2017 at 2:35 AM, Mike

Re: include pinebook firmware in the install media

2017-08-27 Thread Theo de Raadt
> On Sun, Aug 27, 2017 at 09:54:07PM +0200, Peter Hessler wrote: > > (this depends on the patch to u-boot I just sent to ports@) > > > > If we should manage to boot on a Pinebook machine, we should install the > > correct firmware for it. > > > > OK? > > This does not include

pf.4: sync structs with net/pfvar.h

2017-08-27 Thread Lawrence Teo
This syncs the struct declarations in pf.4 with the latest net/pfvar.h (r1.465 at the time of writing). ok? Index: pf.4 === RCS file: /cvs/src/share/man/man4/pf.4,v retrieving revision 1.87 diff -u -p -r1.87 pf.4 --- pf.430

Re: Improve the accuracy of the TSC frequency calibration - Updated Patch

2017-08-27 Thread Mike Larkin
On Sun, Aug 27, 2017 at 09:45:52PM -0700, Mike Larkin wrote: > On Mon, Aug 28, 2017 at 08:02:35AM +0800, Adam Steen wrote: > > On Fri, Aug 25, 2017 at 12:43:44PM +0200, Mike Belopuhov wrote: > > > On Fri, Aug 25, 2017 at 00:40 -0700, Mike Larkin wrote: > > > > On Thu, Aug 24, 2017 at 12:39:33PM