patch: debug instrumentation for dev/raidframe/rf_netbsdkintf.c

2019-01-20 Thread Christoph Badura
Here is some instrumentation I found useful during my recent debugging. If there are no objections, I'd like to commit soon. The change to rf_containsroot() simplifies the second DPRINTF that I added. Index: rf_netbsdkintf.c === RCS

Re: XEN3_DOM0 cpu_bootconf() and bootdev=xxx failure

2019-01-20 Thread Christoph Badura
On Sun, Jan 13, 2019 at 08:45:31AM -, Michael van Elst wrote: > b...@bsd.de (Christoph Badura) writes: > >> So, assuming 'raid0' has a component 'dk0' which is based on 'wd0', it > >> should work to specify 'wd0' as bootdev. > > >That does work. However, that is besides the point bootdev=rai

Re: Audio device mmap and kevents

2019-01-20 Thread yarl-baudig
mmap(2) may reduce copies between user space and the kernel compared to write(2). Generally speaking, yes. But your patch seems to increase memcpy(3) instead of decreasing write(2) system call. In audioplay, well, if the audio device is mmapped 1 call to write is replaced with 1 call to memcpy.

Re: Audio device mmap and kevents

2019-01-20 Thread yarl-baudig
First of all, I know I should have work best on my proposal but I had to post that now because I probably wouldn't have time for a while. Remenber that I did not implement mmap in audio.C, it was there! I just think that it is better in this case for the kernel to "pull" the data, Just as it do